Emit raft-boltdb metrics
This commit is contained in:
parent
8e2c71528f
commit
68e629a476
|
@ -742,6 +742,9 @@ func (s *Server) setupRaft() error {
|
|||
s.raftStore = store
|
||||
stable = store
|
||||
|
||||
// start publishing boltdb metrics
|
||||
go store.RunMetrics(&lib.StopChannelContext{StopCh: s.shutdownCh}, 0)
|
||||
|
||||
// Wrap the store in a LogCache to improve performance.
|
||||
cacheStore, err := raft.NewLogCache(raftLogCacheSize, store)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue