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:
+9
@@ -80,6 +80,15 @@ Use a YAML configuration file when your server launch become unwieldy.
|
||||
|
||||
Write out the current server config as YAML to stdout.
|
||||
|
||||
INTROSPECTION / HEALTH CHECK OPTIONS:
|
||||
--health-check-refresh duration, $CODER_HEALTH_CHECK_REFRESH (default: 10m0s)
|
||||
Refresh interval for healthchecks.
|
||||
|
||||
--health-check-threshold-database duration, $CODER_HEALTH_CHECK_THRESHOLD_DATABASE (default: 15ms)
|
||||
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.
|
||||
|
||||
INTROSPECTION / LOGGING OPTIONS:
|
||||
--enable-terraform-debug-mode bool, $CODER_ENABLE_TERRAFORM_DEBUG_MODE (default: false)
|
||||
Allow administrators to enable Terraform debug output.
|
||||
|
||||
+9
@@ -232,6 +232,15 @@ introspection:
|
||||
# Allow administrators to enable Terraform debug output.
|
||||
# (default: false, type: bool)
|
||||
enableTerraformDebugMode: false
|
||||
healthcheck:
|
||||
# Refresh interval for healthchecks.
|
||||
# (default: 10m0s, type: duration)
|
||||
refresh: 10m0s
|
||||
# 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.
|
||||
# (default: 15ms, type: duration)
|
||||
thresholdDatabase: 15ms
|
||||
oauth2:
|
||||
github:
|
||||
# Client ID for Login with GitHub.
|
||||
|
||||
Reference in New Issue
Block a user