Close Menu
NCIJ Network NCIJ Network
    What's Hot

    Austin Davis’ AZ Hugs Has Become the Unofficial Hotline for Maricopa County’s Homeless Families — ProPublica

    October 7, 2026

    Is AI Contributing to a Frozen U.S. Housing Market?

    October 7, 2026

    Politkovskaya ‘predicted’ Russia’s turn under Putin, editor says on 20th anniversary of her death

    October 7, 2026
    Facebook X (Twitter) Instagram
    Trending
    • Austin Davis’ AZ Hugs Has Become the Unofficial Hotline for Maricopa County’s Homeless Families — ProPublica
    • Is AI Contributing to a Frozen U.S. Housing Market?
    • Politkovskaya ‘predicted’ Russia’s turn under Putin, editor says on 20th anniversary of her death
    • EU toughens China stance ahead of Šefčovič’s Beijing visit – POLITICO
    • Mayor of London race 2028: Conservatives seek party’s nomination
    • Results of the September 2026 survey on credit terms and conditions in euro-denominated securities financing and OTC derivatives markets (SESFOD)
    • Two mystery PlayStation products have leaked — one might be a PlayStation Portal OLED
    • 100+ Compromised Websites Use Fake Cloudflare Checks to Deliver LunexStealer
    • About
      • Our Team
      • Editorial Policy
      • Editorial Independence
      • International Support
    • Trust & Standards
      • AI Usage Policy
      • Conflict of Interest Policy
      • Corrections Policy
      • Ethics Policy
      • Fact-Checking Policy
      • Source Protection
    • Get Involved
      • Guide for Sources
      • Support Independent Journalism
    • Legal
      • Cookie Policy
      • Privacy Policy
      • Terms of Use
    Facebook X (Twitter) Instagram
    NCIJ Network NCIJ Network
    Wednesday, October 7
    • Home
    • World
    • Ai
    • Business
    • Politics
    • Health
    • Crypto
    • Science
    • Technology
    • Cybersecurity
    • Defense & Security
    • Economy
    • Energy
    • Europe
    • More
      • Fact Check
      • Investigations
      • Opinion & Analysis
      • Environment
    NCIJ Network NCIJ Network
    Home»Artificial Intelligence

    Meta AI Open-Sources Rebalancer: A C++ Assignment Solver That Runs About 40 Million Placement Problems a Day

    NCIJ NETWNCIJ NETWORKBy NCIJ NETWNCIJ NETWORKOctober 7, 2026 Artificial Intelligence No Comments4 Mins Read
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Meta has open-sourced Rebalancer, a C++ library with a Python interface for solving assignment problems. It decides which objects go into which bins under constraints and objectives. According to the Engineering at Meta’s post, Rebalancer has handled resource allocation across Meta for over 9 years. The release ships under Apache 2.0 with documentation, a PyPI package and a debugging UI called Rebalancer Explorer.

    Is it deployable? Yes. pip install rebalancer installs v1.0.4 for Python 3.12+, with prebuilt wheels for Linux x86-64 and macOS 14+ ARM64. .deb, .rpm and Homebrew packages also exist. PyPI still classifies the project as Alpha.

    What Problem Does Rebalancer Solve?

    Assignment problems show up across Meta’s stack. Racks go into datacenters, servers go to services, tasks go to servers, and user traffic goes to datacenters. Meta names 2 blockers: usability and scalability. Engineers struggle to turn policies into precise formulas, and many problems are NP-hard and too large for commercial solvers.

    Rebalancer’s answer is to separate how a problem is specified from how it is solved. The design is detailed in the OSDI 2024 paper, Optimizing Resource Allocation in Hyperscale Datacenters.

    How the Specification Layer Works

    The spec language has 3 layers:

    • Modeling constructs: dimensions (attributes such as CPU or storage), partitions (groups of objects), scopes (groups of bins) and utilization.
    • Expression API: aggregate utilization with SUM or MAX, or transform it with operations such as SQUARE.
    • Spec API: dozens of predefined objectives and constraints, listed in the docs.

    Meta’s example models tasks as objects, servers as bins and racks as a scope. A CapacitySpec caps CPU and storage per server. A GroupCountSpec keeps 1 job type per rack. A BalanceSpec balances each server’s utilization across both dimensions.

    One Expression Graph, Two Solvers

    Rebalancer compiles the spec into a directed acyclic expression graph. Leaf nodes hold utilization values; aggregation and transformation nodes sit above them. Users supply an initial assignment and a stopping condition. Constraints that the initial assignment already violates become high-priority goals.

    Optimal solver: The graph is translated into a mixed integer program for FICO Xpress, Gurobi or HiGHS. Variable aggregation and symmetry breaking shrink models. The worst-case model size is still O(objects × bins). Meta’s largest problems are too big for any MIP solver.

    Local search: This solver works directly on the expression graph. It explores moves of objects to other bins, with a worst-case neighborhood of O(objects + bins). It then applies the best candidate that breaks no constraint. Evaluation is parallelized, reaching millions of evaluations per second, and the search space is pruned.

    Meta uses local search for almost all large problems and MIP for small to mid-size ones, often prototyping with MIP first.

    • About 40 million assignment problems solved per day, across 30+ unique formulations.
    • P99 solve time of 12 seconds on 265k objects and 3.2k bins.
    • Problems above 1 million objects and 5k bins average 171 seconds, across 3.4k+ runs.

    Best Use Cases for Rebalancer

    1. Placing shards, tasks or containers on a cluster: Assign work to servers under CPU and memory caps while spreading replicas across racks. Meta’s Shard Manager and RAS run this pattern.
    2. Balancing traffic and workloads across regions: Route user traffic or jobs to datacenters, trading latency against load. Taiji does this for edge traffic, and Meta balances ML training by priority.
    3. Operational assignment outside infrastructure: Map support tickets to engineers, meetings to rooms or desks to people under capacity rules. Meta has done all 3.

    Debugging With Rebalancer Explorer

    Modelers at Meta spent most of their time debugging solver behavior. Rebalancer Explorer is a Dockerized web UI built for this. It shows binding constraints, relaxation effects, and why an object landed in a bin.

    Interactive Explainer

    assignment day Meta Million OpenSources Placement Problems Rebalancer Runs Solver
    NCIJ NETWNCIJ NETWORK
    • Website

    Keep Reading

    Hackers exploit 32 zero-days on first day of Pwn2Own Ireland

    8.8 Million Impacted by Data Breach at Denmark’s Central Person Register

    A Developer’s Guide to Laya: Zero-Shot Decisions and Calibration

    Ofcom investigates Meta over Instagram Instants feature

    Mistral AI Releases Mistral Large 4 (Le Chonk): A 1.05T Parameter Multimodal MoE Model

    Peter Thiel-backed Founders Fund leads a $5 million token buy in crypto collateral protocol Anvil

    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    Austin Davis’ AZ Hugs Has Become the Unofficial Hotline for Maricopa County’s Homeless Families — ProPublica

    October 7, 2026

    Is AI Contributing to a Frozen U.S. Housing Market?

    October 7, 2026

    Politkovskaya ‘predicted’ Russia’s turn under Putin, editor says on 20th anniversary of her death

    October 7, 2026

    EU toughens China stance ahead of Šefčovič’s Beijing visit – POLITICO

    October 7, 2026
    Latest Posts

    4 Best Compression Boots: Therabody, Hyperice, and More (2026)

    August 9, 2026

    Former Iraqi provincial governor arrested as graft crackdown continues | Corruption News

    August 9, 2026

    The culture surrounding ‘ideal’ childbirth has to evolve | Childbirth

    August 9, 2026

    Subscribe to News

    Get the latest sports news from NewsSite about world, sports and politics.

    NCIJ Network is an independent digital news platform delivering trusted investigative journalism, European and global news, in-depth analysis, and fact-based reporting with accuracy, transparency, and integrity.

    Facebook X (Twitter) Instagram Pinterest YouTube

    Austin Davis’ AZ Hugs Has Become the Unofficial Hotline for Maricopa County’s Homeless Families — ProPublica

    October 7, 2026

    Is AI Contributing to a Frozen U.S. Housing Market?

    October 7, 2026

    Politkovskaya ‘predicted’ Russia’s turn under Putin, editor says on 20th anniversary of her death

    October 7, 2026

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    Type above and press Enter to search. Press Esc to cancel.