Stage 8, Part 4 of 9, Storage Deep Dive
Text
A
A
A
Sans
Serif
Light
Paper
Night
PART 4: CAPACITY PLANNING & COST MODELING
19. Storage Capacity and IOPS Modeling
Capacity Planning
text
Required capacity = (Data size) × (Growth factor) × (Replication factor)
Example:
- 100 GB data
- 20% annual growth
- 3x replication
- 3-year capacity = 100 × 1.2³ × 3 = 518 GB
IOPS Planning
Storage Type IOPS per GB Latency gp2 (AWS) 3 ~10ms gp3 (AWS) 3,000 baseline ~5ms io2 (AWS) 500:1 <1ms Premium SSD (Azure) 120 ~5ms Ultra Disk (Azure) Custom <1ms
Performance Tiers
Tier IOPS Throughput Use Case Standard 500 50 MB/s Dev/test Performance 3,000–16,000 125–500 MB/s Production Ultra 64,000+ 1,000+ MB/s Databases, AI
20. Storage Tiering and Cost Optimization
Storage Tiers
Tier Type Cost/GB Use Case Hot SSD/NVMe $$$ Databases, active data Warm SSD $$ Web apps Cold HDD $ Archives Archive Object ¢ Long-term retention
Cost Optimization Tactics
Tactic Savings Right-size volumes 30–50% Delete orphaned PVCs 20–40% Use gp3 instead of gp2 20% Use snapshots for backups 50% vs full copies Tier cold data 60–80%
Orphaned PVC Detection
bash
# Find PVCs not mounted by any Pod
kubectl get pvc -A -o json | jq -r '
.items[] |
select(.status.phase == "Bound") |
"\(.metadata.namespace)/\(.metadata.name)"
'
21. SLA & Availability Design
Availability Math
text
99.9% = 8.76 hours downtime/year
99.99% = 52.56 minutes downtime/year
99.999% = 5.26 minutes downtime/year
Storage SLA Design
Target Architecture 99.9% Single-AZ storage, basic backups 99.99% Multi-AZ storage, snapshots, Velero 99.999% Replicated storage (Ceph), cross-region backup
RPO and RTO
Metric Meaning Depends On RPO (Recovery Point Objective) Max data loss Backup frequency RTO (Recovery Time Objective) Max downtime Recovery speed
Strategy RPO RTO Snapshots Minutes Minutes Velero Hours Hours Replication Seconds Minutes Active-Active Zero Zero
Previous part Stage 8, Part 3: Production Failure Modes Stage Stage 8 contents Next part Stage 8, Part 5: Architecture & Strategy
1:1 copy of the class Google Doc, code in code blocks.