Viewing the world as a computer: Global capacity management
Meta manages capacity across its 14 data center regions with two systems built on Twine and RAS. Global Reservations Service lets latency-tolerant services declare one global capacity request; a mixed-integer linear programming solver assigns machines to reservations, enforcing that capacity minus the largest region still meets demand. For example, a 300-server request becomes 150 servers in each of three regions, and the disaster-readiness buffer shrinks as capacity spreads over more regions. Regional Fluidity handles latency-sensitive services by using distributed tracing to attribute traffic to shiftable demand sources, solving a placement plan from dependency and traffic-ratio constraints, and having an Orchestrator sequence safe shifts: add capacity and replicas, move traffic, then reclaim.
Related posts
- Maintaining large-scale AI capacity at Meta
Meta Engineering easyNoviceMeta keeps its GPU training fleet, planned to reach 600,000 GPUs, current by rolling firmware, driver and network upgrades through "maintenance trains". These take one small maintenance domain offline at a time, so all capacity except that domain stays available. Lower-level components are upgraded gradually across hosts, while the job container, including CUDA, stays consistent for each job. Domain size is chosen by trading interruption cost against buffer capacity. The OpsPlanner orchestrator serializes overlapping operations, about a million per day, and enforces that hosts are upgraded before returning to production, with autostop and automatic offboarding as safeguards.
- Network hose: Managing uncertain network demand with model simplicity
Meta Engineering hardMasterMeta plans its backbone network capacity against per-data-center aggregate ingress/egress forecasts (the "network hose") instead of a pairwise traffic matrix. This cuts per-service forecast inputs from O(N^2) to O(N) and builds statistical multiplexing into the forecast. The hard part is that infinitely many traffic matrices satisfy the hose constraints. Meta handles this by deriving a small set of reference demand matrices from simple geographic (straight-line) network cuts, each maximizing traffic across its cut, and feeding them into an integer linear programming cost model under a failure protection policy. Simulations showed the extra capacity cost is small, while the approach lets services treat network as a per-data-center consumable and eliminates many pairwise traffic-surge alarms.
- Network Entitlement: A contract-based network sharing solution
Meta Engineering hardMasterMeta's backbone network treats bandwidth as a finite, reservable resource: each service gets a contracted bandwidth quota per region and class of service, with an SLO guarantee covering only traffic within that quota. End hosts mark packets by QoS class and re-mark excess (nonconforming) traffic into a lower-priority queue. That excess still flows when capacity exists and is dropped only under congestion, which isolates misbehaving services and makes it clear whether the network or the service is accountable. Contracts use the hose model so services don't have to forecast per-DC-pair traffic matrices. A granting system simulates failures such as fiber cuts to set quotas for high-touch services, and production congestion drills verify the policy.
- The Best Multi-Region Hosting Platforms in 2026
Railway easyNovice"Multi-region" covers three distinct problems: CDN static asset distribution (level 1), stateless compute in multiple regions with a single-region database (level 2), and multi-region writes for stateful data (level 3). Most teams need level 2 but believe they need level 3, which costs roughly an order of magnitude more in money and engineering complexity and requires application changes like idempotency keys and conflict semantics. Ten platforms are ranked against this framework, from Railway, Fly.io and Cloudflare for level 2 to AWS DynamoDB Global Tables/Aurora Global, Google Spanner, Azure Cosmos DB and CockroachDB for level 3, each with pricing and trade-offs.
- Risk-driven backbone management during COVID-19 and beyond
Meta Engineering hardMasterFacebook's global backbone withstood the COVID-19 traffic surge by computing risk metrics (demand loss, availability, latency stretch) over enumerated failure scenarios. Component failure likelihood and duration come from MTBF/MTTR estimates built with clustering and Bayesian regression on features like vendor and region. A sharded simulation runs the production SD-WAN controller code per failure scenario. The resulting metrics pointed to at-risk regions, which drove proactive capacity deployment and downgrading latency-insensitive traffic from QoS class 3 to class 4, so the same SLOs could be met with less capacity.