Skip to content

Commit 876169d

Browse files
committed
Docs
Signed-off-by: alanprot <[email protected]>
1 parent b73a2bb commit 876169d

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

docs/blocks-storage/compactor.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,11 @@ compactor:
157157
# CLI flag: -compactor.block-files-concurrency
158158
[block_files_concurrency: <int> | default = 10]
159159

160+
# Number of goroutines to use when fetching blocks from object storage when
161+
# compacting.
162+
# CLI flag: -compactor.blocks-fetch-concurrency
163+
[blocks_fetch_concurrency: <int> | default = 3]
164+
160165
# When enabled, at compactor startup the bucket will be scanned and all found
161166
# deletion marks inside the block location will be copied to the markers
162167
# global location too. This option can (and should) be safely disabled as soon

docs/configuration/config-file-reference.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5322,6 +5322,11 @@ The `compactor_config` configures the compactor for the blocks storage.
53225322
# CLI flag: -compactor.block-files-concurrency
53235323
[block_files_concurrency: <int> | default = 10]
53245324
5325+
# Number of goroutines to use when fetching blocks from object storage when
5326+
# compacting.
5327+
# CLI flag: -compactor.blocks-fetch-concurrency
5328+
[blocks_fetch_concurrency: <int> | default = 3]
5329+
53255330
# When enabled, at compactor startup the bucket will be scanned and all found
53265331
# deletion marks inside the block location will be copied to the markers global
53275332
# location too. This option can (and should) be safely disabled as soon as the

pkg/compactor/compactor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ func (cfg *Config) RegisterFlags(f *flag.FlagSet) {
219219
f.BoolVar(&cfg.BlockDeletionMarksMigrationEnabled, "compactor.block-deletion-marks-migration-enabled", false, "When enabled, at compactor startup the bucket will be scanned and all found deletion marks inside the block location will be copied to the markers global location too. This option can (and should) be safely disabled as soon as the compactor has successfully run at least once.")
220220
f.BoolVar(&cfg.SkipBlocksWithOutOfOrderChunksEnabled, "compactor.skip-blocks-with-out-of-order-chunks-enabled", false, "When enabled, mark blocks containing index with out-of-order chunks for no compact instead of halting the compaction.")
221221
f.IntVar(&cfg.BlockFilesConcurrency, "compactor.block-files-concurrency", 10, "Number of goroutines to use when fetching/uploading block files from object storage.")
222-
f.IntVar(&cfg.BlocksFetchConcurrency, "compactor.blocks-fetch-concurrency", 10, "Number of goroutines to use when fetching blocks from object storage when compacting.")
222+
f.IntVar(&cfg.BlocksFetchConcurrency, "compactor.blocks-fetch-concurrency", 3, "Number of goroutines to use when fetching blocks from object storage when compacting.")
223223

224224
f.Var(&cfg.EnabledTenants, "compactor.enabled-tenants", "Comma separated list of tenants that can be compacted. If specified, only these tenants will be compacted by compactor, otherwise all tenants can be compacted. Subject to sharding.")
225225
f.Var(&cfg.DisabledTenants, "compactor.disabled-tenants", "Comma separated list of tenants that cannot be compacted by this compactor. If specified, and compactor would normally pick given tenant for compaction (via -compactor.enabled-tenants or sharding), it will be ignored instead.")

0 commit comments

Comments
 (0)