-
Notifications
You must be signed in to change notification settings - Fork 98
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
Support Horizontal Scaling #1048
Support Horizontal Scaling #1048
Conversation
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.
more comments:
(1) Would it make sense to add something about leader election to the architecture doc?
(2) What removes the leader election lock resource? Do we need to update our deinstallation instructions (helm and manifests) if it is not removed automatically?
(1) Sure, I can add something to the architecture doc. |
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.
🚀
50e907a
to
d4b4423
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.
👍
There is a line here that is: "Once we add leader election, the control plane will be able to scale.", would we like to change that now? |
No, that's in an old design document. We don't need to keep those up-to-date. |
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.
🚀🚀🚀
f0f0ed8
to
ed875d2
Compare
Co-authored-by: bjee19 <139261241+bjee19@users.noreply.github.com>
Co-authored-by: bjee19 <139261241+bjee19@users.noreply.github.com>
ed875d2
to
28cd3b1
Compare
Proposed changes
Problem: NKG cannot be scaled horizontally because all replicas will write statuses to the Gateway API resources.
Solution: Add leader election to the status updater so that only one replica of NKG will write statuses to the Gateway API resources. Leader election is enabled by default but can be disabled via a cli arg
--leader-election-disable
. The lock name used for leader election can be configured via the cli arg--leader-election-lock-name
.Testing: Verified leader election works with multiple replicas.
Closes #637
Checklist
Before creating a PR, run through this checklist and mark each as complete.