FuxiShuffle: An Adaptive and Resilient Shuffle Service for Distributed Data Processing on Alibaba Cloud

Yuhao Lin, Zhipeng Tang, Jiayan Tong, Junqing Xiao, Bin Lu, Yuhang Li, Chao Li, Zhiguo Zhang, Junhua Wang, Hao Luo, James Cheng, Chuang Hu, Jiawei Jiang, Xiao Yan

TL;DR

FuxiShuffle is an adaptive and resilient shuffle service designed to handle the massive scale of distributed data processing on Alibaba Cloud. By dynamically balancing in-memory and on-disk shuffle modes, introducing progressive task scheduling, and implementing an incremental failure recovery mechanism, it reduces average job completion times by over 76% while cutting resource consumption by 67%.

What Problem Does This Paper Address?

In large-scale distributed data processing frameworks (like MapReduce or Spark), shuffle is the critical phase where intermediate data is transferred from upstream operators (writers/mappers) to downstream operators (readers/reducers). Because it involves all-to-all network communication, heavy serialization, and massive disk I/O, shuffle is frequently the primary performance bottleneck.

At ultra-large scales—such as Alibaba Cloud’s MaxCompute platform, which processes exabytes of data daily across clusters exceeding 100,000 servers—existing shuffle services suffer from two major flaws:

  1. Poor Adaptability: Traditional systems use a rigid, "one-size-fits-all" approach. They rely on fixed shuffle modes (either entirely on-disk or entirely in-memory) and static scheduling strategies that fail to adapt to fluctuating cluster resources or skewed data distributions.
  2. Inefficient Fault Tolerance: When a server or network glitch occurs, existing systems typically rely on passive recovery. They terminate downstream tasks entirely and re-execute upstream stages from scratch. This creates massive recomputation overhead and can trap jobs in prolonged "re-execution loops."
Figure 2: The distributions for the size (measured by input data) and execution time of the tasks in our cluster.

Methods

FuxiShuffle introduces a decoupled manager-worker architecture that separates the control plane from the data plane. It deploys Shuffle Agents on cluster nodes to aggregate and store shuffle data, coordinated globally by a Shuffle Service Manager.

To overcome the limitations of static systems, FuxiShuffle implements three core adaptive and resilient techniques:

  • Adaptive Shuffle Mode Selection: Instead of forcing a fixed mode, FuxiShuffle dynamically switches between high-performance in-memory shuffle and stable on-disk shuffle. It models this as a constrained optimization problem, using an execution time threshold that adjusts every 30 seconds based on real-time cluster memory availability.
  • Progressive Scheduling: Traditional systems either wait for all writers to finish before starting readers (staged scheduling) or launch them all simultaneously (gang scheduling). FuxiShuffle introduces a pipelined model. It tracks upstream progress and dynamically launches downstream readers via a "Pre-start" and "Pre-read" mechanism as soon as a safe threshold of data becomes available.
  • Incremental Failure Recovery: When a data fetch fails, instead of killing the reader and restarting from scratch, FuxiShuffle allows the reader to keep processing valid data. Concurrently, the system re-executes only the specific failed writer to regenerate the missing data chunk. The reader then incrementally loads the missing piece, verifying data integrity via a dual-phase checksum mechanism.
Figure 4: Partial re-execution. A failed writer is re-executed, the reader waits for the writer and is also re-executed.

Datasets

The authors evaluated FuxiShuffle on an internal Alibaba test cluster (20 compute nodes, 18 storage nodes) using two industry-standard benchmarks scaled to 1TB and 10TB:

  • TeraSort: A sorting-intensive benchmark highly sensitive to network bandwidth, disk I/O, and fault tolerance.
  • TPC-DS: A complex OLAP benchmark consisting of multi-table joins, data skew, and aggregations that mimic real-world warehouse workloads.

Key Insights and Ideas

  • Memory is Fluid, Not Static: Treating cluster memory as a dynamic pool rather than a fixed allocation allows FuxiShuffle to aggressively exploit idle RAM for in-memory shuffle without risking Out-Of-Memory (OOM) crashes.
  • Pipelining Beats Barriers: Decoupling reader-writer scheduling through progressive thresholds effectively resolves the classic tension between job latency and resource utilization.
  • Shrinking the Fault Blast Radius: The "aha!" moment of the paper is shifting fault tolerance from a serial roadblock to a parallel pipeline. Allowing readers and re-executed writers to run concurrently prevents transient hardware glitches from wiping out hours of downstream computation progress.

Key Results

FuxiShuffle was compared against optimized production baselines (Hadoop-like and Spark-like architectures):

  • Performance Speedups: FuxiShuffle reduced end-to-end job runtime by 76.36% on average compared to the Hadoop-like baseline, consistently outperforming even its own on-disk configuration.
  • Resource Efficiency: The system cut aggregate resource consumption (Compute Unit Cost) by 67.14%, proving that performance gains did not come at the expense of burning more hardware resources.
  • High Resilience: Under both fixed and random fault injection tests (disconnecting nodes during active read/write phases), FuxiShuffle kept performance degradation under 10%, successfully mitigating the cascading retries that cripple traditional frameworks.

Limitations and Future Work

While FuxiShuffle demonstrates massive success within Alibaba Cloud's ecosystem, its architecture is deeply integrated with MaxCompute and proprietary infrastructure components like the Pangu distributed storage layer. The paper does not deeply explore how easily these adaptive control loops could be ported to entirely open-source, cloud-agnostic environments (e.g., vanilla Kubernetes and Apache Spark). The authors hint that applying these fine-grained, adaptive shuffle techniques to serverless machine learning training workloads represents a promising future direction.

Summary updated

Abstract

Shuffle exchanges intermediate results between upstream and downstream operators in distributed data processing and is usually the bottleneck due to factors such as small random I/Os and network contention. Several systems have been designed to improve shuffle efficiency, but from our experiences of running ultra-large clusters at Alibaba Cloud MaxCompute platform, we observe that they can not adapt to highly dynamic job characteristics and cluster resource conditions, and their fault tolerance mechanisms are passive and inefficient when failures are inevitable. To tackle their limitations, we design and implement FuxiShuffle as a general data shuffle service for the ultra-large production environment of MaxCompute, featuring good adaptability and efficient failure resilience. Specifically, to achieve good adaptability, FuxiShuffle dynamically selects the shuffle mode based on runtime information, conducts progress-aware scheduling for the downstream workers, and automatically determines the most suitable backup strategy for each shuffle data chunk. To make failure resilience efficient, FuxiShuffle actively ensures data availability with multi-replica failover, prevents memory overflow with careful memory management, and employs an incremental recovery mechanism that does not lose computation progress. Our experiments show that, compared to baseline systems, FuxiShuffle significantly reduces not only end-to-end job completion time but also aggregate resource consumption. Micro experiments suggest that our designs are effective in improving adaptability and failure resilience.
BibTeX
@inproceedings{lin2026fuxishuffle,
  author = {Yuhao Lin and Zhipeng Tang and Jiayan Tong and Junqing Xiao and Bin Lu and Yuhang Li and Chao Li and Zhiguo Zhang and Junhua Wang and Hao Luo and James Cheng and Chuang Hu and Jiawei Jiang and Xiao Yan},
  title = {{FuxiShuffle: An Adaptive and Resilient Shuffle Service for Distributed Data Processing on Alibaba Cloud}},
  booktitle = {SIGMOD Companion},
  year = {2026},
  doi = {10.1145/3788853.3803085},
}
Figure