-
Notifications
You must be signed in to change notification settings - Fork 97
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
Add Leader election to backup-restore and allow only backup-restore Leader to take and uploads the snapshots. #353
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.
Thanks for the first-cut implementation @ishan16696. I have some comments and questions below.
@ishan16696 You have pull request review with status CHANGES_REQUESTED, please check |
5b4d937
to
5cae968
Compare
5cae968
to
b5a4fe1
Compare
b5a4fe1
to
728ccbd
Compare
011c657
to
ad38074
Compare
ad38074
to
da7a882
Compare
728788a
to
a6b4e23
Compare
Added support to allow only backup-restore Leader to take/uploads the snapshots.
…agmentation on etcd leader as well as on etcd follower.
…quest from backup Follower to backup Leader.
Merged the runServerWithoutSnapshotter and runServerWithSnapshotter function calls.
a6b4e23
to
f836e65
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.
Just one query from me @ishan16696
Thanks
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.
I had an initial look. Overall, great effort. Thanks.
\lgtm |
What this PR does / why we need it:
Added leader-election to the backup-restore sidecar.
Added support to bring the snapshotters (both full and incremental) and defragmentation go routines under the control of the leader-election.
To take out of sync full/delta snapshot and to get the latest snapshot metadata, delegate the incoming HTTP/HTTPS request from
backup Follower
to thebackup Leader
.Which issue(s) this PR fixes:
Fixes #321 Part-1
Fixes #354
Special notes for your reviewer:
Release note: