Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
The Maths of Microscaling
Search
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
360
Building a cloud native business on open source
lizrice
0
290
KCD Lima: eBee in Peru!
lizrice
0
230
Unleashing the kernel with eBPF
lizrice
0
450
eBPF's Abilities and Limitations: The Truth
lizrice
0
560
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
170
Keeping it simple: Cilium Mesh - networking for multi-cloud Kubernetes and beyond
lizrice
1
820
How Many Proxies Do You Need
lizrice
1
230
Other Decks in Technology
See All in Technology
並行性の問題を防げ!実践トランザクション入門
occhi
0
110
インバスケット試験対策アプリを 作って見えたAIエージェント構築 ナレッジ2選
shichijoyuhi
1
110
【Findyテック文化祭ワークショップ】新卒エンジニア&採用担当と作る、 なりたい姿と今やるべき一歩
dip_tech
PRO
0
150
OpenClawでAzure DevOpsのWiki更新を自動化する - クラウドAIだけでは届かない場所へ
yutakaosada
0
140
AI Made Us Faster at Solving the Wrong Problems
marceloancelmo
0
130
サーバーフルコンピューティング?AWS Lambda
iwatatomoya
0
120
AI臭い文章とは何なのか
nasuvitz
38
76k
企業の現実世界をグラフで写し取る
sansantech
PRO
0
240
Lambda MicroVMsは常駐サーバーの代わりに なるか? Kiro Crew を動かして検証してみた / Kiro Crew on Lambda MicroVMs
k_adachi_01
2
350
Mastering Agentic Development: Harness Engineering for Effective Coding Agents
konippi
3
670
営業オントロジーの作り方と、エージェントからの辿り方 ── ナレッジワークの現場から
kworkdev
PRO
1
220
ビジネスを止めない技術的負債の返済のための戦略とその手法 - 技術的負債と向き合う / Complexity and Simplicity
soudai
PRO
2
360
Featured
See All Featured
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
510
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
390
How to Talk to Developers About Accessibility
jct
2
560
Abbi's Birthday
coloredviolet
4
10k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
420
The Curious Case for Waylosing
cassininazir
1
550
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
420
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
930
Between Models and Reality
mayunak
4
480
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.7k
Design in an AI World
tapps
1
340
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