Skip to content

compactor

The configuration for the compactor service
As this is a single binary deployment this only holds the deep config, there is no kubernetes service

Type: object

Path: compactor


config

The deep config for the compactor

Type: object

Path: compactor.config


compaction

Type: object

Path: compactor.config.compaction


block_retention

Duration to keep blocks

Default: 48h

Type: string

Path: compactor.config.compaction.block_retention


compacted_block_retention

Duration to keep blocks that have been compacted elsewhere

Default: 1h

Type: string

Path: compactor.config.compaction.compacted_block_retention


compaction_window

Blocks in this time window will be compacted together

Default: 1h

Type: string

Path: compactor.config.compaction.compaction_window


v2_in_buffer_bytes

Amount of data to buffer from input blocks

Default: 5242880

Type: number

Path: compactor.config.compaction.v2_in_buffer_bytes


v2_out_buffer_bytes

Flush data to backend when buffer is this large

Default: 20971520

Type: number

Path: compactor.config.compaction.v2_out_buffer_bytes


max_compaction_objects

Maximum number of traces in a compacted block. WARNING: Deprecated. Use max_block_bytes instead.

Default: 6000000

Type: number

Path: compactor.config.compaction.max_compaction_objects


max_block_bytes

Maximum size of a compacted block in bytes

Default: 107374182400

Type: number

Path: compactor.config.compaction.max_block_bytes


retention_concurrency

Number of tenants to process in parallel during retention

Default: 10

Type: number

Path: compactor.config.compaction.retention_concurrency


v2_prefetch_snapshot_count

Number of traces to buffer in memory during compaction

Default: 1000

Type: number

Path: compactor.config.compaction.v2_prefetch_snapshot_count


max_time_per_tenant

The maximum amount of time to spend compacting a single tenant before moving to the next

Default: 5m

Type: string

Path: compactor.config.compaction.max_time_per_tenant


compaction_cycle

The time between compaction cycles

Default: 30s

Type: string

Path: compactor.config.compaction.compaction_cycle