-
Notifications
You must be signed in to change notification settings - Fork 471
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
db: introduce TotalDuration to FlushInfo and CompactionInfo events
When a compaction or flush completes, we emit a CompactionEnd or FlushEnd event. When configured with the logging event listener, these durations are written to logs. Previously, these events only contained 1 duration recording the time elapsed during reading and writing sstables, but it did not include the time to write the version edit to the manifest or construct the new in-memory representation of the Version. With a sufficiently large number of files in L0, this work at the end of a compaction can be expensive. This change introduces a TotalDuration field, computed just before the event is emitted. This field ensures Pebble logs a comprehensive record of the end-to-end wall-time duration of a compaction too.
- Loading branch information
Showing
6 changed files
with
39 additions
and
22 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