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

Prune data in meta store for deleted shards #7601

Closed
corylanou opened this issue Nov 7, 2016 · 1 comment · Fixed by #7610
Closed

Prune data in meta store for deleted shards #7601

corylanou opened this issue Nov 7, 2016 · 1 comment · Fixed by #7610

Comments

@corylanou
Copy link
Contributor

Problem Statement

Currently, when a shard is deleted, it is simply marked with a timestamp in the DeletedAt field.

For long running instances, this can cause a build up of shard infos in the data store that create unnecessary garbage when being cloned as well as unnecessary cycles during searches of the shards.

Proposal

  • Each data node that successfully drops the shard will remove itself from the owner group of the shard.
  • A periodic service that runs every 30 minutes will prune all shards from the meta store that have no owners, or the DeletedAt is more than 2 weeks old.
@jwilder
Copy link
Contributor

jwilder commented Nov 7, 2016

Sounds good. I think the periodic service should be the current the retention service that already already does most of the other tasks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants