-
Notifications
You must be signed in to change notification settings - Fork 903
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve: Enrich GC metrics to better analyze GC behavior and the time…
… consumption of each phase. (#4384) ### Motivation Enrich GC metrics to better analyze GC behavior and the time consumption of each phase. In our online environment, we found that some clusters spend a lot of time scanning metadata during gc, so the newly added metrics can more conveniently help us analyze the cluster gc behavior this PR add 4 new metrics: bookie_GC_LEDGER_RUNTIME bookie_EXTRACT_META_RUNTIME bookie_COMPACT_RUNTIME bookie_ENTRY_LOG_COMPACT_RATIO ### Changes - bookie_GC_LEDGER_RUNTIME operation stats of doing gc ledgers based on metaStore, Time consumption for comparing ledger meta between local and metadata store (zk). - bookie_EXTRACT_META_RUNTIME Time consumption for extracting Meta from entryLogs. - bookie_COMPACT_RUNTIME Time consumption of entry log compaction. - bookie_ENTRY_LOG_COMPACT_RATIO Current proportion of compacted entry log files that have been executed (Provide reference for users when setting CompactionThreshold values, and configure more reasonable values) <img width="904" alt="image" src="https://github.com/apache/bookkeeper/assets/16517186/79870ed5-5191-429c-b6e3-e8a08054bcd1"> Co-authored-by: qunzhong <[email protected]>
- Loading branch information
1 parent
1f1df81
commit d0adb60
Showing
3 changed files
with
134 additions
and
17 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