etcdserver: add "InitialElectionTickAdvance"

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyuho Lee
2018-04-19 14:00:31 -07:00
parent d45053c068
commit 0d2fe21d8e
2 changed files with 36 additions and 2 deletions

View File

@@ -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