Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Health Check should not return unhealthy if environment data is out of date #120

Open
matthewelwell opened this issue Sep 4, 2024 · 1 comment

Comments

@matthewelwell
Copy link
Contributor

The issue:

When using the health check endpoint, The Edge Proxy is not currently able to withstand faults on the Flagsmith API due to the health check returning unhealthy if the environment data has not been updated in a defined period of time (as per the logic here).

Additional Considerations:

Since (currently) each edge proxy instance maintains its own cache of the environment data, we ideally want to know when a single instance no longer has an updated cache of the environment, but not when all instances are unable to update (because then it's likely that the Flagsmith API is down and we want the Edge Proxy to add as a cache). This may not be possible without a centralised cache.

@matthewelwell
Copy link
Contributor Author

Current proposed solution is to make the timeout configurable in length, and even provide the ability to disable this timeout entirely, but we should probably consider how we return warning information that the cache is out of date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant