Skip to content

add metric for monitor max queued record num shard#905

Open
flashmouse wants to merge 2 commits intoconfluentinc:masterfrom
flashmouse:add-shards-metric
Open

add metric for monitor max queued record num shard#905
flashmouse wants to merge 2 commits intoconfluentinc:masterfrom
flashmouse:add-shards-metric

Conversation

@flashmouse
Copy link
Copy Markdown
Contributor

I want to add a metric to monitor the maximum number of queued records for the shard. This metric is especially useful for orderType.KEY. If this metric is high and all messages are consumed at the same speed, it implies that some shards may contain a hot key with lots of records.

Checklist

  • Documentation (if applicable)
  • Changelog

@flashmouse flashmouse requested a review from a team as a code owner January 4, 2026 09:59
Antony Stubbs (astubbs) added a commit to astubbs/parallel-consumer that referenced this pull request Apr 18, 2026
…onfluentinc#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>
Antony Stubbs (astubbs) added a commit to astubbs/parallel-consumer that referenced this pull request Apr 18, 2026
…onfluentinc#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>
Antony Stubbs (astubbs) added a commit to astubbs/parallel-consumer that referenced this pull request Apr 20, 2026
…onfluentinc#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>
Antony Stubbs (astubbs) added a commit to astubbs/parallel-consumer that referenced this pull request Apr 20, 2026
…onfluentinc#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>
Antony Stubbs (astubbs) added a commit to astubbs/parallel-consumer that referenced this pull request Apr 20, 2026
…onfluentinc#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>
Antony Stubbs (astubbs) added a commit to astubbs/parallel-consumer that referenced this pull request Apr 20, 2026
…onfluentinc#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>
Antony Stubbs (astubbs) added a commit to astubbs/parallel-consumer that referenced this pull request Apr 20, 2026
…onfluentinc#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>
Antony Stubbs (astubbs) added a commit to astubbs/parallel-consumer that referenced this pull request Apr 21, 2026
…onfluentinc#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>
Antony Stubbs (astubbs) added a commit to astubbs/parallel-consumer that referenced this pull request Apr 21, 2026
…onfluentinc#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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant