<i>Tetris:</i> Proactive Container Scheduling for Long-Term Load Balancing in Shared Clusters

Long-running containerized workloads (e.g., machine learning), which typically show <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">time-varying</i> patterns, are increasingly prevailing in shared production clusters. To improve workload performance, current schedulers mainly focus on optimizing <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">short-term</i> benefits of cluster load balancing or <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">initial container placement</i> on servers. However, this would inevitably bring many <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">invalid migrations</i> (i.e., containers are migrated back and forth among servers over a short time window), leading to significant service level objective (SLO) violations. This paper introduces <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">Tetris</i>, a <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">model predictive control</i> (MPC)-based container scheduling strategy to proactively migrate long-running workloads for cluster load balancing. Specifically, we first build a discrete-time dynamic model for <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">long-term</i> optimization of container scheduling. To solve such an optimization problem, <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">Tetris</i> then employs two main components: (1) a container resource predictor, which leverages time-series analysis approaches to accurately predict the container resource consumption; (2) an MPC-based container scheduler that jointly optimizes the cluster load balancing and container migration cost <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">over a certain sliding time window</i>. We implement and open source a prototype of <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">Tetris</i> based on K8s. Extensive prototype experiments and trace-driven simulations demonstrate that <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">Tetris</i> can improve the cluster load balancing degree by up to 77.8% without incurring any SLO violations, compared to the state-of-the-art container scheduling strategies.

Authors

Institutions

Publication Details

Journal
IEEE Transactions on Services Computing
Published
2024-08-13
DOI
https://doi.org/10.1109/tsc.2024.3442544
Citations
8
Primary Topic
Distributed and Parallel Computing Systems
Type
article
Field-Weighted Citation Impact
2.79

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Tetris: Proactive Container Scheduling for Long-Term Load Balancing in Shared Clusters

Fei Xu, Xiyue Shen, Fen Xiao, Fangming Liu et al.
8 citations
IEEE Transactions on Services Computing
Distributed and Parallel Computing Systems
2.79
article

Tetris: Proactive Container Scheduling for Long-Term Load Balancing in Shared Clusters

Fei Xu, Xiyue Shen, Fen Xiao, Fangming Liu, Li Chen, Zhi Zhou, Shuo-Hao Lin
article en
8 citations

Abstract

Long-running containerized workloads (e.g., machine learning), which typically show <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">time-varying</i> patterns, are increasingly prevailing in shared production clusters. To improve workload performance, current schedulers mainly focus on optimizing <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">short-term</i> benefits of cluster load balancing or <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">initial container placement</i> on servers. However, this would inevitably bring many <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">invalid migrations</i> (i.e., containers are migrated back and forth among servers over a short time window), leading to significant service level objective (SLO) violations. This paper introduces <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">Tetris</i>, a <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">model predictive control</i> (MPC)-based container scheduling strategy to proactively migrate long-running workloads for cluster load balancing. Specifically, we first build a discrete-time dynamic model for <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">long-term</i> optimization of container scheduling. To solve such an optimization problem, <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">Tetris</i> then employs two main components: (1) a container resource predictor, which leverages time-series analysis approaches to accurately predict the container resource consumption; (2) an MPC-based container scheduler that jointly optimizes the cluster load balancing and container migration cost <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">over a certain sliding time window</i>. We implement and open source a prototype of <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">Tetris</i> based on K8s. Extensive prototype experiments and trace-driven simulations demonstrate that <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">Tetris</i> can improve the cluster load balancing degree by up to 77.8% without incurring any SLO violations, compared to the state-of-the-art container scheduling strategies.

IEEE Transactions on Services ComputingVol. 17(5)
Sun Yat-sen University (CN), Tencent (China) (CN), Peng Cheng Laboratory (CN), Huazhong University of Science and Technology (CN), East China Normal University (CN), University of Louisiana at Lafayette (US)
National Natural Science Foundation of China, Science and Technology Commission of Shanghai Municipality
Openalex Percentile: Top 9%
Distributed and Parallel Computing Systems
2.79
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.