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
Stop container health check also on kill event #1699
Conversation
@jakolehm @jnummelin Do you see any side effects because of this? |
Hmm... or should we only track |
Hmm, stopping health check on both |
It definitely makes more sense to stop health-checking on Even with the |
@@ -11,7 +11,7 @@ class HealthCheckWorker | |||
finalizer :terminate_workers | |||
|
|||
START_EVENTS = ['start'] | |||
STOP_EVENTS = ['die'] | |||
STOP_EVENTS = ['die', 'kill'] | |||
ETCD_PREFIX = '/kontena/log_worker/containers' |
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.
Mmm stale copy-pasta :)
When container is stopped (
docker stop <container>
), Docker will send container event with statuskill
. Currently agent will stop container health check worker only withdie
event.