GuideFoundational2 min read
Capacity Planning Arithmetic for Small Teams
Estimate throughput, database concurrency, storage growth and error budgets without pretending example numbers are production metrics.
- Author
- Pradeep Gajendra
- Published
- Updated
Scope of this article
- Environment
- All workload sizes and peak factors in examples are hypothetical.
Capacity planning starts with units, assumptions and an error range—not a cloud instance recommendation. Even a rough spreadsheet becomes useful when the team can explain why a variable has its chosen value and when that assumption expires.
Step one: express demand in two numbers#
For a service with 240,000 requests per day, average arrival rate is about 2.8 requests per second. The mean is not the peak. If the observed busiest minute is 18 times the daily average, budget around 50 requests per second before adding explicit safety margin.
The peak factor is an illustrative input, not a universal traffic pattern. Measure an actual one-minute or five-minute maximum, and model anticipated launches or bursts separately.
Step two: separate storage from traffic#
Variable | Assumption | Derived impact |
|---|---|---|
New content records | 20,000/day | 7.3M/year |
Average logical row + index footprint | 2 KiB | ~14 GiB/year before replication and bloat |
Images/uploads | 30 GiB/month | 360 GiB/year in object storage |
Retention | 2 years | Roughly doubles raw year-one growth |
Model backups, indexes, table bloat, WAL retention, replicas and CDN egress separately. Treat compressed media, database rows and analytics events as distinct cost centers. A single 'GB per user' number hides all the decisions.
Step three: concurrency follows time in the resource#
Little's law relates arrival rate to average number of requests in a stage. If 50 requests per second hold a database connection for 20 milliseconds on average, average occupancy is one connection, not 50. Headroom is required for tail latency, skew and transactions.
Step four: put a budget on failure#
A 99.9% monthly availability objective corresponds to about 43.2 minutes of unavailability in a 30-day month. Define what counts as unavailable: full outage, 5xx above a threshold, or a slower-than-SLO request. Error budgets are meaningful only when the measurement definition is explicit.
Build a model you can disprove#
List every input with source, date, owner and uncertainty band.
Model typical, promotional peak and failure/degraded modes separately.
Use a realistic traffic mix: read-heavy catalog browsing behaves differently from checkout writes.
Load test until a measured limiting resource appears; record p99 latency, throughput, CPU, queue time and error rate together.
Re-run when product traffic, query plans, code paths or infrastructure change.
A useful estimate is one that predicts what will break first and tells you when to measure again. High precision based on invented demand is not precision.
Spotted an error? Use “Suggest a correction” in the discussion, or read our corrections policy.
Discussion
Sign in to join the discussion. Reading is always open.
Loading discussion…