Commit 53f496b
feat: add max-queued-records-per-shard metric (cherry-pick Confluent confluentinc#905)
Cherry-pick of confluentinc#905 (author: flashmouse).
Adds a SHARDS_MAX_SIZE gauge that reports the record count in the
most-loaded shard. Useful with KEY ordering to detect hot-key
bottlenecks. Also simplifies .keySet().size() to .size().
Upstream PR: confluentinc#905
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 44c72f5 commit 53f496b
2 files changed
Lines changed: 6 additions & 1 deletion
File tree
- parallel-consumer-core/src/main/java/io/confluent/parallelconsumer
- metrics
- state
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
302 | 303 | | |
303 | 304 | | |
304 | 305 | | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
305 | 309 | | |
306 | | - | |
| 310 | + | |
307 | 311 | | |
308 | 312 | | |
0 commit comments