Microservices Sizing Approach
How to Size you microservices PODs
How to Size you microservices PODs
3 Day(s)
🎯 LEARNING OBJECTIVES
Understand microservices POD sizing principles.
Calculate RPS and required POD capacity.
Identify service dependencies and traffic patterns.
Apply load testing and autoscaling strategies.
🧠 PREREQUISITES
Basic microservices architecture.
Kubernetes and POD concepts.
Basic performance engineering (RPS, CPU, response time).
Familiarity with load testing.
What it is: a simple, repeatable method for deciding how many pods each microservice needs, based on expected peak traffic and measured pod capacity.
Scope: it covers the scope of the microservice one journey, for example Order Management, which calls four microservices: Master setup, Orders, Payment and Notifications.
Omni-channel input: Web and Mobile traffic are added together, because both channels share the same backend services.
Core idea: convert business load (journeys per second) into technical load (requests per second per service), then divide by what one pod can handle.
Formula: Pods = ceil(Service RPS ÷ RPS per pod × burst factor), with a minimum of 2-3 pods per service for high availability.
RPS: Request per second: Safety margin
Elasticity: the calculated number is the baseline. Autoscaling (HPA) adds pods above it as demand grows.
Evidence-based: the model relies on load-test results, not assumptions, and is re-checked against production metrics after go-live.
Outcome: a clear, justifiable pod count per service that balances performance, availability and cost.
Handle peak Web and Mobile traffic without breaching latency targets.
Keep every service highly available, so losing a pod or node does not cause an outage.
Scale automatically with demand and avoid paying for idle capacity.
Give a clear, justifiable pod count per service.
Mixed traffic: Web and Mobile peaks differ, and mobile retries can cause sudden spikes.
Fan-out: one journey generates multiple calls per service.
Uneven services:
Orders is the heaviest.
Master setup is mostly cached reads.
Payment depends on an external gateway.
Notifications is asynchronous.
Cascading slowness: a slow Payment or Notifications service can exhaust Orders' threads.
Cluster limits: nodes need spare room for autoscaling to actually add pods.
Find peak load: peak journeys/sec = Web + Mobile combined.
Per service: Service RPS = journeys/sec × calls per journey.
Test one pod: load test a single pod and record the RPS it sustains at about 65% CPU.
Calculate: Pods = ceil(Service RPS ÷ RPS per pod × 1.3 burst factor).
Apply an HA floor: at least 2-3 pods per service, spread across zones.
Add autoscaling (HPA): minimum = calculated pods, maximum = 2× that.
Protect services: use rate limits and circuit breakers on Payment and Notifications.
Validate: load test at 1.5× expected peak, then adjust from real metrics.
Assume a peak of 100 journeys/sec (40 Web + 60 Mobile).
Master setup: 300 RPS ÷ 150 per pod → 3 pods
Orders: 400 RPS ÷ 80 per pod → 7 pods
Payment: 200 RPS ÷ 50 per pod → 6 pods
Notifications: 100 RPS ÷ 200 per pod → 3 pods (HA floor)
Autoscaling: the minimum is the numbers above, and the maximum is about 2× each.
If you send your real peak journeys/sec and per-pod RPS, I'll replace the sample with your actual numbers.
Dr. Ghoniem Lawaty
Tech Evangelist @TechHuB Egypt