~/talk

How Preemption Works in Nomad

Talkat HashiTalks 2019 · 2019-02-21..02-22· [devops-and-delivery]
links:none on file
slides:none on file

Nomad adds a scheduler preemption feature that makes room for higher-priority work by evicting lower-priority allocations instead of waiting for autoscaling; priorities range priority 0–100 and the scheduler uses bin‑packing plus an iterative per-priority selection to avoid 2^n subset enumeration. It scores candidates by a Euclidean distance metric across resources, filters supersets to avoid waste, and scores across nodes for the best place to evict. Exposed fields preempted_allocs/preempted_by and nomad plan integration provide visibility; preemption shipped in Nomad 0.9 beta (system jobs) with enterprise support for batch/service coming.

AI-written summary · about

  1. 0:00Introduction to Nomad
  2. 4:30Interacting with Nomad
  3. 5:27Scheduler mechanics
  4. 8:03Priority inversion problem
  5. 8:22Example of resource pressure
  6. 10:59Understanding preemption
  7. 11:49Implementation considerations
  8. 12:29Intra-node allocation logic
  9. 15:59Subset selection complexity
  10. 16:21Iterative optimization
  11. 16:56Distance and scoring functions
  12. 17:45Preemption algorithm details
  13. 22:39Summary of selection process
  14. 23:17Internode scoring problems
  15. 23:42Cross-node evaluation
  16. 24:42Final placement logic
  17. 25:12Visibility and debugging
  18. 26:02Dry run capabilities
  19. 26:21Rollout and availability
  20. 27:14Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.