-
Notifications
You must be signed in to change notification settings - Fork 9.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
*: add --initial-election-tick-advance to configure election fast-forward on bootstrap #9591
Conversation
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #9591 +/- ##
=========================================
- Coverage 69.33% 69.3% -0.03%
=========================================
Files 369 369
Lines 33706 33717 +11
=========================================
- Hits 23371 23369 -2
- Misses 8632 8635 +3
- Partials 1703 1713 +10
Continue to review full report at Codecov.
|
Cool, thanks for preparing the PR! :) Few questions: |
I meant to say it's only for initial election process (on boot). Advancing tick only happens when a node starts. If it's not clear, I'm open for better naming :)
This would need to be backported to 3.1, and existing cluster needs to upgrade to latest release with this patch, and set |
IIUC https://coreos.com/etcd/docs/latest/op-guide/configuration.html#clustering-flags says that flags with '--initial-' prefix are ignored when restarting already existing member (with existing --data-dir dir?). This flag has '--initial' prefix, so I'm wondering if that comment applies here. Thanks |
Ah, that could be confusing. That makes sense only for clustering flag. I will make sure to clarify that doc.
Yes, it should just work. This flag won't be affected by existing data. |
Fix #9333.
I can reproduce by slowing down network from leader to rejoining follower.
--initial-elecition-tick-advance=true
is the default behavior, so user won't see any difference. Details are explained in change log and godoc./cc @jpbetz @wojtek-t @mborsz