Skip to content

Conversation

pstibrany
Copy link
Contributor

@pstibrany pstibrany commented Apr 13, 2021

What this PR does: This PR adds -ruler.enabled-tenants and -ruler.disabled-tenants options to explicitly enable or disable rules processing for specific tenants. Code is extracted from Compactor, where this support already exists.

Checklist

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

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]>
Copy link
Contributor

@gotjosh gotjosh left a comment

Choose a reason for hiding this comment

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

Code looks 👌 , I just have a couple of comments on naming and wording.

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 job! LGTM! 🚀

Signed-off-by: Peter Štibraný <[email protected]>
@pstibrany
Copy link
Contributor Author

Thanks for your reviews! I've now addressed all your feedback.

Copy link
Contributor

@gotjosh gotjosh left a comment

Choose a reason for hiding this comment

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

LGTM!

shardingStrategy string
shuffleShardSize int
setupRing func(*ring.Desc)
enabledUsers []string
Copy link
Contributor

@gotjosh gotjosh Apr 14, 2021

Choose a reason for hiding this comment

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

nit: not sure if intended given I see other occurrences of the word but we're still using the Users suffix throughout this test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would need to change entire test to replace that. Doesn't seem to be worth the effort. I've changed ruler.go and compactor.go though.

Signed-off-by: Peter Štibraný <[email protected]>
@pstibrany pstibrany merged commit 71bfa41 into cortexproject:master Apr 14, 2021
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