-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
compact: do not cleanup blocks on boot #3532
compact: do not cleanup blocks on boot #3532
Conversation
eb3ed62
to
cf9ef37
Compare
This doesn't look like it addresses #3395 correctly. What should actually happen, is the HTTP socket should become open at the start of the process. And when either the cleanup, or compaction, or whatever starts failing the health check needs to start failing - or maybe the process might die because of errors. If there was a good reason to add cleanup at the start of the process, why remove it just to make the HTTP socket available? |
That's true on a very pedantic level but syncing the metas + doing an initial cleanup potentially can take a lot of time because some people had many left-over blocks. That's where the complaints were coming from. With these changes now we barely do anything on boot before enabling the HTTP socket so it should be seamless just like before. |
It'd be great if we can merge this into |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This simplifies a lot things, thanks 💪
I based this branch to Once this is merged we can do release 0.17.2 |
Do not cleanup blocks on boot because in some very bad cases there could be thousands of blocks ready-to-be deleted and doing that makes Thanos Compact exceed `initialDelaySeconds` on k8s. Signed-off-by: Giedrius Statkevičius <[email protected]>
cf9ef37
to
c9178db
Compare
@metalmatze @bwplotka I have rebased this PR, PTAL. |
Do not cleanup blocks on boot because in some very bad cases there could be thousands of blocks ready-to-be deleted and doing that makes Thanos Compact exceed `initialDelaySeconds` on k8s. Signed-off-by: Giedrius Statkevičius <[email protected]>
* Fix query frontend regression on release v0.17.0 (#3480) * query-frontend: make POST-request to downstream url for labels and series api endpoints (#3444) Signed-off-by: Alexander Tunik <[email protected]> * remove default response cache config Signed-off-by: Ben Ye <[email protected]> * ensure order when merging multiple responses Signed-off-by: Ben Ye <[email protected]> Co-authored-by: Alexander Tunik <[email protected]> * *: Set debug.SetPanicOnFault(true) so we can recover seg faults. (#3498) Signed-off-by: Bartlomiej Plotka <[email protected]> * Prepare v0.17.1 release (#3505) Signed-off-by: Matthias Loibl <[email protected]> * fix index out of bound bug when comparing ZLabelSets (#3520) * fix index out of bound bug when comparing ZLabelSets Signed-off-by: Ben Ye <[email protected]> * fix param parsing error message Signed-off-by: Ben Ye <[email protected]> * address comment feedbacks Signed-off-by: Ben Ye <[email protected]> * compact: do not cleanup blocks on boot (#3532) Do not cleanup blocks on boot because in some very bad cases there could be thousands of blocks ready-to-be deleted and doing that makes Thanos Compact exceed `initialDelaySeconds` on k8s. Signed-off-by: Giedrius Statkevičius <[email protected]> * Prepare v0.17.2 (#3543) Signed-off-by: Matthias Loibl <[email protected]> * Properly rebase CHANGELOG.md after merging release-0.17 Signed-off-by: Matthias Loibl <[email protected]> Co-authored-by: Ben Ye <[email protected]> Co-authored-by: Alexander Tunik <[email protected]> Co-authored-by: Bartlomiej Plotka <[email protected]> Co-authored-by: Giedrius Statkevičius <[email protected]>
Do not clean up blocks on boot because in some very bad cases there could
be thousands of blocks ready-to-be deleted and doing that makes Thanos
Compact exceed
initialDelaySeconds
on k8s.Signed-off-by: Giedrius Statkevičius [email protected]
Changes
Verification
Updated e2e tests that pass.
Fixes #3395.