Skip to main content
QUICK REVIEW

[Paper Review] Affinity Scheduling and the Applications on Data Center Scheduling with Data Locality

Mohammadamir Kavousi|arXiv (Cornell University)|May 9, 2017
Cloud Computing and Resource ManagementComputer Science2 references4 citations
TL;DR

This paper proposes a weighted-workload routing and priority scheduling algorithm for data centers with three levels of data locality (local, rack-local, remote), ensuring both throughput and heavy-traffic optimality. It proves that the algorithm stabilizes the system under any arrival rate within the capacity region and minimizes mean task completion time under high load, outperforming existing heuristic-based approaches like Delay Scheduling and Quincy.

ABSTRACT

MapReduce framework is the de facto standard in Hadoop. Considering the data locality in data centers, the load balancing problem of map tasks is a special case of affinity scheduling problem. There is a huge body of work on affinity scheduling, proposing heuristic algorithms which try to increase data locality in data centers like Delay Scheduling and Quincy. However, not enough attention has been put on theoretical guarantees on throughput and delay optimality of such algorithms. In this work, we present and compare different algorithms and discuss their shortcoming and strengths. To the best of our knowledge, most data centers are using static load balancing algorithms which are not efficient in any ways and results in wasting the resources and causing unnecessary delays for users.

Motivation & Objective

  • To address the lack of theoretical guarantees in existing heuristic-based data locality scheduling algorithms used in data centers.
  • To analyze and compare real-time scheduling algorithms for systems with multiple levels of data locality (local, rack-local, remote) in terms of throughput and delay optimality.
  • To design a scheduling algorithm that ensures system stability (throughput optimality) and minimizes mean task completion time under high load (heavy-traffic optimality).
  • To formally prove the optimality properties of proposed algorithms using Lyapunov drift and fluid model analysis.
  • To demonstrate that existing algorithms like Pandas and JSQ-MaxWeight fail to maintain optimality in three-level data locality settings.

Proposed method

  • Uses a discrete-time queueing model with M servers grouped into K racks, where each task type corresponds to a data chunk stored on a set of three servers.
  • Models service times as geometric distributions: local (Geo(α)), rack-local (Geo(β)), and remote (Geo(γ)), with α > β > γ.
  • Defines weighted workload on each server as Wₘ(t) = Qₘˡ(t)/α + Qₘᵏ(t)/β + Qₘʳ(t)/γ, representing expected service delay for queued tasks.
  • Implements weighted-workload routing: new tasks join the server with the minimum weighted workload, considering data locality level.
  • Applies priority scheduling: idle servers serve local tasks first, then rack-local, then remote tasks, ensuring locality preference.
  • Uses a Lyapunov function V(t) = Σₘ (Wₘ(t))² to prove throughput optimality via Foster-Lyapunov stability theorem.

Experimental results

Research questions

  • RQ1Can a scheduling algorithm achieve both throughput optimality and heavy-traffic optimality in data centers with three levels of data locality?
  • RQ2How do existing heuristic algorithms like Delay Scheduling and Quincy perform in terms of theoretical optimality guarantees?
  • RQ3Why do two-level data locality algorithms like Pandas and JSQ-MaxWeight fail to maintain optimality in three-level settings?
  • RQ4Under what conditions is the weighted-workload routing and priority scheduling algorithm heavy-traffic optimal?
  • RQ5Can a unified scheduling framework be designed that ensures stability and minimal delay across all load regimes?

Key findings

  • The weighted-workload routing and priority scheduling algorithm is proven to be throughput optimal, stabilizing the system for any arrival rate vector within the capacity region.
  • The algorithm achieves heavy-traffic optimality when β² > αγ, minimizing mean task completion time as the system approaches capacity.
  • The extended JSQ-MaxWeight algorithm is throughput optimal but not heavy-traffic optimal in all traffic scenarios.
  • The Pandas algorithm, optimal in two-level data locality, fails to be throughput optimal in three-level settings.
  • Existing heuristic algorithms such as Delay Scheduling and Quincy lack theoretical guarantees on throughput and delay optimality.
  • The proposed algorithm outperforms prior methods by ensuring both stability and minimal delay under high-load conditions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.