mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdserver: add "InitialElectionTickAdvance"
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
@@ -524,6 +524,10 @@ func (s *EtcdServer) adjustTicks() {
|
||||
return
|
||||
}
|
||||
|
||||
if !s.Cfg.InitialElectionTickAdvance {
|
||||
return
|
||||
}
|
||||
|
||||
// retry up to "rafthttp.ConnReadTimeout", which is 5-sec
|
||||
// until peer connection reports; otherwise:
|
||||
// 1. all connections failed, or
|
||||
|
||||
Reference in New Issue
Block a user