Introducing Shard Manager
Nov 11, 20269 min read
Opens uber.comWhat the post covers
Uber has introduced Shard Manager, a general-purpose, open-source sharding service that separates shard ownership decisions from application logic.
- It provides load-aware placement, client libraries, and operational tools, addressing limitations of previous hash-ring solutions like Ringpop which did not account for shard load, leading to uneven workloads and wasted capacity.
- Shard Manager uses a standalone service architecture with Go clients and gRPC interfaces, persisting state in etcd and featuring a CLI tool (smctl) for operations.
- The system employs a greedy balancing algorithm with smoothed load measurements, thresholds, and movement budgets to minimize unnecessary shard movement.
- Cadence's Matching service adoption resulted in a 38% reduction in CPU usage on its hottest host and allowed for approximately 40% fewer hosts to run the same traffic, with placement quality comparable to constraint solvers.
