-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: Add election service methods #13
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #13 +/- ##
==========================================
+ Coverage 50.16% 54.09% +3.92%
==========================================
Files 36 36
Lines 2386 2442 +56
==========================================
+ Hits 1197 1321 +124
+ Misses 1189 1121 -68 ☔ View full report in Codecov by Sentry. |
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.
Please add test cases which covers newly created methods.
@@ -164,7 +164,7 @@ def main(version: str, repo_path: Optional[Path] = None): | |||
parser.add_argument('version', type=str, help='target etcd version') | |||
parser.add_argument( | |||
'--repository-path', type=str, | |||
help='git repository folder path of etcd source code to use. Ff not supplied, ' | |||
help='git repository folder path of etcd source code to use. If not supplied, ' |
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.
Oops
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 a couple of minor feedbacks!
@rapsealk One thing more: Please write down usage examples about new Election API on README.md. |
@rapsealk @kyujin-cho, what is the status of this PR? Do you expect to merge it (after conflicts fixes)? |
In this PR, Etcd's election service methods are added;
This is for further implementation of Etcd-based leader election. I found that vote-based leader election is not a proper method in our case, since we have to ensure that manager cluster runs even the majority of managers are malfunctioning. Therefore, I think it would be better to use Etcd's election API since it provides a
round-robinFIFO-like fashion.References