Container Size Calculator

Right-size CPU and memory requests and limits for your containers.

Recommended Resources

CPU Request
100m
guaranteed
CPU Limit
500m
maximum
Memory Request
128Mi
guaranteed
Memory Limit
256Mi
maximum
Request:Limit Ratio
1:5 CPU, 1:2 Memory
Total Cluster Resources (Requests × Replicas)
Total CPU
200m
Total Memory
256Mi

Kubernetes YAML

resources:
  requests:
    cpu: "100m"
    memory: "128Mi"
  limits:
    cpu: "500m"
    memory: "256Mi"

Common Resource Profiles by Workload

Workload CPU Req CPU Limit
Web Server 100m 500m
API Service 250m 1000m
Background Worker 500m 2000m
Database 500m 2000m
Cache (Redis) 100m 500m
Message Queue 250m 1000m

How to Use This Calculator

1
Select workload type
Web server, API, worker, database, etc.
2
Choose runtime & traffic
Language affects memory, traffic affects CPU
3
Copy the YAML
Paste directly into your K8s manifests
Requests ≠ Limits
Requests are guaranteed resources (used for scheduling). Limits are the maximum allowed. Setting requests too high wastes cluster capacity. Setting limits too low causes OOMKilled and CPU throttling. Start with a 1:2 to 1:4 ratio.

The Essentials

Requests vs Limits
Requests = guaranteed. Limits = maximum allowed
OOMKilled
Container exceeds memory limit → killed immediately
CPU Throttling
Container exceeds CPU limit → throttled, not killed
QoS Classes
Guaranteed (req=limit), Burstable (req<limit), BestEffort (none)
JVM Needs More
Java apps need 2-3x memory vs Go/Rust for same work
Start Small
Begin with low requests, monitor actual usage, then adjust

Frequently Asked Questions

Running containers in production?

Warden monitors your containerized services externally with 30-second health checks.

Join the waitlist →