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

Let blocks_cleaner delete blocks concurrently #5028

Conversation

wgliang
Copy link
Contributor

@wgliang wgliang commented Dec 8, 2022

Signed-off-by: wangguoliang iamwgliang@gmail.com

What this PR does:
Let blocks_cleaner delete blocks concurrently. And it can make blocks cleanup faster when there is large amount of blocks.

Which issue(s) this PR fixes:
Fixes #

Checklist

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

@wgliang wgliang force-pushed the enhancement/delete-blocks-by-blocks_cleaner-concurrently branch 3 times, most recently from db57caa to 3ef1731 Compare December 8, 2022 14:45
@wgliang
Copy link
Contributor Author

wgliang commented Dec 9, 2022

PS: In fact, for parameters like this, I think the default value is enough. Exposing this parameter will only increase the burden.

@alanprot
Copy link
Member

alanprot commented Dec 9, 2022

PS: In fact, for parameters like this, I think the default value is enough. Exposing this parameter will only increase the burden.

+1... lets try to keep the config simple

@wgliang
Copy link
Contributor Author

wgliang commented Dec 9, 2022

PS: In fact, for parameters like this, I think the default value is enough. Exposing this parameter will only increase the burden.

+1... lets try to keep the config simple

Yes. If most people agree, I will remove the parameter control, the default value is 16.

@wgliang wgliang force-pushed the enhancement/delete-blocks-by-blocks_cleaner-concurrently branch 2 times, most recently from 7643fe1 to e51fc41 Compare December 13, 2022 09:53
Signed-off-by: wangguoliang <iamwgliang@gmail.com>
@wgliang wgliang force-pushed the enhancement/delete-blocks-by-blocks_cleaner-concurrently branch from e51fc41 to 0a69b1c Compare December 16, 2022 01:46
@jeromeinsf
Copy link
Collaborator

@yeya24 is it ready to be merged ?

Copy link
Collaborator

@yeya24 yeya24 left a comment

Choose a reason for hiding this comment

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

Thanks!

@yeya24 yeya24 merged commit f930c7a into cortexproject:master Dec 22, 2022
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.

None yet

4 participants