-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server: use
raftSparseStatus
in replica metrics
`Replica.Metrics()` calls `raftStatusRLocked()`, periodically across all replicas, which is moderately expensive due to deep copies of fields we don't care about. This patch instead uses `raftSparseStatusRLocked()` which omits these fields. Epic: none Release note: None
- Loading branch information
1 parent
6225ad6
commit ac3e633
Showing
3 changed files
with
7 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters