Skip to content

Tenant deletion: ruler support. #3750

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 10 commits into from
Feb 15, 2021
Merged

Tenant deletion: ruler support. #3750

merged 10 commits into from
Feb 15, 2021

Conversation

pstibrany
Copy link
Contributor

@pstibrany pstibrany commented Jan 27, 2021

What this PR does: This PR extends tenant deletion API to support deletion of rule groups. API handler deletes rule groups directly, without using "deletion mark" as proposed in the design document.

In addition to that, it also changes ruler such that when ruler is no longer processing given rule group (due to resharding, or rule group deleted from bucket), it removes locally cached rule group.

PR also extends test suite for to verify rule store behaviour used by tenant deletion API handler (eg. deleting all rule groups for a user).

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.

Great job 👏 👏 👏 I just have a comment about the config. We can talk offline if you prefer.

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.

LGTM, thanks! (modulo a couple of nits)

Ruler now deletes local files for users that it no longer should process rules for.

Tenant deletion API now works with rule groups directly (deletes, lists).

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>
…s if it does.

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>
@pstibrany pstibrany merged commit 92e9047 into cortexproject:master Feb 15, 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.

2 participants