Vanlightly opened a new pull request #2862:
URL: https://github.com/apache/bookkeeper/pull/2862
### Motivation
See BP-44 for full motivation
### Changes
Various enhancements related to DbLedgerStorage:
- All DbLedgerStorage stats now report their ledgerDir.
- Read cache hit/misses now differentiated from write cache.
- Read/write cache hit/misses now counters, not OpStatsLoggers.
The OpStatsLoggers are relatively expensive and the counter
values are most important here.
- Stats where thread info useful are now thread-scoped. In
general the focus is on time based metrics for operations
carried out by the read/write thread pools.
- Time spent counters on sub-operations for reads (entry log,
locations index, readahead).
- Flush time started moved to after lock to avoid 200% time
utilization calculations. Can reach 200% because one thread
is busy flushing and another busy waiting on the lock.
- Time spent counters on sub-operations for flushes (entry log,
locations index, ledgers index).
- DbStorage thread reports time utilization.
- SyncThread reports time utilization.
Some new gauges that report configuration values which are useful
for utilization calculations in dashboards/alerts:
- Write cache max size.
- Number of ledger dirs.
- Readahead batch size.
Master Issue: #2834
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]