How do you do capacity planning for a growing service?
What the interviewer wants to hear
- Forecast demand from historical growth and business events
- Measure capacity per instance with load testing
- Plan for N+1 or N+2 redundancy and peak traffic
- Account for lead time and cost
- Use autoscaling but know its limits, review regularly
Model answer
I start with demand: historical traffic trends plus known events such as sales, launches or festival seasons, and I plan for peak, not average. Then I measure supply by load testing to find how much traffic one instance can handle while still meeting the latency SLO, and which resource becomes the bottleneck first, often a database or a downstream service. From that I calculate instances needed at peak and add headroom, plus N+1 or N+2 so we survive losing a zone. I consider lead times for things like quotas, reserved capacity or database scaling, and I balance cost. Autoscaling helps with daily patterns but has limits like warm-up time, so I review the plan every quarter.
Can you answer it under time pressure?
Take a timed medium round and get scored on every answer.
More medium Site Reliability Engineer questions
- How would you design alerting for a service so that on-call engineers are not flooded with noisy alerts?
- Walk me through how you would run and write a postmortem after a major outage.
- How should a client retry failed calls to another service safely?
- A Linux server running a service suddenly becomes slow. How do you investigate?
- A team is launching a new checkout API and asks you to help define its SLOs. How do you approach it?
- Your Prometheus servers are running out of memory because of too many time series. How do you find the cause and keep cardinality under control?
- A Deployment rollout is stuck because new pods are in CrashLoopBackOff. Walk me through how you would debug it.
- During a major incident, how do you handle communication with customers, support and leadership?
- A big marketing launch is in three weeks. How would you load test the service to know it will cope?