Skip to content

HA tracker limits #3668

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

Merged
merged 14 commits into from
Jan 18, 2021
Merged

HA tracker limits #3668

merged 14 commits into from
Jan 18, 2021

Conversation

pstibrany
Copy link
Contributor

@pstibrany pstibrany commented Jan 8, 2021

What this PR does: This PR verifies that replica label isn't larger than configured max label value limit, and also introduces new limit for maximum number of clusters tracked by HA tracker.

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea applying the label length limit to the replica too: LGTM! However, I left a couple of comments to the max cluster limit.

Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @pstibrany for addressing my feedback. Overall LGTM, but I left few last comments.

CHANGELOG.md Outdated
@@ -39,6 +39,7 @@
* [CHANGE] Ruler: gRPC message size default limits on the Ruler-client side have changed: #3523
- limit for outgoing gRPC messages has changed from 2147483647 to 16777216 bytes
- limit for incoming gRPC messages has changed from 4194304 to 104857600 bytes
* [CHANGE] HA Tracker: verify label value limit for replica label. #3668
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* [CHANGE] HA Tracker: verify label value limit for replica label. #3668
* [CHANGE] HA Tracker: verify label value length limit (`-validation.max-length-label-value`) for replica label. #3668

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. I've also moved entry to "master" section, somehow it was in 1.6 :)

Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You did great! LGTM (I think the comment on CHANGELOG still makes sense, but up to you).

@pstibrany
Copy link
Contributor Author

You did great! LGTM (I think the comment on CHANGELOG still makes sense, but up to you).

Oh, sorry I missed that! Thanks for review, I’ll fix the changelog before merging.

pstibrany and others added 14 commits January 18, 2021 10:26
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
…alidation fails.

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
@pstibrany pstibrany merged commit 15d98ef into cortexproject:master Jan 18, 2021
@pstibrany pstibrany deleted the ha_tracker_limits branch January 18, 2021 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants