-
Notifications
You must be signed in to change notification settings - Fork 163
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
Set leader election deadline to 30s #239
Conversation
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
a2cc1be
to
efc44cb
Compare
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
efc44cb
to
b74081d
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.
Tested various disruptions on a Kubernetes v1.20.4 "production" cluster without any issues. Thanks @stefanprodan 💯
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
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.
Excellent use of a value that was already present 💯
This PR allows fine tuning the leader election with cmd args:
To make the leader election more tolerant to transient Kubernetes API outages, the renewal deadline was increased from 10s to 30s and the retry interval was bumped to 5 seconds.
Test image:
Part of: fluxcd/pkg#94