-
Notifications
You must be signed in to change notification settings - Fork 8
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
implement registered service healthchecks #238
implement registered service healthchecks #238
Conversation
ea2d231
to
06bb14e
Compare
bc4b028
to
55626e7
Compare
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.
Great approach, good implementation so far
8c8aba5
to
a66cb7a
Compare
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.
/lgtm
This implements healthchecks for registered services. A few important notes: - The state of registered services now defaults in the CRD to the new state "Unknown", rather than "Available". If a healthcheck is undefined or removed, then the service immediately becomes available, which is in line with old behavior. However, if a healthcheck is defined, we don't want to transition it to "Available", since we haven't run the healthcheck yet. - A new field, "minutes", has been added to the healthcheck's container field. It represents how many minutes should be between each check. This is largely introduced for testing purposes, since the planned default of 5 minutes makes acceptance testing a pain. Its value is restricted from 1 to 60. - Healthchecks time out after thirty seconds. We need to have some kind of timeout mechanism, since providing users a way to run processes (even if their unpriviledged) has a potential for abuse. Hard-coding it to 30 seconds is fairly reasonable default, but we might want to revisit how we decide this in the future. Signed-off-by: Andy Sadler <ansadler@redhat.com>
a66cb7a
to
c08e720
Compare
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.
/lgtm
This implements healthchecks for registered services. A few important notes: