Scaling

One 4-vCPU Logs writer sustains 52,500 entries/s, about 2.9 TB/day of log lines.

Sizing

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

Measured capacity

Fig. — One Logs writer by CPU limit
2 vCPUnone passed at ≥ 40,000
knee 65,200
4 vCPU52,500 entries/s
knee 85,400
6 vCPU58,900 entries/s
knee 95,900
WriterValidatedKneep99Mean CPUPeak RSS
2 vCPU / 8 GiB—65,200—1.32.8 GiB
4 vCPU / 12 GiB52,500, 34 MiB/s85,40013 ms1.72.7 GiB
6 vCPU / 16 GiB58,900, 39 MiB/s95,90014 ms1.83.2 GiB
Solid: validated rate. Hatched: knee. Release v0.3.29.
  • Workload: Loki JSON, 1,600 entries and 128 streams per request, 10,000 active streams, 636-byte average line.
  • 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 · cost estimates