Latency hierarchy, capacity defaults, storage sizes, peak factors. The cheat sheet for back-of-envelope estimation.
Hardware and cloud-service constants age quickly. A table copied from an old machine is not a capacity plan. Keep durable unit relationships in memory, then benchmark the actual instance type, storage class, network path, runtime, payload and request mix.
Percentiles are not additive in general. Measure end-to-end p50/p95/p99 and use tracing to locate contributors. State whether timeouts are included, censored or counted as failures.
One byte is eight bits. SI prefixes are decimal: k = 10^3, M = 10^6, G = 10^9. Binary prefixes are Ki = 2^10, Mi = 2^20, Gi = 2^30. Use MB/s for decimal megabytes per second, MiB/s for binary mebibytes per second, and Mbit/s or Gbit/s for link rates. Never use “GB” to mean both 10^9 and 2^30 bytes in one calculation.
Payload throughput is not complete network throughput. Add measured request/response headers, TLS, transport, retries, replication and encoding. Check ingress, egress and east-west traffic separately.
Daily logical bytes = objects/day × average encoded bytes/object.
Physical storage additionally includes replication or erasure coding, indexes, metadata, write-ahead logs, compaction/merge headroom, temporary migration space, backups/snapshots and retention. Compression ratios and record sizes are workload measurements. Use sensitivity ranges rather than one precise-looking result.
For a stable system with matching boundaries:
L = λW
L is average items in the system, λ is effective arrival/throughput rate, and W is average time in the system. Example: 2,000 completed requests/s with 0.080 s mean time implies 160 average in-flight requests. This is a mean relationship, not a tail-capacity guarantee. Bursts, variability, retries and failures need tested headroom.
Benchmark until throughput, latency, errors and one or more resources reveal the knee. Publish the safe envelope with:
An RPS number without these conditions is not portable evidence.
A complete binary-storage conversion with an explicit per-day assumption.
End-to-end measurement and percentile-aware tracing.
Payload bytes/s converted to bit/s before measured overhead.
Average concurrency derived from effective rate and mean in-system time.
Load-test the production mix and operate before the SLO knee.
Введите числа или выберите пресет