-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: rust command log freezes (#362)
We've observed that the command log output may freeze under high load. This happens due to the implementation of the `SamplingLogger`. By changing the logic, it will be able to handle the edge case that was unaccounted for in the initial implementation. This brings the `SamplingLogger` implementation more in-line with the original C implementation of klog. Fixes the `log_skip` metric to represent the number of log messages omitted due to sampling. Removes `log_skip_bytes` so we don't pay to format a log message we will omit. Adds `log_drop` and `log_drop_bytes` to capture log messages which are dropped due to a full queue between the logger and its drain.
- Loading branch information
Showing
3 changed files
with
23 additions
and
10 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