Stage 8, Part 4 of 9 · p. 68, Storage Deep Dive

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 TypeIOPS per GBLatency
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

TierIOPSThroughputUse Case
Standard50050 MB/sDev/test
Performance3,000–16,000125–500 MB/sProduction
Ultra64,000+1,000+ MB/sDatabases, AI

20. Storage Tiering and Cost Optimization

Storage Tiers

TierTypeCost/GBUse Case
HotSSD/NVMe$$$Databases, active data
WarmSSD$$Web apps
ColdHDD$Archives
ArchiveObject¢Long-term retention

Cost Optimization Tactics

TacticSavings
Right-size volumes30–50%
Delete orphaned PVCs20–40%
Use gp3 instead of gp220%
Use snapshots for backups50% vs full copies
Tier cold data60–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

TargetArchitecture
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

MetricMeaningDepends On
RPO (Recovery Point Objective)Max data lossBackup frequency
RTO (Recovery Time Objective)Max downtimeRecovery speed
StrategyRPORTO
SnapshotsMinutesMinutes
VeleroHoursHours
ReplicationSecondsMinutes
Active-ActiveZeroZero

1:1 copy of the class Google Doc, code in code blocks.