Scaling

One 4-vCPU Traces writer sustains 28,400 spans/s, about 14 MiB/s.

Sizing

WriterPlan each writer at
4 vCPU, 6Gi21,000 spans/s
2 vCPU, not validatedat most 12,000 spans/s
text
writers = ceil(peak spans/s / 28,400 / 0.75)
yaml
spec:
  writer:
    replicas: 5
    resources:
      requests: { cpu: "4", memory: 6Gi }
      limits: { cpu: "4", memory: 6Gi }
  • Each writer owns one shard. Add writers, not cores: 6 vCPU sustains no more than 4.
  • Set requests equal to limits. Memory must be at least 6 GiB; peak RSS in the test was 2.2 GiB.
  • Scale out on 429s or memory above 65% of the limit, not CPU.

Measured capacity

Fig. — One Traces writer by CPU limit
2 vCPUnone passed at ≥ 17,300
knee 28,200
4 vCPU28,400 spans/s
knee 39,400
6 vCPU26,800 spans/s
knee 43,700
WriterValidatedKneep99Mean CPUPeak RSS
2 vCPU / 8 GiB—28,200—1.41.1 GiB
4 vCPU / 12 GiB28,400, 14 MiB/s39,40038 ms2.41.5 GiB
6 vCPU / 16 GiB26,800, 13 MiB/s43,70025 ms3.71.9 GiB
Solid: validated rate. Hatched: knee. Release v0.3.29.
  • Workload: OTLP/HTTP protobuf, 2,000 spans per request, 5 spans per trace, about 512 bytes per span.
  • Environment: m8i.2xlarge, us-east-2, S3 Standard, 64 concurrent connections.
  • Validated: 10-minute soak with under 0.1% of requests rejected and p99 under 1 s.
  • Knee: the highest rate in a 15-minute ramp with under 2% of requests rejected and p99 under 1 s.

Runner · method