The Life of a Placement
summary
Nomad shows how placement is a pipeline of iterators that filter eligible nodes (data center, driver like Docker/rkt/LXC, constraints such as distinct_property) then rank them with a bin-packing ranker that rejects nodes that can’t fit and scores with the function 20 - 10^x - 10^y (x,y = percent free CPU, memory). Batch placements use the power of two choices sampler; service placements scan more nodes. Also notes planned GPU support, rolling deploys with Consul health checks, and Console template/env var injection.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 2:05Job File
- 7:19Placement Decision
- 8:51The Stack
- 10:04Stack Example
- 16:11Bin Packer
- 17:51How
- 23:57Capacity Planning
- 28:39Job Anti Affinity
- 30:13Limit Selector
- 30:24Highest Rank Node
- 30:54Ranking is Costly
- 31:56Power of Two Choices
- 32:49Sparrow Scheduler
- 33:15Service Scheduler
- 33:57Summary
- 34:16Highlights
