-
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: Add optional flag to disable downsampling. #515
Conversation
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.
nits
@@ -44,6 +44,11 @@ func registerCompact(m map[string]setupFunc, app *kingpin.Application, name stri | |||
wait := cmd.Flag("wait", "Do not exit after all compactions have been processed and wait for new work."). | |||
Short('w').Bool() | |||
|
|||
// TODO(bplotka): Remove this flag once https://github.com/improbable-eng/thanos/issues/297 is fixed. | |||
disableDownsampling := cmd.Flag("debug.disable-downsampling", "Disables downsampling. This is not recommended " + |
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.
why is this not compact.disable-downsampling
? Seems to be the pattern elsewhere in the codebase ... see query.
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.
because it's debug only and should be set only when you know consequences.
cmd/thanos/compact.go
Outdated
// We run two passes of this to ensure that the 1h downsampling is generated | ||
// for 5m downsamplings created in the first run. | ||
level.Info(logger).Log("msg", "start first pass of downsampling") | ||
// TODO(bplotka): Remove "disableCompaction" once https://github.com/improbable-eng/thanos/issues/297 is fixed. |
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.
wrong flag disableDownsampling
?
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.
nice catch ):
fa91641
to
6dab67d
Compare
Fixes #297 Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
6dab67d
to
645f30c
Compare
PTAL @domgreen |
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.
LGTM
Fixes #297
PTAL @drax68