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

sidecar: don't require Prometheus min/max block durations to be equal #1902

Merged
merged 1 commit into from
Dec 17, 2019

Conversation

cstyan
Copy link
Contributor

@cstyan cstyan commented Dec 17, 2019

@bwplotka

Adds a flag that allows users to disable the requirement that their Prometheus instances have equal min/max block durations if they have enabled block upload.

As discussed on slack; because only uncompacted blocks are uploaded, in the event of an upload failure or network issues that last longer than 4h there is the potential for data loss (in the bucket storage) if blocks are compacted by Prometheus during that time

Signed-off-by: Callum Styan [email protected]
cc @gouthamve @beorn7

  • I added CHANGELOG entry for this change.

@cstyan cstyan force-pushed the sidecar-unequal-block branch from 2fc4b10 to 331ec7f Compare December 17, 2019 16:11
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.

Nice, thanks! Let's make it hidden and then LGTM. Does it make sense?

@@ -60,6 +60,8 @@ func registerSidecar(m map[string]setupFunc, app *kingpin.Application) {

uploadCompacted := cmd.Flag("shipper.upload-compacted", "If true sidecar will try to upload compacted blocks as well. Useful for migration purposes. Works only if compaction is disabled on Prometheus. Do it once and then disable the flag when done.").Default("false").Bool()

ignoreBlockSize := cmd.Flag("shipper.ignore-unequal-block-size", "If true sidecar will not require prometheus min and max block size flags to be set to the same value. Only use this if you want to keep long retention and compaction enabled on your Prometheus instance, as in the worst case it can result in ~2h data loss for your Thanos bucket storage.").Default("false").Bool()
Copy link
Member

Choose a reason for hiding this comment

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

Let's make it .Hidden() for now and not put in CHANGELOG (:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I also removed it from docs/components/sidecar.md

@cstyan cstyan force-pushed the sidecar-unequal-block branch from 331ec7f to 9d9db25 Compare December 17, 2019 16:29
@bwplotka bwplotka merged commit 314d3f7 into thanos-io:master Dec 17, 2019
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.

3 participants