Skip to content
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

optimize ingester data cleanup when a tenant is deleted #291

Merged
merged 2 commits into from
Jul 26, 2023

Conversation

junotx
Copy link
Collaborator

@junotx junotx commented Jul 26, 2023

When a tenant is added or deleted, only the ingester associated with it will restart.

This pr may be able to fix the issue #284, or at least reduce its frequency.

@junotx junotx requested a review from benjaminhuo July 26, 2023 07:20
type IngesterTenantStatus struct {
Name string `json:"name"`
// true represents that the tenant has been moved to other ingester but may left tsdb data in this ingester.
Legacy bool `json:"legacy"`
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Legacy bool `json:"legacy"`
Obsolete bool `json:"obsolete"`

@benjaminhuo
Copy link
Member

@wanjunlei pls also take a look

@benjaminhuo benjaminhuo merged commit e2b54c8 into WizTelemetry:master Jul 26, 2023
@junotx junotx deleted the cleanup-optimize branch July 26, 2023 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants