The delay to mark the database as unhealthy should be configurable. currently, it looks like hardcoded to 15 milliseconds.
|
if latency < 15*time.Millisecond { |
|
r.Healthy = true |
|
} |
I have a deployment where the remote db has 28-29 ms latency, and Coder is marking it as unhealthy.

The delay to mark the database as unhealthy should be configurable. currently, it looks like hardcoded to 15 milliseconds.
coder/coderd/healthcheck/database.go
Lines 49 to 51 in b6e808d
I have a deployment where the remote db has 28-29 ms latency, and Coder is marking it as unhealthy.