Skip to content
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

Move leader election to a self managed service #1087

Merged
merged 1 commit into from
Mar 12, 2024
Merged

Conversation

jcmoraisjr
Copy link
Owner

Controller-runtime's leader election works by killing the running process when the leader is lost, consequently being restarted by the runtime env. This works nice for a control plane component, but it'd work badly with haproxy ingress because it currently embeds the data plane as well on its deployment, making haproxy to restart on every instance that looses an election. Controller-runtime behavior is not configurable, so we need to implement our own leader election control.

Controller-runtime's leader election works by killing the running
process when the leader is lost, consequently being restarted by the
runtime env. This works nice for a control plane component, but it'd
work badly with haproxy ingress because it currently embeds the data
plane as well on its deployment, making haproxy to restart on every
instance that looses an election. Controller-runtime behavior is not
configurable, so we need to implement our own leader election control.
@jcmoraisjr jcmoraisjr merged commit 1107914 into master Mar 12, 2024
2 checks passed
@jcmoraisjr jcmoraisjr deleted the jm-svc-leader branch March 12, 2024 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant