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
Liz Rice
November 08, 2016
Technology
240
2
Share
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
Building a cloud native business on open source
lizrice
0
250
KCD Lima: eBee in Peru!
lizrice
0
210
Unleashing the kernel with eBPF
lizrice
0
370
eBPF's Abilities and Limitations: The Truth
lizrice
0
520
Simplifying multi-cloud and multi-cluster Kubernetes deployments with Cilium
lizrice
0
280
When is a Secure Connection not encrypted? And other stories
lizrice
1
130
Keeping it simple: Cilium Mesh - networking for multi-cloud Kubernetes and beyond
lizrice
1
780
How Many Proxies Do You Need
lizrice
1
200
eBPF for Security Observability
lizrice
0
1.6k
Other Decks in Technology
See All in Technology
AIエージェントの支払い基盤 AgentCore Payments概要
kmiya84377
2
200
みんなの考えた最強のデータ基盤アーキテクチャ'26前期〜前夜祭〜ルーキーズ_資料_遠藤な
endonanana
0
450
写真で見るAWS Summit Singapore 2026
k_adachi_01
0
110
そのSLO 99.9%、本当に必要ですか? 〜優先度付きSLOによる責任共有の設計思想〜 / Is that 99.9% SLO really necessary? Design philosophy of shared responsibility through prioritized SLOs
vtryo
0
810
JTCでRedmine利用者2700人を実現した手法 第二部
nobuonakamura
0
130
おいらのAWSアップデートの追い方〜Slack×AgentCore〜
yakumo
1
110
論文紹介:Pixal3D (SIGGRAPH 2026)
tenten0727
0
230
業務に残された「良くない型」で考える「TypeScriptの難しさ」
sajikix
1
360
インプロセスQAのための要因から捉えるプロジェクトリスクマネジメントnano #1 開発リソース効率状態への対処 #jasstnano
barus_qa
0
170
セキュリティ対策、何からはじめる? CloudNative環境の脅威モデリングと リスク評価実践入門 #cloudnativekaigi
varu3
5
980
M&Aで増え続けるプロダクトに少数QAはどう立ち向かうか─GENDAが挑む、全員で取り組む品質標準化戦略 / GENDA Tech Talk #4
genda
0
130
社内RAGの導入で気を付けたポイント
yakumo
1
120
Featured
See All Featured
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
260
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.3k
Designing Powerful Visuals for Engaging Learning
tmiket
1
370
The Limits of Empathy - UXLibs8
cassininazir
1
330
4 Signs Your Business is Dying
shpigford
187
22k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
190
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
530
Chasing Engaging Ingredients in Design
codingconduct
0
190
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
1k
BBQ
matthewcrist
89
10k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.6k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
1
52
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