Remote shuffle service
| Also known as | RSS, disaggregated shuffle |
|---|---|
| Field | Distributed data processing |
| Key parts | Shuffle manager plug-in in the engine, a coordinator or master, shuffle servers or workers, local disk or remote storage |
| Open source implementations | Apache Celeborn, Apache Uniffle |
| Related | Shuffle, Executor, External shuffle service, Push-based shuffle, Apache Spark |
A remote shuffle service (RSS) is a cluster of long-running servers that receives, stores and serves the intermediate shuffle data of distributed jobs, so that the data no longer lives on the local disks of the compute processes that wrote it.[1][2] In Apache Spark, a remote shuffle service plugs in as a custom shuffle manager: map tasks push their output to shuffle servers over the network, and reduce tasks read it back from those servers.[3] Two open source implementations at the Apache Software Foundation are Apache Celeborn and Apache Uniffle.[4][5]
What problem does a remote shuffle service solve?
By default, a Spark executor writes shuffle files to its own local disk and serves them to the next stage; the external shuffle service moves the serving to a long-running process on the same node, but the files still sit on that node.[6] When executors are removed, as happens with dynamic allocation or on Kubernetes, the shuffle files must be kept somewhere else or the stages that produced them must run again.
Spark's documentation lists four ways to let dynamic allocation remove executors without losing shuffle files: the external shuffle service, shuffle tracking, shuffle block migration during decommissioning, or a custom ShuffleDataIO (set with spark.shuffle.sort.io.plugin.class) whose driver components support reliable storage.[6] A remote shuffle service is the fourth kind: shuffle data lives on separate servers, so compute nodes can be added and removed freely. Spark on Kubernetes does not support the built-in external shuffle service.[6]
Separating shuffle storage from compute is what both Apache projects name as their goal. Celeborn describes its features as disaggregated computing and storage, push-based shuffle write with merged shuffle read, and high availability.[1] Uniffle describes itself as changing shuffle from a "local file pull-like style" to a "remote block push-like style", with disaggregated storage and high elasticity.[2]
How does a remote shuffle service plug into Apache Spark?
Spark loads its shuffle implementation from spark.shuffle.manager (default sort, since Spark 1.1.0), so a remote shuffle service ships a jar with its own ShuffleManager class and asks users to point this setting at it.[3] Since Spark 3.0.0 there is also a narrower shuffle storage API, org.apache.spark.shuffle.api.ShuffleDataIO, selected by spark.shuffle.sort.io.plugin.class (default LocalDiskShuffleDataIO).[3][7]
Both Celeborn and Uniffle use the two hooks together. The shuffle manager does the data transfer, and the ShuffleDataIO class tells Spark (3.5 and later) that shuffle data is stored reliably, so dynamic allocation can release executors without the external shuffle service:
# Apache Celeborn 0.7.0 client settings for Spark
spark.shuffle.manager org.apache.spark.shuffle.celeborn.SparkShuffleManager
spark.serializer org.apache.spark.serializer.KryoSerializer
spark.celeborn.master.endpoints clb-1:9097,clb-2:9097,clb-3:9097
spark.shuffle.service.enabled false
spark.shuffle.sort.io.plugin.class org.apache.spark.shuffle.celeborn.CelebornShuffleDataIO
The settings above come from the Celeborn deployment guide.[1] Uniffle's equivalents are spark.shuffle.manager=org.apache.spark.shuffle.RssShuffleManager, spark.rss.coordinator.quorum for the coordinator addresses, and spark.shuffle.sort.io.plugin.class=org.apache.spark.shuffle.RssShuffleDataIo on Spark 3.5 or later; for older Spark versions Uniffle ships patches to Spark in its patch/spark folder.[2] Both projects require a serializer that supports relocation of serialized objects, such as Kryo.[1][2]
Remote shuffle service implementations compared
The first column is Spark's built-in shuffle, shown for reference.
| Apache Spark built-in shuffle (with external shuffle service) | Apache Celeborn | Apache Uniffle | |
|---|---|---|---|
| Where shuffle data lives | Local disks of the nodes that ran the map tasks[6] | Celeborn workers, which merge data per reducer and flush to disk; HDFS is a supported storage type[1] | Shuffle servers, which buffer data in memory and write to local disk, remote storage such as HDFS, or both[2] |
| Components | Executors, plus one external shuffle service per node[6] | Master (resource management, state replicated with Raft), Worker, and a LifecycleManager that runs in the Spark driver[1] | Coordinator cluster, shuffle server cluster, optional remote storage[2] |
| Write and read model | Map tasks write sorted files locally; reducers fetch blocks from many nodes[6] | Mappers push data to workers; reducers read merged partition files[1] | Tasks push blocks to shuffle servers; readers read from shuffle servers, remote storage or both[2] |
| Engines (latest release) | Spark only | Spark 3.0 to 4.2, Flink 1.18 to 2.3, Hadoop MapReduce 3; Tez client marked experimental[1] | Spark 2.3 to 3.5, Hadoop MapReduce, Apache Tez[2] |
| Kubernetes | External shuffle service not supported on Kubernetes[6] | Helm chart for deployment on Kubernetes[8] | Kubernetes operator in deploy/kubernetes[9]
|
| Origin | Part of Apache Spark | Started at Alibaba in 2020 as "RemoteShuffleService", open sourced in 2021[10] | Started at Tencent in 2020 as "Firestorm", open sourced in 2021[11] |
| ASF top-level project since | (Spark is a top-level project) | 2024-03-21[4] | 2025-02-19[5] |
| Latest release (checked 2026-11-23) | Spark 4.3.0[12] | 0.7.0, 2026-08-16[13] | 0.10.0, 2025-09-25[14] |
Remote shuffle service vs external shuffle service vs push-based shuffle
The three terms are often confused. The external shuffle service is part of Spark; it serves shuffle files that executors wrote to the node's local disk, and is off by default (spark.shuffle.service.enabled).[6] Push-based shuffle, added in Spark 3.2.0, has map tasks push blocks to external shuffle services that merge them per partition; it works only on YARN.[15] A remote shuffle service is a separate cluster, outside Spark, that stores the shuffle data on its own servers.
When is a remote shuffle service worth running?
A remote shuffle service is one more distributed system to deploy, size and monitor. Its configuration guidance shows the tradeoffs: Celeborn recommends server-side replication (spark.celeborn.client.push.replicate.enabled=true) unless there is only one worker or HDFS storage is used, and recommends turning off Spark's AQE local shuffle reader (spark.sql.adaptive.localShuffleReader.enabled=false).[1] Teams usually consider one when dynamic allocation on Kubernetes keeps losing shuffle data, or when shuffles are large enough to strain the local disks of compute nodes.
See also
- Shuffle
- Apache Celeborn
- Apache Uniffle
- Executor
- External shuffle service
- Push-based shuffle
- Dynamic allocation
References
- ↑ 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 Apache Celeborn README (v0.7.0). Apache Software Foundation.Retrieved 2026-11-23.
- ↑ 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 Apache Uniffle README (v0.10.0). Apache Software Foundation.Retrieved 2026-11-23.
- ↑ 3.0 3.1 3.2 config/package.scala (v4.3.0). Apache Software Foundation.Retrieved 2026-11-23.
- ↑ 4.0 4.1 Celeborn Project Incubation Status. Apache Incubator.Retrieved 2026-11-23.
- ↑ 5.0 5.1 Uniffle Project Incubation Status. Apache Incubator.Retrieved 2026-11-23.
- ↑ 6.0 6.1 6.2 6.3 6.4 6.5 6.6 6.7 Job Scheduling (Spark 4.3.0). Apache Software Foundation.Retrieved 2026-11-23.
- ↑ ShuffleDataIO.java (v4.3.0). Apache Software Foundation.Retrieved 2026-11-23.
- ↑ Deploy Celeborn on Kubernetes (v0.7.0). Apache Software Foundation.Retrieved 2026-11-23.
- ↑ deploy/kubernetes (Uniffle v0.10.0). Apache Software Foundation.Retrieved 2026-11-23.
- ↑ Celeborn Proposal. Apache Incubator.Retrieved 2026-11-23.
- ↑ Uniffle Proposal. Apache Incubator.Retrieved 2026-11-23.
- ↑ Release v4.3.0. Apache Software Foundation.Retrieved 2026-11-23.
- ↑ Download. Apache Celeborn.Retrieved 2026-11-23.
- ↑ Download. Apache Uniffle.Retrieved 2026-11-23.
- ↑ Spark Configuration (Spark 4.3.0). Apache Software Foundation.Retrieved 2026-11-23.