TL;DR
This paper introduces DRFH (Dominant Resource Fairness for Heterogeneous servers), a resource allocation mechanism that generalizes the famous DRF algorithm for real-world cloud environments. By equalizing "global dominant shares" across a cluster of diverse servers, DRFH achieves high resource utilization and shorter job completion times while remaining fair and immune to user manipulation.
What Problem Does This Paper Address?
In cloud computing, "fairness" is hard because jobs require different ratios of resources (e.g., one job needs lots of CPU, another needs tons of RAM). The Dominant Resource Fairness (DRF) algorithm was proposed to solve this by equalizing the maximum share any user gets of any single resource.
However, original DRF assumes a "single supercomputer" model—a giant pool of homogeneous resources. In reality, datacenters are heterogeneous: they consist of thousands of servers with different configurations (some old, some new, some memory-optimized).
The authors point out that a "naive" extension of DRF—simply running DRF on each server individually—is highly inefficient. It ignores the fact that a user might have different dominant resources on different servers, leading to fragmented resources and poor performance. The challenge is: how do you maintain fairness and strategy-proofness when the resource pool is scattered across diverse hardware?
Methods
The authors propose DRFH, which shifts the focus from local server shares to the Global Dominant Share.
- Global Dominant Share: For each user, the algorithm identifies their "global dominant resource" (the resource they demand the most relative to the total cluster capacity). DRFH then aims to equalize this share across all users.
- Mathematical Optimization: They model the allocation as a max-min fairness problem. The goal is to maximize the minimum global dominant share among all users, subject to the physical capacity constraints of every individual server.
- Best-Fit DRFH Heuristic: Since solving the optimization problem for every task is computationally expensive, they designed a practical heuristic. When a scheduling opportunity arises, the system picks the user with the lowest current global dominant share and places their task on the server that "best fits" their resource demand vector (using an $L^1$-norm to measure the distance between task demand and available server resources).
Datasets
The researchers evaluated DRFH using Google cluster-usage traces.
- Scale: The traces represent over 900 users on a cluster of roughly 12,000 servers.
- Heterogeneity: The data includes 10 different server configurations, with varying CPU and memory capacities (normalized to the largest server).
- Workload: Real-world demand profiles, ranging from CPU-intensive numerical tasks to memory-heavy database operations.
Key Insights and Ideas
- The Failure of Locality: Applying fairness rules server-by-server (the "naive" approach) can lead to "arbitrarily low" resource utilization. Global coordination is required to match the right tasks to the right servers.
- The "Holy Trinity" of Allocation: The authors prove that DRFH retains three critical properties:
- Envy-freeness: No user prefers another user's allocation over their own.
- Pareto Optimality: You can't make one user better off without making another worse off (efficiency).
- Truthfulness (Strategy-proofness): Users have no incentive to lie about their resource needs to get more capacity.
- Matching Vectors: The "Best-Fit" approach is superior to "First-Fit." By matching the shape of a task's demand (e.g., high CPU/low RAM) to a server with a similar shape of available resources, the cluster avoids "stranding" resources that can't be used.
Key Results
- Utilization: DRFH significantly outperformed traditional "slot-based" schedulers (like those used in early versions of Hadoop). While slot-based schedulers hit a ceiling of ~45% CPU utilization, DRFH implementations pushed much higher.
- Job Completion Time (JCT): For large jobs (over 1,000 tasks), DRFH reduced completion times by a staggering 62% compared to slot-based scheduling.
- User Satisfaction: In simulations, 20% of users were able to complete all their tasks under DRFH, whereas they remained unfinished under the traditional slot-based model.
- Sharing Incentive: Even though the environment is heterogeneous, 98% of users performed better by sharing the cluster under DRFH than they would have on their own private, proportional "slice" of the hardware.
Limitations and Future Work
- Task Indivisibility: The theoretical proofs often assume tasks are "divisible" (like fluid), but the practical heuristic deals with discrete tasks. While the heuristic performs well, there is a slight gap between theory and practice in very small clusters.
- Placement Constraints: The paper does not deeply explore complex placement constraints (e.g., "this task must run on a server with a GPU" or "these two tasks must be on different racks").
- Dynamic Demands: The model assumes a user's task demand vector is constant for the duration of the job. Future work could look at jobs where resource needs change over time (e.g., a phase of heavy disk I/O followed by heavy CPU).
Summary updated