-
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.
kvserver: add avgProposalToLocalApplicationLatency
This patch adds a new field `avgProposalToLocalApplicationLatency` to replica, tracking latency similar to `raft.replication.latency` with the following differences: 1. It is tracked at the per replica level. 2. Only includes successful write commands excluding errors like 'AmbiguousResultError' or rejected proposals or for request evaluation that did not lead to raft proposals. This field tracks the average time between proposal evaluation and local application of a command on successful writes. An exponentially weighted moving average is used with an effective window size of 30, where recent data points have a higher influence, and older data gradually decays. The metric is thread-safe. Notes: 1. It does not include full application on follower replicas. 2. No measurements are recorded for read-only commands or read-write commands that do not result in writes. 3. No measurements are recorded for proposal failures (e.g. due to AmbiguousResultError, rejected proposals, or for request evaluation that did not lead to raft proposals). Note that avgProposalToLocalApplicationLatency is left unused. Future commits will use it to compute closed timestamp target for global tables. Informs: #72393 Release note: none
- Loading branch information
Showing
5 changed files
with
45 additions
and
1 deletion.
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