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

compact: set unready if halted #2806

Closed
wants to merge 1 commit into from

Conversation

JensErat
Copy link
Contributor

If comapctor is halted, it should not report ready state any more.

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

Verification

If comapctor is halted, it should not report ready state any more.

Signed-off-by: Jens Erat <email@jenserat.de>
Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

Thanks! But does this mean that Kubernetes will restart it, right?

So this means this change is the same as the setting --no-halt-on-error flag (: No? We actually want still access UI's and everything is working just fine on halt, just compaction is halted, so from HTTP and UI perspective it's ready. What do you think? 🤔

@JensErat
Copy link
Contributor Author

JensErat commented Jun 25, 2020

Seems I was somehow to fast in sending the PR through the command line (actually wanted to add some more notes on exactly that this might be subject of discussion regarding whether this is wanted), but seems I actually sent the first copy instead of cancelling... This PR also still misses changelog and everything because I wanted to be sure this gets agreement first.

I guess in this case you probably should remove the health check? In this case Kubernetes will not restart it any more. I know I can also set the hidden debug flag (actually, that's what I'm deploying right now because of #2805), but saying "compactor is ready" although it actually failed feels slightly wrong.

@GiedriusS
Copy link
Member

Thanks! But does this mean that Kubernetes will restart it, right?

So this means this change is the same as the setting --no-halt-on-error flag (: No? We actually want still access UI's and everything is working just fine on halt, just compaction is halted, so from HTTP and UI perspective it's ready. What do you think? thinking

I concur with @bwplotka here. That flag should suffice. Plus, the whole idea is that when Thanos Compactor is halted like this, it should still remain up so that you could go and troubleshoot what had happened.

@bwplotka
Copy link
Member

Yes. Essentially if we mark it as unready we could equally just not halt it and crash (: Same effect.

module _ // Fake go.mod auto-created by 'bingo' for go -moddir compatibility with non-Go projects. Commit this file, together with other .mod files.

go 1.13
Copy link
Member

Choose a reason for hiding this comment

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

On the other note, bingo requires at least go 1.14

@JensErat JensErat closed this Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants