Skip to content

Commit 4a18fb2

Browse files
authored
docs: Mention the dependecy on the compactor feature flag (#4302)
1 parent 85c16f5 commit 4a18fb2

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

cmd/pyroscope/help-all.txt.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Usage of ./pyroscope:
3636
-compactor.compaction-split-by string
3737
Experimental: The strategy to use when splitting blocks during compaction. Supported values are: fingerprint, stacktracePartition. (default "fingerprint")
3838
-compactor.compactor-downsampler-enabled
39-
If enabled, the compactor will downsample profiles in blocks at compaction level 3 and above. The original profiles are also kept. (default true)
39+
If enabled, the compactor will downsample profiles in blocks at compaction level 3 and above. The original profiles are also kept. Note: This set the default for the teanant overrides, in order to be effective it also requires compactor.downsampler-enabled to be set to true. (default true)
4040
-compactor.compactor-tenant-shard-size int
4141
Max number of compactors that can compact blocks for single tenant. 0 to disable the limit and use all compactors.
4242
-compactor.data-dir string

cmd/pyroscope/help.txt.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Usage of ./pyroscope:
88
-compactor.blocks-retention-period duration
99
Delete blocks containing samples older than the specified retention period. 0 to disable.
1010
-compactor.compactor-downsampler-enabled
11-
If enabled, the compactor will downsample profiles in blocks at compaction level 3 and above. The original profiles are also kept. (default true)
11+
If enabled, the compactor will downsample profiles in blocks at compaction level 3 and above. The original profiles are also kept. Note: This set the default for the teanant overrides, in order to be effective it also requires compactor.downsampler-enabled to be set to true. (default true)
1212
-compactor.compactor-tenant-shard-size int
1313
Max number of compactors that can compact blocks for single tenant. 0 to disable the limit and use all compactors.
1414
-compactor.data-dir string

docs/sources/configure-server/reference-configuration-parameters/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2215,7 +2215,9 @@ distributor_usage_groups:
22152215
[compactor_partial_block_deletion_delay: <duration> | default = 1d]
22162216
22172217
# If enabled, the compactor will downsample profiles in blocks at compaction
2218-
# level 3 and above. The original profiles are also kept.
2218+
# level 3 and above. The original profiles are also kept. Note: This set the
2219+
# default for the teanant overrides, in order to be effective it also requires
2220+
# compactor.downsampler-enabled to be set to true.
22192221
# CLI flag: -compactor.compactor-downsampler-enabled
22202222
[compactor_downsampler_enabled: <boolean> | default = true]
22212223

pkg/validation/limits.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func (l *Limits) RegisterFlags(f *flag.FlagSet) {
192192
f.IntVar(&l.CompactorTenantShardSize, "compactor.compactor-tenant-shard-size", 0, "Max number of compactors that can compact blocks for single tenant. 0 to disable the limit and use all compactors.")
193193
_ = l.CompactorPartialBlockDeletionDelay.Set("1d")
194194
f.Var(&l.CompactorPartialBlockDeletionDelay, "compactor.partial-block-deletion-delay", fmt.Sprintf("If a partial block (unfinished block without %s file) hasn't been modified for this time, it will be marked for deletion. The minimum accepted value is %s: a lower value will be ignored and the feature disabled. 0 to disable.", block.MetaFilename, MinCompactorPartialBlockDeletionDelay.String()))
195-
f.BoolVar(&l.CompactorDownsamplerEnabled, "compactor.compactor-downsampler-enabled", true, "If enabled, the compactor will downsample profiles in blocks at compaction level 3 and above. The original profiles are also kept.")
195+
f.BoolVar(&l.CompactorDownsamplerEnabled, "compactor.compactor-downsampler-enabled", true, "If enabled, the compactor will downsample profiles in blocks at compaction level 3 and above. The original profiles are also kept. Note: This set the default for the teanant overrides, in order to be effective it also requires compactor.downsampler-enabled to be set to true.")
196196

197197
_ = l.RejectNewerThan.Set("10m")
198198
f.Var(&l.RejectNewerThan, "validation.reject-newer-than", "This limits how far into the future profiling data can be ingested. This limit is enforced in the distributor. 0 to disable, defaults to 10m.")

0 commit comments

Comments
 (0)