Skip to content

feat(coderd): add DERP healthcheck #6936

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 7 commits into from
Apr 3, 2023
Merged

feat(coderd): add DERP healthcheck #6936

merged 7 commits into from
Apr 3, 2023

Conversation

coadler
Copy link
Contributor

@coadler coadler commented Mar 31, 2023

Updates: #6728

@coadler coadler self-assigned this Mar 31, 2023
@coadler coadler mentioned this pull request Mar 31, 2023
5 tasks
@coadler coadler marked this pull request as ready for review March 31, 2023 21:22
"tailscale.com/tailcfg"
)

type Report struct {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally there's an overall "Pass" or "Fail" grade, as well as a "Pass" or "Fail" for each of the sub-reports.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about that but at least for DERP pass/fail felt more like a spectrum. You could have a derp server that could exchange messages but was listed as STUN but STUN wasn't working, etc

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eh maybe "Fail" could just mean anything failed or is degraded.

Comment on lines +333 to +335
if strings.Contains(msg, "We'll use WebSockets on the next connection attempt") {
r.UsesWebsocket = true
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice touch

@coadler coadler enabled auto-merge (squash) April 3, 2023 06:25
@coadler coadler merged commit 7738274 into main Apr 3, 2023
@coadler coadler deleted the colin/healthcheck branch April 3, 2023 06:28
@github-actions github-actions bot locked and limited conversation to collaborators Apr 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants