Skip to content

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
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ý <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
@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