Skip to main content
QUICK REVIEW

[Paper Review] Anomaly Analysis for Co-located Datacenter Workloads in the Alibaba Cluster

Rui Ren, Jinheng Li|arXiv (Cornell University)|Nov 14, 2018
Cloud Computing and Resource ManagementComputer Science15 references5 citations
TL;DR

This paper analyzes the Alibaba co-located datacenter workload trace to identify performance anomalies caused by workload imbalance and scheduling inefficiencies. Using DTW-based node similarity, iForest anomaly detection, and workload distribution classification, it reveals that memory utilization in short-lived batch jobs is highly unstable compared to long-running online containers, and that 8 distinct workload distribution categories explain most resource utilization patterns across nodes, with imbalance being a primary anomaly cause.

ABSTRACT

In warehouse-scale cloud datacenters, co-locating online services and offline batch jobs is an efficient approach to improving datacenter utilization. To better facilitate the understanding of interactions among the co-located workloads and their real-world operational demands, Alibaba recently released a cluster usage and co-located workload dataset, which is the first publicly dataset with precise information about the category of each job. In this paper, we perform a deep analysis on the released Alibaba workload dataset, from the perspective of anomaly analysis and diagnosis. Through data preprocessing, node similarity analysis based on Dynamic Time Warping (DTW), co-located workloads characteristics analysis and anomaly analysis based on iForest, we reveals several insights including: (1) The performance discrepancy of machines in Alibaba's production cluster is relatively large, for the distribution and resource utilization of co-located workloads is not balanced. For instance, the resource utilization (especially memory utilization) of batch jobs is fluctuating and not as stable as that of online containers, and the reason is that online containers are long-running jobs with more memory-demanding and most batch jobs are short jobs, (2) Based on the distribution of co-located workload instance numbers, the machines can be classified into 8 workload distribution categories1. And most patterns of machine resource utilization curves are similar in the same workload distribution category. (3) In addition to the system failures, unreasonable scheduling and workload imbalance are the main causes of anomalies in Alibaba's cluster.

Motivation & Objective

  • To investigate performance discrepancies and resource utilization imbalances in Alibaba’s co-located datacenter cluster.
  • To classify nodes based on co-located workload distribution patterns and assess their impact on resource utilization curves.
  • To detect abnormal nodes and diagnose root causes of anomalies beyond system failures.
  • To evaluate the effectiveness of iForest and DTW-based methods in identifying performance anomalies in real-world production traces.

Proposed method

  • Performed comprehensive data preprocessing on the Alibaba cluster trace, including data supplementation, filtering, correlation, and aggregation to generate container-level, batch-level, and server-level resource usage metrics.
  • Applied Dynamic Time Warping (DTW) to compute node similarity based on temporal patterns of CPU, memory, and disk usage, enabling identification of peer-nodes under normal conditions.
  • Classified machines into 8 workload distribution categories based on the number of online containers and batch jobs per node, revealing consistent utilization patterns within each category.
  • Employed the iForest algorithm for anomaly detection by modeling normal behavior and identifying nodes with significantly deviant resource usage patterns.
  • Analyzed root causes of detected anomalies by correlating abnormal nodes with scheduling policies, workload skew, and resource contention.
  • Validated findings using real production traces from Alibaba’s warehouse-scale datacenter, focusing on memory and CPU utilization dynamics.

Experimental results

Research questions

  • RQ1How do resource utilization patterns differ between long-running online containers and short-lived batch jobs in co-located datacenter workloads?
  • RQ2To what extent do workload distribution patterns (e.g., number of containers and batch jobs per node) determine the similarity of resource utilization curves across nodes?
  • RQ3What are the primary causes of performance anomalies in Alibaba’s co-located cluster, beyond hardware failures?
  • RQ4How effective is iForest in detecting anomalies in real-world datacenter traces when combined with DTW-based node similarity?
  • RQ5Can workload distribution categories be used to predict and explain node-level performance discrepancies?

Key findings

  • The performance discrepancy among machines in Alibaba’s production cluster is significant, primarily due to unbalanced workload distribution and fluctuating memory utilization in short-lived batch jobs compared to stable, long-running online containers.
  • Machines can be classified into 8 distinct workload distribution categories based on the number of online containers and batch jobs, and nodes within the same category exhibit highly similar resource utilization patterns across CPU, memory, and disk metrics.
  • Memory utilization in batch jobs is highly unstable and fluctuating due to their short duration and bursty nature, whereas online containers maintain consistent memory consumption over time.
  • The iForest-based anomaly detection method successfully identified abnormal nodes, with the primary causes traced to scheduling inefficiencies and workload imbalance rather than hardware failures.
  • Nodes with skewed workloads—such as machine 1039, which hosted 71 batch jobs but only one online container—exhibited abnormal resource utilization, highlighting the impact of imbalanced co-location.
  • System-level anomalies are frequently driven by inter-workload interference and poor scheduling decisions, especially in memory-constrained environments where batch jobs compete with memory-intensive online services.

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.