under-pressure
under-pressure copied to clipboard
Option for health check by default "healthy"
Prerequisites
- [X] I have written a descriptive issue title
- [X] I have searched existing issues to ensure the feature has not already been requested
🚀 Feature Proposal
Give the user the option to change the default state of the health-check to be healthy. Meaning in case of a new deployment, the server can be reached directly if needed, without waiting on the healthCheckInterval
.
Motivation
I run the server with cluster support, and I want to increase the healthCheckInterval
to reduce the load for health checks on my database. However, increasing the internal will cause 503 to be present for longer during start-up.
Example
Introducing a new option for example, like: healthCheckDefaultHealthy
(default value is false
to be backwards compatible):
{
maxEventLoopDelay: 1000,
healthCheckDefaultHealthy: true
}