-
Notifications
You must be signed in to change notification settings - Fork 75
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
Add basic orchestrator healthcheck #415
base: main
Are you sure you want to change the base?
Conversation
ea61b96
to
471928c
Compare
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.
Do I understand it correctly that orchestrator its own health endpoint to determine its health?
428f099
to
0455264
Compare
const healthcheckFrequency = 5 * time.Second | ||
const healthcheckTimeout = 30 * time.Second |
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.
does this make sense (timeout > frequency)?
|
||
// report updates the health status. | ||
// This function is run in a goroutine every healthcheckFrequency for the reason of having | ||
// longer running tasks that might me too slow or resource intensive to be run |
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.
// longer running tasks that might me too slow or resource intensive to be run | |
// longer running tasks that might be too slow or resource intensive to be run |
Adds: