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

unhide disable-downsampling flag in compactor #1385

Merged
merged 1 commit into from
Aug 9, 2019

Conversation

yeya24
Copy link
Contributor

@yeya24 yeya24 commented Aug 8, 2019

Signed-off-by: yeya24 yb532204897@gmail.com

  • [] CHANGELOG entry if change is relevant to the end user.

fix #1377

Do I have to remove the debug prefix of this flag?

Changes

Verification

Copy link
Member

@jojohappy jojohappy left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM!

cmd/thanos/compact.go Outdated Show resolved Hide resolved
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.

2 suggestions and LGTM! (:

@@ -99,10 +99,9 @@ func registerCompact(m map[string]setupFunc, app *kingpin.Application) {
generateMissingIndexCacheFiles := cmd.Flag("index.generate-missing-cache-file", "If enabled, on startup compactor runs an on-off job that scans all the blocks to find all blocks with missing index cache file. It generates those if needed and upload.").
Hidden().Default("false").Bool()

// TODO(bplotka): Remove this flag once https://github.com/thanos-io/thanos/issues/297 is fixed.
disableDownsampling := cmd.Flag("debug.disable-downsampling", "Disables downsampling. This is not recommended "+
disableDownsampling := cmd.Flag("disable-downsampling", "Disables downsampling. This is not recommended "+
Copy link
Member

Choose a reason for hiding this comment

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

Can we name it downsampling.disable?

Copy link
Member

Choose a reason for hiding this comment

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

Essentially we might want to have more downsampling options some day (:

@@ -99,10 +99,9 @@ func registerCompact(m map[string]setupFunc, app *kingpin.Application) {
generateMissingIndexCacheFiles := cmd.Flag("index.generate-missing-cache-file", "If enabled, on startup compactor runs an on-off job that scans all the blocks to find all blocks with missing index cache file. It generates those if needed and upload.").
Hidden().Default("false").Bool()

// TODO(bplotka): Remove this flag once https://github.com/thanos-io/thanos/issues/297 is fixed.
disableDownsampling := cmd.Flag("debug.disable-downsampling", "Disables downsampling. This is not recommended "+
disableDownsampling := cmd.Flag("disable-downsampling", "Disables downsampling. This is not recommended "+
"as querying long time ranges without non-downsampled data is not efficient and not useful (is not possible to render all for human eye).").
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"as querying long time ranges without non-downsampled data is not efficient and not useful (is not possible to render all for human eye).").
"as querying long time ranges without non-downsampled data is not efficient and useful e.g it is not possible to render all samples for a human eye anyway").

Signed-off-by: yeya24 <yb532204897@gmail.com>
@yeya24
Copy link
Contributor Author

yeya24 commented Aug 9, 2019

Updated 😄 PTAL @bwplotka @GiedriusS

@bwplotka
Copy link
Member

bwplotka commented Aug 9, 2019

Thank you! LGTM.

@bwplotka bwplotka merged commit eaaeaa4 into thanos-io:master Aug 9, 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.

Unwanted downsampling during Thanos compact
4 participants