Stage 3, Part 4 of 10, Control Plane Internals

Text

PART 4: CAPACITY PLANNING & COST MODELING

18. etcd Sizing and Performance

etcd Capacity Planning

Cluster Sizeetcd NodesCPUMemoryDisk
< 100 nodes328 GB50 GB SSD
100-500 nodes3416 GB100 GB SSD
500-1000 nodes5832 GB200 GB NVMe
> 1000 nodes51664 GB500 GB NVMe

etcd Performance Metrics

MetricTarget
fsync latency< 10ms
WAL fsync duration< 25ms (p99)
DB size< 2 GB
Leader changes0 per hour (stable)
Request latency< 50ms (p99)

The Disk I/O Warning

Mechanical HDDs have fsync latency > 10ms. This causes:

Always use SSD or NVMe for etcd.


19. Control Plane Capacity Planning

API Server Scaling

FactorImpact
Requests/secondMore API server replicas
WebhooksEach webhook adds latency
APFProtects against overload
Load balancerRequired for HA

API Server Resource Requirements

Cluster SizeCPU per replicaMemory per replica
< 100 nodes24 GB
100-500 nodes48 GB
500-1000 nodes816 GB
> 1000 nodes1632 GB

Scheduler and Controller Manager

ComponentCPUMemory
Scheduler22 GB
Controller Manager24 GB

20. 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

Control Plane SLA Design

TargetArchitecture
99.9%Single control plane, etcd backups
99.99%3-node HA control plane, 3-node etcd
99.999%5-node HA control plane, 5-node etcd, multi-AZ

The Failover Time

FailureFailover Time
API server podInstant (load balancer)
Scheduler leader~15s (lease expiry)
Controller manager leader~15s (lease expiry)
etcd leader~1-2s (Raft election)

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