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
feat: add redis liveness probe #699
feat: add redis liveness probe #699
Conversation
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Looks cool! I tried on our docker compose stack, but the server node is not connecting to redis (only the worker needs it):
I don't have the answer right here, but "health" isn't an atomic concept, I'm afraid. Maybe we should be able to tell the endpoint what we define as health with some GET variables, e.g. |
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Good idea! Following Issue #663, we could also check if |
For now, checking Unless these nodes operate in different access contexts (e.g. in Kubernetes). Of course, that is rather rare probably, and can be solved by not only using one environment configuration for all nodes. (giving a FM instance access to a credential it shall not be using is not a good security approach, either :) So I'd argue to go ahead with the simple check. |
… database_redis status code into the health information Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
That's true, we shouldn't have extra env variables if we don't need them. |
@victorgarcia98 Can you add a changelog entry? And then let's merge this PR! |
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
|
||
|
||
/api/v3_0/health/ready |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leftover statement, or starting a list of new endpoints?
Description
Check the health of redis instance and expose it trough the API endpoint
/health/ready
Look & Feel
Request
Response
Testing Steps
Clean up
Closes #663