capacity-planning
Capacity Planning
Workflows
- Baseline: Measure current resource usage
- Forecast: Project future growth
- Size: Calculate required resources
- Buffer: Add headroom for spikes
- Monitor: Track actual vs. predicted
Key Metrics
Compute
- CPU utilization (target: 60-70%)
- Memory usage
- Request latency (P50, P95, P99)
Storage
- Disk IOPS
- Throughput (MB/s)
- Capacity growth rate
Network
- Bandwidth utilization
- Connection counts
- Packet loss
Estimation Framework
Little's Law
L = λ × W
L = Average number of items in system
λ = Average arrival rate
W = Average time in system
Example Calculation
Given:
- 1000 requests/second
- 100ms average response time
Required concurrent connections:
L = 1000 × 0.1 = 100 concurrent connections
Resource Sizing
Database Connections
connections = (requests_per_second × avg_query_time) × 1.5
Memory
memory = (concurrent_users × memory_per_user) + base_overhead
CPU Cores
cores = (peak_rps × cpu_time_per_request) / target_utilization
Growth Planning
Traffic Growth
- Historical growth rate
- Planned marketing/launches
- Seasonal patterns
Data Growth
- Records per day
- Record size
- Retention policy
Capacity Planning Document
- Current state metrics
- Growth assumptions
- Resource projections (3, 6, 12 months)
- Cost estimates
- Scaling triggers and thresholds
More from dralgorhythm/claude-agentic-framework
react-native-reanimated
React Native Reanimated 4.x animation patterns. Use when adding animations, transitions, entering/exiting effects, or gesture-driven animations to React Native screens. Replaces Framer Motion for mobile.
102brainstorming
Generate and explore ideas effectively. Use when starting new projects, solving problems, or exploring solutions. Covers ideation techniques and divergent thinking.
47security-review
Conduct security code reviews. Use when reviewing code for vulnerabilities, assessing security posture, or auditing applications. Covers security review checklist.
45compliance
Ensure regulatory compliance. Use when implementing GDPR, HIPAA, PCI-DSS, or SOC2 requirements. Covers compliance frameworks and controls.
45requirements-analysis
Analyze and refine product requirements. Use when clarifying scope, identifying gaps, or validating requirements. Covers requirement types and analysis techniques.
44optimizing-code
Improve code performance without changing behavior. Use when code fails latency/throughput requirements. Covers profiling, caching, and algorithmic optimization.
43