Back to Jaeger

ClickHouse Storage Backend — Benchmarks

internal/storage/v2/clickhouse/BENCHMARKING.md

2.17.02.9 KB
Original Source

ClickHouse Storage Backend — Benchmarks

Test Environment

ComponentDetails
VMOracle Cloud VM.Standard2.4 (4 OCPUs, Intel Xeon Platinum 8167M)
Memory60 GB
Disk47 GB block storage
OSOracle Linux 9
ClickHouse26 (single-node)

Dataset

ParameterValue
Total traces1,000,000
Spans per trace10 (1 parent + 9 children)
Total spans10,000,000
Services10
Partitions (days)10
Attributes per span11 (across 97 distinct keys, 1000 distinct values)

Results

Compression (spans table)

MetricValue
Uncompressed size5.99 GiB
Compressed size722.09 MiB
Compression ratio8.6x

Script: table_compression_spans

Insert Throughput

MetricValue
Total spans10,000,000
Total insert duration191.8 s
Throughput (spans/sec)52,129

Script: schema_insert

Each query was run 3 times. The table shows averages across all runs.

Retrieval Queries

QueryAvg Duration
Retrieve services3 ms
Retrieve operations4 ms
Get trace by ID101 ms

Search Queries

QueryAvg Duration
Search by service37 ms
Search by operation38 ms
Search by duration range43 ms
Search by timestamp range47 ms
Search by attribute1,769 ms
Search by all filters139 ms

Reproducing

See the clickhouse-benchmarking repository for setup and reproduction instructions.