-
Notifications
You must be signed in to change notification settings - Fork 22
feat: add healthcheck parameters to coder_app #52
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll leave more comments in a bit, just didn't have time for a full review!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huge fan of the schema. Seems like its exactly what we're looking for
"interval": { | ||
Type: schema.TypeInt, | ||
Description: "Duration in seconds to wait between healthcheck requests.", | ||
ForceNew: true, | ||
Required: true, | ||
}, | ||
"threshold": { | ||
Type: schema.TypeInt, | ||
Description: "Number of consecutive heathcheck failures before returning an unhealthy status.", | ||
ForceNew: true, | ||
Required: true, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor nit before merge, should we make these optional instead with reasonable defaults?
Also Kubernetes calls this period
instead of interval
. I'm impartial, just wanted to toss the idea up.
Blocking coder/coder#4114