-
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.
kvserver: log traces from replicate queue on errors or slow processing
While we previously had some logging from the replicate queue as a result of the standard queue logging, this change adds logging to the replicate queue when there are errors in processing a replica, or when processing a replica exceeds a threshold, configured as a multiplier of the estimated time to process the replica based on the snapshot rate settings. When there are errors or the duration threshold is exceeded, any error messages are logged along with the collected tracing spans from the operation. By default, the logging threshold is disabled, but the multiplier can be set via the setting `kv.replicate.queue_process_logging_threshold`. Release note (ops change): Added logging on replicate queue processing in the presence of errors or when the duration exceeds the configured threshold.
- Loading branch information
Showing
3 changed files
with
168 additions
and
9 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