The Autoscaling Paradox
Kubernetes scaled from 8 to 40 pods during the peak. Why did response times double?
此挑战尚未翻译为简体中文,你正在阅读英文版本。
任务:Serve 3,000 requests per second with ≤ 1% errors, database utilisation ≤ 80%, and at most 16 pods' worth of cost.
Larkspur's API runs behind a HorizontalPodAutoscaler. During a promotion, latency rose, the HPA kept adding pods up to the maximum, and the database — now juggling 400 connections — slowed down for everyone.
任务: Serve 3,000 requests per second with ≤ 1% errors, database utilisation ≤ 80%, and at most 16 pods' worth of cost.
学习目标
- See how scaling a tier moves load to a shared dependency.
- Understand connection contention in PostgreSQL.
- Use a connection pooler and scale on the real bottleneck.
模拟模拟数据