-
Notifications
You must be signed in to change notification settings - Fork 204
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 heartbeat monitoring for controller #1192
base: master
Are you sure you want to change the base?
Conversation
controllerHealthProbePath string = "/tmp/controller-health" | ||
controllerMaxStallDuration time.Duration = 240 * time.Second | ||
controllerLivenessChan = make(chan time.Time, 1) | ||
controllerHeartbeatChan = make(chan time.Time, 1) |
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.
Not sure this is needed.
} | ||
|
||
// Signal heartbeat | ||
signalHeartbeat(logger) |
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.
We should add heartbeat signals in the main processing loops of both components:
- Encoding manager:
HandleBatch()
- Dispatcher:
HandleBatch()
Right now we're only signaling liveness at startup. But what we want is to have heartbeats for each control loop. Then our alerting system should alert if any of the two control loops fail and we should know which one failed.
Why are these changes needed?
Checks