Emit raft-boltdb metrics

This commit is contained in:
Matt Keeler 2021-12-02 16:52:42 -05:00
parent 8e2c71528f
commit 68e629a476
1 changed files with 3 additions and 0 deletions

View File

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