etcdserver: add "etcd_server_slow_read_indexes_total"
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
@ -689,6 +689,7 @@ func (s *EtcdServer) linearizableReadLoop() {
|
||||
} else {
|
||||
plog.Warningf("ignored out-of-date read index response; local node read indexes queueing up and waiting to be in sync with leader (request ID want %d, got %d)", id1, id2)
|
||||
}
|
||||
slowReadIndex.Inc()
|
||||
}
|
||||
case <-time.After(s.Cfg.ReqTimeout()):
|
||||
if lg != nil {
|
||||
@ -698,6 +699,7 @@ func (s *EtcdServer) linearizableReadLoop() {
|
||||
}
|
||||
nr.notify(ErrTimeout)
|
||||
timeout = true
|
||||
slowReadIndex.Inc()
|
||||
case <-s.stopping:
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user