mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdserver: add more tick fast-forward logs
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
85b7a59c56
commit
21d2e2ab6e
@ -293,6 +293,7 @@ func (c *ServerConfig) print(initial bool) {
|
||||
zap.String("heartbeat-interval", fmt.Sprintf("%v", time.Duration(c.TickMs)*time.Millisecond)),
|
||||
zap.Int("election-tick-ms", c.ElectionTicks),
|
||||
zap.String("election-timeout", fmt.Sprintf("%v", time.Duration(c.ElectionTicks*int(c.TickMs))*time.Millisecond)),
|
||||
zap.Bool("initial-election-tick-advance", c.InitialElectionTickAdvance),
|
||||
zap.Uint64("snapshot-count", c.SnapCount),
|
||||
zap.Strings("advertise-client-urls", c.getACURLs()),
|
||||
zap.Strings("initial-advertise-peer-urls", c.getAPURLs()),
|
||||
|
@ -636,8 +636,14 @@ func (s *EtcdServer) adjustTicks() {
|
||||
}
|
||||
|
||||
if !s.Cfg.InitialElectionTickAdvance {
|
||||
if lg != nil {
|
||||
lg.Info("skipping initial election tick advance", zap.Int("election-ticks", s.Cfg.ElectionTicks))
|
||||
}
|
||||
return
|
||||
}
|
||||
if lg != nil {
|
||||
lg.Info("starting initial election tick advance", zap.Int("election-ticks", s.Cfg.ElectionTicks))
|
||||
}
|
||||
|
||||
// retry up to "rafthttp.ConnReadTimeout", which is 5-sec
|
||||
// until peer connection reports; otherwise:
|
||||
|
Loading…
x
Reference in New Issue
Block a user