Scaling
One 4-vCPU Logs writer sustains 52,500 entries/s, about 2.9 TB/day of log lines.
Sizing
| Writer | Plan each writer at |
|---|---|
| 4 vCPU, 8Gi | 39,000 entries/s |
| 2 vCPU, not validated | at 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
| Writer | Validated | Knee | p99 | Mean CPU | Peak RSS |
|---|---|---|---|---|---|
| 2 vCPU / 8 GiB | — | 65,200 | — | 1.3 | 2.8 GiB |
| 4 vCPU / 12 GiB | 52,500, 34 MiB/s | 85,400 | 13 ms | 1.7 | 2.7 GiB |
| 6 vCPU / 16 GiB | 58,900, 39 MiB/s | 95,900 | 14 ms | 1.8 | 3.2 GiB |
- 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.