habitat
habitat copied to clipboard
Exponential Backoff for first successful health check
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
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.
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.
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.