Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
The Maths of Microscaling
Search
Liz Rice
November 08, 2016
Technology
2
210
The Maths of Microscaling
Using control theory to scale containers in real time, in response to demand
Liz Rice
November 08, 2016
Tweet
Share
More Decks by Liz Rice
See All by Liz Rice
Unleashing the kernel with eBPF
lizrice
0
140
eBPF's Abilities and Limitations: The Truth
lizrice
0
260
Simplifying multi-cloud and multi-cluster Kubernetes deployments with Cilium
lizrice
0
150
When is a Secure Connection not encrypted? And other stories
lizrice
1
66
Keeping it simple: Cilium Mesh - networking for multi-cloud Kubernetes and beyond
lizrice
1
570
How Many Proxies Do You Need
lizrice
1
130
eBPF for Security Observability
lizrice
0
1.3k
Beginner's Guide to eBPF Programming for Networking
lizrice
1
2.2k
Contributing to Open Source - what's in it for my business?
lizrice
0
45
Other Decks in Technology
See All in Technology
[GDG DevFest Bangkok 2024] - The Future of Retail E-commerce with Gemini AI
punsiriboo
0
300
2024/12/05 AITuber本著者によるAIキャラクター入門 - AITuberの基礎からソフトウェア設計、失敗談まで
sr2mg4
2
580
PR TIMESにおけるNext.jsとcacheの付き合い方
apple_yagi
2
250
12/3(火)のBedrockアプデ速報(re:Invent 2024 Daily re:Cap #2 with AWS Heroes)
minorun365
PRO
4
140
Will Positron accelerate us?
lycorptech_jp
PRO
1
130
プロダクトマネージャーは 事業責任者の夢をみるのか pmconf2024
gimupop
2
8.9k
LangChainとSupabaseを活用して、RAGを実装してみた
atsushii
0
170
セキュリティ系アップデート全体像と AWS Organizations 新ポリシー「宣言型ポリシー」を紹介 / reGrowth 2024 Security
masahirokawahara
0
140
高品質と高スピードを両立させるソフトウェアQA/Software QA that Supports Agility and Quality
goyoki
8
1.4k
Oracle Database Release and Support Timelines 2024/12/11
wmo6hash
0
120
長年運用されているサービスの主要データ移行をサービス停止せず安全にリリースしました
phayacell
2
180
ミスが許されない領域にAIを溶け込ませる プロダクトマネジメントの裏側
t01062sy
8
8.4k
Featured
See All Featured
Being A Developer After 40
akosma
87
590k
Designing for Performance
lara
604
68k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
480
4 Signs Your Business is Dying
shpigford
181
21k
Writing Fast Ruby
sferik
627
61k
Gamification - CAS2011
davidbonilla
80
5.1k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
6.9k
Imperfection Machines: The Place of Print at Facebook
scottboms
266
13k
How to Think Like a Performance Engineer
csswizardry
21
1.2k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
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