mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat(coderd/healthcheck): allow configuring database hc threshold (#10623)
* feat(coderd/healthcheck): allow configuring database hc threshold * feat(coderd): add database hc latency, plumb through * feat(coderd): allow configuring healthcheck refresh interval
This commit is contained in:
Generated
+22
@@ -305,6 +305,28 @@ Time to force cancel provisioning tasks that are stuck.
|
||||
|
||||
HTTP bind address of the server. Unset to disable the HTTP endpoint.
|
||||
|
||||
### --health-check-refresh
|
||||
|
||||
| | |
|
||||
| ----------- | ---------------------------------------------- |
|
||||
| Type | <code>duration</code> |
|
||||
| Environment | <code>$CODER_HEALTH_CHECK_REFRESH</code> |
|
||||
| YAML | <code>introspection.healthcheck.refresh</code> |
|
||||
| Default | <code>10m0s</code> |
|
||||
|
||||
Refresh interval for healthchecks.
|
||||
|
||||
### --health-check-threshold-database
|
||||
|
||||
| | |
|
||||
| ----------- | -------------------------------------------------------- |
|
||||
| Type | <code>duration</code> |
|
||||
| Environment | <code>$CODER_HEALTH_CHECK_THRESHOLD_DATABASE</code> |
|
||||
| YAML | <code>introspection.healthcheck.thresholdDatabase</code> |
|
||||
| Default | <code>15ms</code> |
|
||||
|
||||
The threshold for the database health check. If the median latency of the database exceeds this threshold over 5 attempts, the database is considered unhealthy. The default value is 15ms.
|
||||
|
||||
### --log-human
|
||||
|
||||
| | |
|
||||
|
||||
Reference in New Issue
Block a user