()
| 2033 | } |
| 2034 | |
| 2035 | func (n *node) monitorRaftMetrics() { |
| 2036 | ticker := time.Tick(5 * time.Second) |
| 2037 | |
| 2038 | for range ticker { |
| 2039 | curPendingSize := atomic.LoadInt64(&n.pendingSize) |
| 2040 | ostats.Record(n.ctx, x.RaftPendingSize.M(curPendingSize)) |
| 2041 | ostats.Record(n.ctx, x.RaftApplyCh.M(int64(len(n.applyCh)))) |
| 2042 | } |
| 2043 | } |
no test coverage detected