-
Notifications
You must be signed in to change notification settings - Fork 55
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
Reconsider checks reporting "up" status before being executed #164
Comments
This is a good point. It will mean before Pebble starts the I'm not sure we should just change the default to We could make the check manager run the checks right away ... but that isn't right either, because the service/workload being monitored probably isn't up yet anyway. @hpidcock Thoughts? |
I don't think "up" is correct initially, but I'm also not sure defaulting to "down" is correct either. My instinct is to make the default state configurable with "down" as the default. |
|
The alternative is that we don't return any result until all checks have evaluated. I.e. the api request can long poll if its indeterminate |
Right, if the expected behaviour is to return a boolean, then yes, both Just as a reference for inspiration, similar healthcheck mechanisms are also employed by Docker and Kubernetes as you know. For Docker, the accepted health status are UNHEALTHY, HEALTHY, STARTING |
@hpidcock has some interesting suggestions (an I suggest what we do here: we add a However, I suggest we don't change the behaviour of
|
Problem
If we list the checks very early in the lifetime of the Pebble plan, the output will return a default misleading "up" status, even though we aren't yet capable of making such an assessment.
Reproduce
Use an intentionally faulty check, like:
Start the server:
pebble run
Immediately list the checks with
pebble checks
, and the output will beNotice the
Status = up
, which is misleading, and will eventually switch to "down".The text was updated successfully, but these errors were encountered: