-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
76609: kvserver: Add replica load metrics r=kvoli a=kvoli Previously, replica stats was oriented for collecting statistics on batch requests per second - QPS. To facilitate more general use of additional replica load statistics, this patch introduces more generic naming in addition to allowing easy opt out of locality specific elements. The max, min, count and sum are now recorded per time window as aggregate, running statistic calculated at write time in constant time. Previously, writes-per-second representing the count of raft key mutations applied and queries-per-second, representing the count of batch requests processed by a replica were tracked on the replica level by the leaseholder. This patch introduces: requests-per-second, tracking the number of requests received; reads-per-second, tracking the number of keys read; write-bytes-per-second and read-bytes-per-second, tracking the number of bytes that have been read and written to this range per second. Only reads-per-second and requests-per-second are exposed in aggregation over a store as a metric, which is in addition to queries-per-second and writes-per-second, being currently exported. Previously, HotRanges would report the replica descriptor and queries per second (QPS) of the hottest ranges per store; ranked by QPS. This patch introduces the additional range load information: requests per second `RQPS`, writes per second `WPS`, reads per second `RPS`, write bytes per second `WBPS` and read bytes per second `RBPS`. These additional load metrics are useful for hot range inspection, as they provide a more granular view of range load, than QPS alone. resolves #72053 resolves #77280 Jira issue: CRDB-14773 Co-authored-by: Austen McClernon <[email protected]>
- Loading branch information
Showing
26 changed files
with
946 additions
and
95 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
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
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
Oops, something went wrong.