-
Notifications
You must be signed in to change notification settings - Fork 592
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kafka: Add fetch plan and execute latency metric
Adds a histogram metric to measure the time it takes to create the fetch plan and execute it - aka a single fetch poll. It's an approximation for the time it takes to process the data in a fetch request once it is available. I have separated two series one which is tracking empty fetches and one that isn't. Further the count of the histogram can be used to calculate the ratio of fetch requests to polls like so: ``` sum(irate(vectorized_kafka_handler_requests_completed_total{..., handler="fetch"}[$__rate_interval])) by ($aggr_criteria) / sum(irate(vectorized_fetch_stats_plan_and_execute_latency_us_count{...}[$__rate_interval])) by ($aggr_criteria) ``` Looking at some scenarios we get the following values: - 500MB/s, 4P/4C, 288P, ~110k batch, 1ms debounce: ~0.37 - 500MB/s, 4P/4C, 288P, ~110k batch, 10ms debounce: ~0.66 - 125MB/s, 8kP/8kC, 40k partitions, 1ms debounce: ~0.012 - 125MB/s, 8kP/8kC, 40k partitions, 10ms debounce: ~0.035 - 125MB/s, 8kP/8kC, 40k partitions, 100ms debounce: ~0.24 (cherry picked from commit 220b11e)
- Loading branch information
1 parent
49b298e
commit 7bf1cbd
Showing
2 changed files
with
49 additions
and
0 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