Data-Locality-Aware Task Assignment and Scheduling for Distributed Job Executions

Hailiang Zhao, Xueyan Tang, Peng Chen, Jianwei Yin, Shuiguang Deng

TL;DR

This paper tackles the challenge of online task scheduling in distributed systems where tasks must be executed where their data resides (data locality). The authors propose OBTA, an optimal task assignment algorithm that slashes computational overhead by smart search-space pruning, alongside a fast Water-Filling (WF) approximation and a novel Replica-Deletion (RD) heuristic. Finally, they introduce an accelerated job reordering strategy (OCWF-ACC) that cuts scheduling overhead in half using a clever "early-exit" optimization.

What Problem Does This Paper Address?

In large-scale distributed computing (like cloud datacenters), jobs consist of multiple independent tasks that need to process specific data chunks. Moving massive amounts of data across networks creates huge bottlenecks. To avoid this, systems use data-locality-aware scheduling—assigning tasks directly to servers that already host copies of the required data.

Doing this efficiently in an online environment (where jobs arrive dynamically and future arrivals are unknown) presents two major headaches:

  1. Task Assignment: Which specific server should handle which task to keep the overall workload balanced?
  2. Job Ordering: In what order should outstanding jobs be executed to minimize the average completion time?

Existing solutions often oversimplify the problem by assuming identical server capacities or ignoring data replication. This paper addresses these gaps by designing algorithms that handle both server heterogeneity and data replication with rigorous theoretical guarantees.

Methods

The authors attack the problem from both optimal and heuristic angles:

  • Optimal Balanced Task Assignment (OBTA): The problem is initially modeled as a Non-Linear Integer Program (NLIP). To make it practical, OBTA calculates mathematical upper and lower bounds for the job completion time, drastically narrowing down the solver's search range. It then splits this range into linear sub-intervals (piecewise linearization) so it can be solved rapidly using standard commercial linear solvers.
Dividing the search range into disjoint subranges to linearize the problem.
  • Water-Filling (WF) Heuristic: For ultra-fast scheduling, the authors extend a greedy "water-filling" approach to heterogeneous servers. Tasks are assigned group-by-group to gradually equalize server workloads. Crucially, they provide a tight proof showing that WF achieves a $K$-approximation ratio, where $K$ is the number of task groups in a job.
Visualizing the water-filling task assignment process.
  • Replica-Deletion (RD) Heuristic: Unlike WF, which looks at tasks locally group-by-group, RD takes a global view. It starts by assigning a task replica to every available server that holds the required data. It then iteratively deletes redundant replicas from the most heavily backlogged servers until each task is assigned to exactly one server.
Iterative replica deletion process to balance server workloads globally.
  • Accelerated Order-Conscious WF (OCWF-ACC): To minimize average completion times, the system reorders pending jobs using a Shortest-Remaining-Time-First policy. Because evaluating every permutation is computationally heavy, the authors introduce an early-exit technique: if a quick lower-bound calculation shows a job cannot possibly beat the current best scheduling order, the algorithm skips the full evaluation of that job entirely.

Datasets

The algorithms were evaluated using trace-driven simulations based on the Alibaba cluster trace dataset (cluster-trace-v2017, specifically a segment of batch_task.csv).

  • Scale: 250 jobs encompassing a total of 113,653 tasks.
  • Data Distribution: Data inputs were mapped to servers using a Zipf distribution with a skew parameter $\alpha \in [0, 2]$ to simulate realistic data hotspots and varying levels of data availability.

Key Insights and Ideas

  • Pruning is Better Than Brute Force: You don't need to sacrifice optimality for speed. By establishing simple physical bounds (e.g., the worst case where one server does everything vs. the ideal case where load is perfectly split), OBTA makes exact mathematical optimization viable for real-time systems.
  • The Power of Global Hindsight: While Water-Filling is fast, its local group-by-group decision-making can trap it in sub-optimal choices. RD's strategy of "over-allocating and trimming down" allows it to navigate complex data replication layouts much better.
  • Reordering Defeats Skewness: When data is highly skewed (some data chunks are incredibly popular), standard FIFO queues choke because bottleneck servers get slammed. Dynamically reordering jobs completely flattens the negative impact of data skew.

Key Results

  • OBTA Efficiency: OBTA achieves the exact same optimal job completion times as standard NLIP but cuts the computational overhead by nearly 50%.
  • WF Speed: The WF heuristic runs two orders of magnitude faster than OBTA, making it the clear choice for high-frequency, latency-sensitive applications.
  • RD Superiority: In heavy workload scenarios (75% system utilization) with high data skew ($\alpha = 2$), RD consistently achieves lower average job completion times than WF.
  • OCWF-ACC Acceleration: The early-exit optimization successfully cuts the job reordering computation time in half compared to standard OCWF without any loss in scheduling quality.

Limitations and Future Work

  • RD Theory Gap: While the Replica-Deletion (RD) heuristic performs exceptionally well in simulations, the authors have not yet derived its formal theoretical approximation bound.
  • Homogeneous Task Demands: The model assumes that all tasks within a single job have identical computational requirements, which might not hold true for highly irregular workloads.
  • Future Directions: The authors plan to adapt and integrate these algorithms into more complex, evolving cloud-native environments and edge computing architectures.

Summary updated

BibTeX
@article{zhao2025data,
  author = {Hailiang Zhao and Xueyan Tang and Peng Chen and Jianwei Yin and Shuiguang Deng},
  title = {{Data-Locality-Aware Task Assignment and Scheduling for Distributed Job Executions}},
  journal = {IEEE Trans. Services Computing},
  year = {2025},
  doi = {10.1109/tsc.2025.3594158},
}
Figure