Skip to content

healthcheck: configurable database delay #9381

@matifali

Description

@matifali

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.

image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions