Skip to content

feat(coderd/healthcheck): add access URL error codes and healthcheck doc #10915

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Nov 30, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add words about database
  • Loading branch information
johnstcn committed Nov 30, 2023
commit 6cdc91845f701840696081fc2ff2a1666db10422
24 changes: 20 additions & 4 deletions docs/admin/healthcheck.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,29 @@ should give you a good indication of the root cause.

## Database

### <a name="EDB01">EDB01: TODO</a>
Coder continuously executes a short database query to validate that it can reach its configured database, and also
measures the median latency over 5 attempts.

TODO
### <a name="EDB01">EDB01: Database Ping Failed</a>

### <a name="EDB02">EDB02: TODO</a>
**Problem:** This error code is returned if any attempt to execute this database query fails.

TODO
**Solution:** Investigate the health of the database.

### <a name="EDB02">EDB02: Database Ping Slow</a>

**Problem:** This code is returned if the median latency is higher than the [configured threshold](../cli/server.md#--health-check-threshold-database).
This may not be an error as such, but is an indication of a potential issue.

**Solution:** Investigate the sizing of the configured database with regard to Coder's current activity and usage. It
may be necessary to increase the resources allocated to Coder's database. Alternatively, you can raise the configured
threshold to a higher value (this will not address the root cause).

> 💡 Tip:
> - You can enable [detailed database metrics](../cli/server.md#--prometheus-collect-db-metrics) in Coder's
> Prometheus endpoint.
> - Fif you have [tracing enabled](../cli/server.md#--trace), these traces may also contain useful information regarding
> Coder's database activity.

## DERP

Expand Down