Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v24.2.x] Remove shard aggregation on consumer group metrics #23627

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #23339

Currently we only aggregate on the `shard` label in the consumer group
metrics. This aggregation doesn't result in a reduced number of metric
series. It does, however, cause seastar to use the
`metric_aggregate_by_labels` class to aggregate the metrics.

This class uses a contiguous map type that isn't easily replaced and in
cases where there are many consumer groups, kafka topics, and partitions
there is enough unique label sets to cause an oversized allocation in
the continguous map.

By removing the `shard` label from aggregation though we avoid the code
path where `metric_aggregate_by_labels` is used and hence avoid the
oversized allocation.

(cherry picked from commit ca8cd1e)
@vbotbuildovich vbotbuildovich added this to the v24.2.x-next milestone Oct 3, 2024
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Oct 3, 2024
@BenPope
Copy link
Member

BenPope commented Oct 24, 2024

@ballard26 anything blocking this?

@piyushredpanda piyushredpanda merged commit 893f70f into redpanda-data:v24.2.x Nov 7, 2024
18 checks passed
@piyushredpanda piyushredpanda modified the milestones: v24.2.x-next, v24.2.9 Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants