Skip to content

compactor

Type: object

Path: compactor


replicas

Number of replicas for the compactor

Default: 1

Type: number

Path: compactor.replicas


hostAliases

hostAliases to add

Default: []

Type: list

Path: compactor.hostAliases


image

- ip: 1.2.3.4
hostnames:
- domain.tld

Type: object

Path: compactor.image


registry

The Docker registry for the compactor image. Overrides `deep.image.registry`

Default: null

Type: string

Path: compactor.image.registry


pullSecrets

Optional list of imagePullSecrets. Overrides `deep.image.pullSecrets`

Default: []

Type: list

Path: compactor.image.pullSecrets


repository

Docker image repository for the compactor image. Overrides `deep.image.repository`

Default: null

Type: string

Path: compactor.image.repository


tag

Docker image tag for the compactor image. Overrides `deep.image.tag`

Default: null

Type: string

Path: compactor.image.tag


priorityClassName

The name of the PriorityClass for compactor pods

Default: null

Type: string

Path: compactor.priorityClassName


podLabels

Labels for compactor pods

Default: {}

Type: string

Path: compactor.podLabels


annotations

Annotations for compactor deployment

Default: {}

Type: string

Path: compactor.annotations


podAnnotations

Annotations for compactor pods

Default: {}

Type: string

Path: compactor.podAnnotations


extraArgs

Additional CLI args for the compactor

Default: []

Type: list

Path: compactor.extraArgs


extraEnv

Environment variables to add to the compactor pods

Default: []

Type: list

Path: compactor.extraEnv


extraEnvFrom

Environment variables from secrets or configmaps to add to the compactor pods

Default: []

Type: list

Path: compactor.extraEnvFrom


resources

Resource requests and limits for the compactor

Default: {}

Type: string

Path: compactor.resources


terminationGracePeriodSeconds

Grace period to allow the compactor to shutdown before it is killed

Default: 30

Type: number

Path: compactor.terminationGracePeriodSeconds


nodeSelector

Node selector for compactor pods

Default: {}

Type: string

Path: compactor.nodeSelector


tolerations

Tolerations for compactor pods

Default: []

Type: list

Path: compactor.tolerations


extraVolumeMounts

Extra volumes for compactor pods

Default: []

Type: list

Path: compactor.extraVolumeMounts


extraVolumes

Extra volumes for compactor deployment

Default: []

Type: list

Path: compactor.extraVolumes


service

Type: object

Path: compactor.service


annotations

Annotations for compactor service

Default: {}

Type: string

Path: compactor.service.annotations


dnsConfigOverides

Type: object

Path: compactor.dnsConfigOverides


enabled

Default: false

Type: boolean

Path: compactor.dnsConfigOverides.enabled


dnsConfig

Type: object

Path: compactor.dnsConfigOverides.dnsConfig


options

Type: list

Path: compactor.dnsConfigOverides.dnsConfig.options


0

Type: object

Path: compactor.dnsConfigOverides.dnsConfig.options.0


name

Default: ndots

Type: string

Path: compactor.dnsConfigOverides.dnsConfig.options.0.name


list_item
value: "3"    # This is required for Azure Kubernetes Service (AKS) https://github.com/grafana/tempo/issues/1462

Default: ``

Type: string

Path: compactor.dnsConfigOverides.dnsConfig.options.0.list_item


config

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