habitat icon indicating copy to clipboard operation
habitat copied to clipboard

Exponential Backoff for first successful health check

Open jaym opened this issue 5 years ago • 3 comments

Currently, hab does a health check every 30 seconds. This means in most cases, you'll need to wait 30 seconds for hab to tell you a service is healthy. It would be nice if every time hab loads or applies some configuration change, we could start backing off from 1 second to the default (30 seconds). So we would get a health check after [1, 2, 4, 8, 16, 30, ... 30] seconds. The health check interval would go to the default once a successful health check is returned. It would probably be best to do this only when a service is loaded and a configuration change is applied to avoid situations where a crashing process constantly causes health checks

jaym avatar Dec 05 '19 21:12 jaym

Seems like a good addition. Seems like we might be able to do this by adding a bit of extra state here to help track where we might be within a backoff scheme.

christophermaier avatar Feb 24 '20 16:02 christophermaier

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you.

stale[bot] avatar Jul 31 '22 10:07 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you.

stale[bot] avatar Aug 12 '23 16:08 stale[bot]