-
Notifications
You must be signed in to change notification settings - Fork 633
[CORE-9523] Consumer Group Lag: Set empty shard label #25383
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
[CORE-9523] Consumer Group Lag: Set empty shard label #25383
Conversation
CI test resultstest results on build#63138
test results on build#63218
test results on build#63365
|
8b6e49e
to
362e600
Compare
This is a bit of an anti pattern because of the issue described here: #23339 I don't think cardinality itself is an issue anymore as per previous discussions. If you really want to avoid the shard label changing I think best would be to explicitly add the shard label with a static value ("0" or "") as that will prevent seastar from adding it automatically (with the varying shard). |
As currently implemented, the metrics contain the shard label, which can add to cardinality over time as the group coordinator can change shard. Reduce cardinality by explicitly setting shard label empty, to prevent seastar from adding it. Signed-off-by: Ben Pope <[email protected]>
A group which has transitioned to dead does not need metrics; ensure metrics are only emmitted when state is not dead by checking the state in setup_metrics(), and set_state where all transitions pass through. This avoids making requests for partition offsets when not necessary. Signed-off-by: Ben Pope <[email protected]>
362e600
to
d64ca1b
Compare
Changes in force-push
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
/backport v25.1.x |
As currently implemented, the metrics contain the shard label, which can add to cardinality over time as the group coordinator can change.
Override the shard label to prevent seastar setting it, to prevent cardinality increase if the group coordinator moves shard.
Backports Required
Release Notes