Skip to content

Commit

Permalink
Report yellow ES as green
Browse files Browse the repository at this point in the history
Current deployment is always yellow and we are not looking to fix it.
  • Loading branch information
PGijsbers authored Feb 7, 2025
1 parent a23ed7e commit 7b48087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def elastic_search_check(url: str) -> tuple[str, str]:
case {"status": "green"}:
return ICON_OK, MSG_OK
case {"status": "yellow", "unassigned_shards": n}:
return ICON_WARN, "Potentially degraded performance."
return ICON_OK, MSG_OK # Current Production is permanently yellow. Nothing to worry about.
case {"status": "red", "unassigned_shards": n}:
return ICON_ERROR, "Index and search operations may fail."
case _:
Expand Down

0 comments on commit 7b48087

Please sign in to comment.