-
Notifications
You must be signed in to change notification settings - Fork 448
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
Keepers that never become master/sync replica #697
Keepers that never become master/sync replica #697
Conversation
b69302e
to
3705fb2
Compare
7410820
to
a978806
Compare
@rnaveiras Is this ready for review? Can you please rebase? |
a978806
to
ea018c6
Compare
@sgotti I just rebased and fixed the conflicts. It's ready for review. I'm happy to squash the commits if you think is necessary after you finish your review. |
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.
@rnaveiras Just a small nit and then it LGTM. Can you please rebase and squash all the commits?
@rnaveiras @lawrencejones Do you have any thought on this comment (#696 (comment))?
Any chance this could be rebased and merged soon? I was working on this feature tonight and when coming to submit a PR, I only found this then. |
Hi @leev, yes I will take care of make the changes tomorrow. Sorry for the delay, it's been in my to-do list for months. Thanks for bringing it up. |
ea018c6
to
afd070c
Compare
@sgotti I'm happy to squash the commits if you thing is worth it after the final review. Is possible for me to trigger again the CI e2e tests? They're failing now after the rebase. |
@rnaveiras It LGTM. Yes, please squash in a single commit. Thanks! Currently the run.agola.io instance configuration doesn't permit restart from the UI if not authenticated (and registration is currently disabled). I'll restart it for you if I noticed it failed just for some flakes (since agola could also restart only failed tasks). If you want to trigger a full restart you could amend your commit just to generate a new commit id and force push. |
Keeper new flags: --can-be-master, prevent keeper from being elected as master --can-be-synchronous-replica, prevent keeper from being chosen as synchronous replica Updates sentinel to support keepers with new flags: - findBestNewMasters: ignoring keepers that cannot become master - updateKeeperStatus: update `KeeperStatus` to have `NeverMaster` and `NeverSynchronousReplica` properties - updateCluster: ignore standbys that cannot be synchronous standbys
b8aaf23
to
05b1b0f
Compare
Fantastic!! I just squash all commits.
Thanks! |
@sgotti all CI checks are passing now. |
@rnaveiras Thanks! Merging. |
Nice! Thank you. |
Implements the proposal #696