Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
The Maths of Microscaling
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Liz Rice
November 08, 2016
Technology
250
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
The Maths of Microscaling
Using control theory to scale containers in real time, in response to demand
Liz Rice
November 08, 2016
More Decks by Liz Rice
See All by Liz Rice
Detecting Compromised CI with eBPF and Cilium Tetragon
lizrice
0
300
Building a cloud native business on open source
lizrice
0
280
KCD Lima: eBee in Peru!
lizrice
0
220
Unleashing the kernel with eBPF
lizrice
0
450
eBPF's Abilities and Limitations: The Truth
lizrice
0
550
Simplifying multi-cloud and multi-cluster Kubernetes deployments with Cilium
lizrice
0
320
When is a Secure Connection not encrypted? And other stories
lizrice
1
160
Keeping it simple: Cilium Mesh - networking for multi-cloud Kubernetes and beyond
lizrice
1
820
How Many Proxies Do You Need
lizrice
1
220
Other Decks in Technology
See All in Technology
KAEN Company Deck
kaen
PRO
0
320
コスト最適化の「めんどくさい」を AWS FinOps Agent でチョット楽にする
classmethod_kaz
0
160
こんなアーキテクチャ図は嫌だ BEYOND THE TIME: 半年後の自分へ贈る15のメッセージ / 15 of Anti-pattern in AWS Architecture Diagrams
naospon
3
230
ブラウザアプリの継続的パフォーマンスモニタリング (序) / Continuous Browser Application Performance Monitoring; Act 1
moznion
0
110
Amazon S3 Tablesに全部任せてみた結果——コンパクション/スナップショット管理は本当に手放せるか
shigeruoda
0
370
AI-DLCって実際どう? 〜聞きたいこと全部聞いてみる〜
news_it_enj
0
220
DGX Sparkを2台使って いろいろ動かす話
sonoda_mj
1
130
AIで実装は速くなった。なのにプロダクトは速くならない。職能の壁を越えて価値のフローを設計する
nwiizo
6
7k
現場に行くだけでは足りない——プロダクトエンジニアが業務の流れを捉える観点と、その鍛え方
takumiengineering
0
280
bet_ai_day_2026_session02
agenticsec
1
980
振り返りこそエンジニアの本領
negima
0
280
多摩川(.dev)ランニング入門 / Tamagawa.dev#3
fujiwara3
3
350
Featured
See All Featured
It's Worth the Effort
3n
188
29k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
Visualization
eitanlees
152
17k
The untapped power of vector embeddings
frankvandijk
2
1.9k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Building Flexible Design Systems
yeseniaperezcruz
330
41k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.7k
Google's AI Overviews - The New Search
badams
0
1.6k
Believing is Seeing
oripsolob
1
210
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
410
Paper Plane
katiecoart
PRO
2
53k
Transcript
The Maths of Microscaling Liz Rice @lizrice | @microscaling
What is Microscaling? Assumptions Some theory Some experiments
What is Microscaling?
Traffic spike
Too much work Spare capacity
container scaling work performance metrics
work performance metrics container scaling VM autoscaling
True for regular autoscaling too VMs take much longer to
scale
Orchestration Heterogenous services Cattle not pets
Performance targets
How many containers? Request processing time Rate of requests known?
predictable?
performance target actual performance error time t
performance target p time t actual performance x e(t) =
x(t) - p(t) e(t) → 0 error e
x(t) is proportional to n(t) n(t) = k x(t) error
e time t number of containers n
x(t) is proportional to n(t) nope! error e time t
number of containers n d(t) is proportional to e(t) d
Time delays It’s a dynamical system
Woah, the future! error e time t d(t) is proportional
to e(t + T) T d
None
Control theory!
PID controller
error e time t Proportional term d(t) = Kp e(t)
The further we are below target the more containers we need
error e time t Derivative term The faster we approach
target the fewer containers we need d(t) = Kp e(t) + Kd ė(t)
error e time t Integral term d(t) = Kp e(t)
+ Kd ė(t) + Ki e(t) Offset errors accumulated over time ∫
Which values for K? Discrete containers?
Simulator goo.gl/KAqT5y
It works! But it’s non-trivial to tune
Known behaviours Machine learning
Container parameters = metadata microbadger.com
github.com/microscaling @lizrice | @microscaling app.microscaling.com microbadger.com