Autoscaling Cloud Native Applications... with Math
summary
Shows a working autoscaler built as a control loop using Cloud Foundry and Kubernetes tools: it polls CF curl stats endpoint, runs CF scale via an activator, and implements a simple proportional controller (no integral/derivative) in shell with metrics pushed to Graphite. Demo generates 1,000 QPS (then spikes) by a K8s load generator, the app (intentional sqrt slowdown) scales roughly 20→21 instances, CPU rises then falls, and the repo is on GitHub (/control-theory).
AI-written summary · about
chapters (20)
- 0:00Start
- 0:55Your Distributed System
- 2:01Your Air Conditioner
- 2:46Autoscaling
- 5:27Centrifugal Governor
- 8:08Controller Loop Code
- 8:45Sample Output
- 9:07Linear-Time Invariant Systems
- 10:43Desired Properties
- 11:01Stability - Unstable Systems
- 12:22Stable Systems - Damping
- 12:56Accuracy
- 13:11Settling time
- 13:33Overshoots
- 13:58Controllers
- 14:21Proportional Control
- 15:02Integral Control
- 15:33Derivative Control
- 16:13Non-linearity
- 17:51Summary
related talks
42mMaking Resilient, Self-Adaptive, And Autonomous Kubernetes Clusters
20mDrive higher utilization of apps in Azure Spring Cloud with Autoscale
05mK8S Auto Scaling on Steroids
16mAutoscaling Distributed System with BOSH
29mKubernetes Autoscaling: Beyond One Size Fits All
29mProactive cluster autoscaling in Kubernetes
21mAutoscaling and Progressive Delivery - A Match Made in Heaven
28mScaling in Kubernetes Safely on On-Prem KaaS Across 1,300+ Clusters and 40,000+ Nodes
