Extending a Scheduler to Better Support Sharded Services
summary
Facebook extends its task-based scheduler with a task control protocol that asks services “yes or later” before moving tasks so the scheduler models replicas and shards, not just tasks. It implements shard-aware safety checks plus a small allocator (char manager) to move replicas off a node when possible, avoids costly disk rebuilds, and lets multiple nodes update in parallel instead of one-by-one. Deployed across many services at Facebook, the system speeds updates and reduces downtime while using simple RPCs (Thrift/gRPC/HTTP) to keep the scheduler dependency-light.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 0:34What are Sharded Services
- 2:58What do we do when an instance catches a flame
- 4:58What are services
- 8:05What are schedulers
- 13:54Sharded services
- 16:32Scheduling primitives
- 23:16Example
- 25:25corollaries
- 28:46allocation
- 30:45services
- 34:37updates
- 35:12tradeoffs
related talks
46mWriting Stateful Frameworks
27mWorkflows@Facebook: Powering Developer Productivity and Automation at Facebook Scale
20mAdvancing HPC The Hybrid Scheduler Approach at the D.E.Shaw Group
34mPatterns for building Highly Available Cluster Schedulers
51mBuilding resilient scheduling in distributed systems with Spring
22mAsynchronous Computing at Scale: Overview and Learning
31mBeyond the Limits: Scaling Kubernetes Controllers Horizontally
43mSystems @Scale Summer Q&A Week 2
