<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://openlakehouse.io/w/index.php?action=history&amp;feed=atom&amp;title=Remote_shuffle_service</id>
	<title>Remote shuffle service - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://openlakehouse.io/w/index.php?action=history&amp;feed=atom&amp;title=Remote_shuffle_service"/>
	<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=Remote_shuffle_service&amp;action=history"/>
	<updated>2026-12-06T00:13:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://openlakehouse.io/w/index.php?title=Remote_shuffle_service&amp;diff=172&amp;oldid=prev</id>
		<title>Open Lakehouse Wiki sync: Sync from open-lakehouse/wiki@7c9abaa</title>
		<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=Remote_shuffle_service&amp;diff=172&amp;oldid=prev"/>
		<updated>2026-11-25T00:52:49Z</updated>

		<summary type="html">&lt;p&gt;Sync from open-lakehouse/wiki@7c9abaa&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Infobox concept&lt;br /&gt;
| name            = Remote shuffle service&lt;br /&gt;
| also_known_as   = RSS, disaggregated shuffle&lt;br /&gt;
| field           = Distributed data processing&lt;br /&gt;
| key_parts       = Shuffle manager plug-in in the engine, a coordinator or master, shuffle servers or workers, local disk or remote storage&lt;br /&gt;
| implementations = [[Apache Celeborn]], [[Apache Uniffle]]&lt;br /&gt;
| related         = [[Shuffle]], [[Executor]], [[External shuffle service]], [[Push-based shuffle]], [[Apache Spark]]&lt;br /&gt;
}}&lt;br /&gt;
{{Verified|2026-11-23|the v4.3.0 tag of apache/spark (docs/job-scheduling.md, core config package.scala, shuffle/api), Apache Celeborn 0.7.0 (README.md, docs/deploy.md, docs/deploy_on_k8s.md), Apache Uniffle 0.10.0 (README.md, pom.xml), the Celeborn and Uniffle download pages and the Apache Incubator status pages}}&lt;br /&gt;
&lt;br /&gt;
A &amp;#039;&amp;#039;&amp;#039;remote shuffle service&amp;#039;&amp;#039;&amp;#039; (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.&amp;lt;ref name=&amp;quot;celebornreadme&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;uniffereadme&amp;quot; /&amp;gt; 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.&amp;lt;ref name=&amp;quot;coreconf&amp;quot; /&amp;gt; Two open source implementations at the Apache Software Foundation are [[Apache Celeborn]] and [[Apache Uniffle]].&amp;lt;ref name=&amp;quot;celebornincubator&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;uniffleincubator&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== What problem does a remote shuffle service solve? ==&lt;br /&gt;
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.&amp;lt;ref name=&amp;quot;jobsched&amp;quot;&amp;gt;{{Cite web |url=https://spark.apache.org/docs/4.3.0/job-scheduling.html |title=Job Scheduling (Spark 4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-23}}&amp;lt;/ref&amp;gt; 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.&lt;br /&gt;
&lt;br /&gt;
Spark&amp;#039;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 &amp;lt;code&amp;gt;ShuffleDataIO&amp;lt;/code&amp;gt; (set with &amp;lt;code&amp;gt;spark.shuffle.sort.io.plugin.class&amp;lt;/code&amp;gt;) whose driver components support reliable storage.&amp;lt;ref name=&amp;quot;jobsched&amp;quot; /&amp;gt; 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.&amp;lt;ref name=&amp;quot;jobsched&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&amp;lt;ref name=&amp;quot;celebornreadme&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/celeborn/blob/v0.7.0/README.md |title=Apache Celeborn README (v0.7.0) |publisher=Apache Software Foundation |access-date=2026-11-23}}&amp;lt;/ref&amp;gt; Uniffle describes itself as changing shuffle from a &amp;quot;local file pull-like style&amp;quot; to a &amp;quot;remote block push-like style&amp;quot;, with disaggregated storage and high elasticity.&amp;lt;ref name=&amp;quot;uniffereadme&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/uniffle/blob/v0.10.0/README.md |title=Apache Uniffle README (v0.10.0) |publisher=Apache Software Foundation |access-date=2026-11-23}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How does a remote shuffle service plug into Apache Spark? ==&lt;br /&gt;
Spark loads its shuffle implementation from &amp;lt;code&amp;gt;spark.shuffle.manager&amp;lt;/code&amp;gt; (default &amp;lt;code&amp;gt;sort&amp;lt;/code&amp;gt;, since Spark 1.1.0), so a remote shuffle service ships a jar with its own &amp;lt;code&amp;gt;ShuffleManager&amp;lt;/code&amp;gt; class and asks users to point this setting at it.&amp;lt;ref name=&amp;quot;coreconf&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/core/src/main/scala/org/apache/spark/internal/config/package.scala |title=config/package.scala (v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-23}}&amp;lt;/ref&amp;gt; Since Spark 3.0.0 there is also a narrower shuffle storage API, &amp;lt;code&amp;gt;org.apache.spark.shuffle.api.ShuffleDataIO&amp;lt;/code&amp;gt;, selected by &amp;lt;code&amp;gt;spark.shuffle.sort.io.plugin.class&amp;lt;/code&amp;gt; (default &amp;lt;code&amp;gt;LocalDiskShuffleDataIO&amp;lt;/code&amp;gt;).&amp;lt;ref name=&amp;quot;coreconf&amp;quot; /&amp;gt;&amp;lt;ref&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/core/src/main/java/org/apache/spark/shuffle/api/ShuffleDataIO.java |title=ShuffleDataIO.java (v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-23}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both Celeborn and Uniffle use the two hooks together. The shuffle manager does the data transfer, and the &amp;lt;code&amp;gt;ShuffleDataIO&amp;lt;/code&amp;gt; class tells Spark (3.5 and later) that shuffle data is stored reliably, so dynamic allocation can release executors without the external shuffle service:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;properties&amp;quot;&amp;gt;&lt;br /&gt;
# Apache Celeborn 0.7.0 client settings for Spark&lt;br /&gt;
spark.shuffle.manager                 org.apache.spark.shuffle.celeborn.SparkShuffleManager&lt;br /&gt;
spark.serializer                      org.apache.spark.serializer.KryoSerializer&lt;br /&gt;
spark.celeborn.master.endpoints       clb-1:9097,clb-2:9097,clb-3:9097&lt;br /&gt;
spark.shuffle.service.enabled         false&lt;br /&gt;
spark.shuffle.sort.io.plugin.class    org.apache.spark.shuffle.celeborn.CelebornShuffleDataIO&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The settings above come from the Celeborn deployment guide.&amp;lt;ref name=&amp;quot;celebornreadme&amp;quot; /&amp;gt; Uniffle&amp;#039;s equivalents are &amp;lt;code&amp;gt;spark.shuffle.manager=org.apache.spark.shuffle.RssShuffleManager&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;spark.rss.coordinator.quorum&amp;lt;/code&amp;gt; for the coordinator addresses, and &amp;lt;code&amp;gt;spark.shuffle.sort.io.plugin.class=org.apache.spark.shuffle.RssShuffleDataIo&amp;lt;/code&amp;gt; on Spark 3.5 or later; for older Spark versions Uniffle ships patches to Spark in its &amp;lt;code&amp;gt;patch/spark&amp;lt;/code&amp;gt; folder.&amp;lt;ref name=&amp;quot;uniffereadme&amp;quot; /&amp;gt; Both projects require a serializer that supports relocation of serialized objects, such as Kryo.&amp;lt;ref name=&amp;quot;celebornreadme&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;uniffereadme&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Remote shuffle service implementations compared ==&lt;br /&gt;
The first column is Spark&amp;#039;s built-in shuffle, shown for reference.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! !! Apache Spark built-in shuffle (with external shuffle service) !! Apache Celeborn !! Apache Uniffle&lt;br /&gt;
|-&lt;br /&gt;
! Where shuffle data lives&lt;br /&gt;
| Local disks of the nodes that ran the map tasks&amp;lt;ref name=&amp;quot;jobsched&amp;quot; /&amp;gt;&lt;br /&gt;
| Celeborn workers, which merge data per reducer and flush to disk; HDFS is a supported storage type&amp;lt;ref name=&amp;quot;celebornreadme&amp;quot; /&amp;gt;&lt;br /&gt;
| Shuffle servers, which buffer data in memory and write to local disk, remote storage such as HDFS, or both&amp;lt;ref name=&amp;quot;uniffereadme&amp;quot; /&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! Components&lt;br /&gt;
| Executors, plus one external shuffle service per node&amp;lt;ref name=&amp;quot;jobsched&amp;quot; /&amp;gt;&lt;br /&gt;
| Master (resource management, state replicated with Raft), Worker, and a LifecycleManager that runs in the Spark driver&amp;lt;ref name=&amp;quot;celebornreadme&amp;quot; /&amp;gt;&lt;br /&gt;
| Coordinator cluster, shuffle server cluster, optional remote storage&amp;lt;ref name=&amp;quot;uniffereadme&amp;quot; /&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! Write and read model&lt;br /&gt;
| Map tasks write sorted files locally; reducers fetch blocks from many nodes&amp;lt;ref name=&amp;quot;jobsched&amp;quot; /&amp;gt;&lt;br /&gt;
| Mappers push data to workers; reducers read merged partition files&amp;lt;ref name=&amp;quot;celebornreadme&amp;quot; /&amp;gt;&lt;br /&gt;
| Tasks push blocks to shuffle servers; readers read from shuffle servers, remote storage or both&amp;lt;ref name=&amp;quot;uniffereadme&amp;quot; /&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! Engines (latest release)&lt;br /&gt;
| Spark only&lt;br /&gt;
| Spark 3.0 to 4.2, Flink 1.18 to 2.3, Hadoop MapReduce 3; Tez client marked experimental&amp;lt;ref name=&amp;quot;celebornreadme&amp;quot; /&amp;gt;&lt;br /&gt;
| Spark 2.3 to 3.5, Hadoop MapReduce, Apache Tez&amp;lt;ref name=&amp;quot;uniffereadme&amp;quot; /&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! Kubernetes&lt;br /&gt;
| External shuffle service not supported on Kubernetes&amp;lt;ref name=&amp;quot;jobsched&amp;quot; /&amp;gt;&lt;br /&gt;
| Helm chart for deployment on Kubernetes&amp;lt;ref name=&amp;quot;celeborndeployk8s&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/celeborn/blob/v0.7.0/docs/deploy_on_k8s.md |title=Deploy Celeborn on Kubernetes (v0.7.0) |publisher=Apache Software Foundation |access-date=2026-11-23}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
| Kubernetes operator in &amp;lt;code&amp;gt;deploy/kubernetes&amp;lt;/code&amp;gt;&amp;lt;ref name=&amp;quot;unifflek8s&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/uniffle/tree/v0.10.0/deploy/kubernetes |title=deploy/kubernetes (Uniffle v0.10.0) |publisher=Apache Software Foundation |access-date=2026-11-23}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! Origin&lt;br /&gt;
| Part of Apache Spark&lt;br /&gt;
| Started at Alibaba in 2020 as &amp;quot;RemoteShuffleService&amp;quot;, open sourced in 2021&amp;lt;ref name=&amp;quot;celebornproposal&amp;quot;&amp;gt;{{Cite web |url=https://cwiki.apache.org/confluence/display/INCUBATOR/CelebornProposal |title=Celeborn Proposal |publisher=Apache Incubator |access-date=2026-11-23}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
| Started at Tencent in 2020 as &amp;quot;Firestorm&amp;quot;, open sourced in 2021&amp;lt;ref name=&amp;quot;uniffleproposal&amp;quot;&amp;gt;{{Cite web |url=https://cwiki.apache.org/confluence/display/INCUBATOR/UniffleProposal |title=Uniffle Proposal |publisher=Apache Incubator |access-date=2026-11-23}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! ASF top-level project since&lt;br /&gt;
| (Spark is a top-level project)&lt;br /&gt;
| 2024-03-21&amp;lt;ref name=&amp;quot;celebornincubator&amp;quot;&amp;gt;{{Cite web |url=https://incubator.apache.org/projects/celeborn.html |title=Celeborn Project Incubation Status |publisher=Apache Incubator |access-date=2026-11-23}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
| 2025-02-19&amp;lt;ref name=&amp;quot;uniffleincubator&amp;quot;&amp;gt;{{Cite web |url=https://incubator.apache.org/projects/uniffle.html |title=Uniffle Project Incubation Status |publisher=Apache Incubator |access-date=2026-11-23}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! Latest release (checked 2026-11-23)&lt;br /&gt;
| Spark 4.3.0&amp;lt;ref&amp;gt;{{Cite web |url=https://github.com/apache/spark/releases/tag/v4.3.0 |title=Release v4.3.0 |publisher=Apache Software Foundation |access-date=2026-11-23}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
| 0.7.0, 2026-08-16&amp;lt;ref name=&amp;quot;celeborndl&amp;quot;&amp;gt;{{Cite web |url=https://celeborn.apache.org/download/ |title=Download |publisher=Apache Celeborn |access-date=2026-11-23}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
| 0.10.0, 2025-09-25&amp;lt;ref name=&amp;quot;uniffledl&amp;quot;&amp;gt;{{Cite web |url=https://uniffle.apache.org/download |title=Download |publisher=Apache Uniffle |access-date=2026-11-23}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Remote shuffle service vs external shuffle service vs push-based shuffle ==&lt;br /&gt;
The three terms are often confused. The &amp;#039;&amp;#039;&amp;#039;[[external shuffle service]]&amp;#039;&amp;#039;&amp;#039; is part of Spark; it serves shuffle files that executors wrote to the node&amp;#039;s local disk, and is off by default (&amp;lt;code&amp;gt;spark.shuffle.service.enabled&amp;lt;/code&amp;gt;).&amp;lt;ref name=&amp;quot;jobsched&amp;quot; /&amp;gt; &amp;#039;&amp;#039;&amp;#039;[[Push-based shuffle]]&amp;#039;&amp;#039;&amp;#039;, 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.&amp;lt;ref name=&amp;quot;sparkconfdoc&amp;quot;&amp;gt;{{Cite web |url=https://spark.apache.org/docs/4.3.0/configuration.html |title=Spark Configuration (Spark 4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-23}}&amp;lt;/ref&amp;gt; A &amp;#039;&amp;#039;&amp;#039;remote shuffle service&amp;#039;&amp;#039;&amp;#039; is a separate cluster, outside Spark, that stores the shuffle data on its own servers.&lt;br /&gt;
&lt;br /&gt;
== When is a remote shuffle service worth running? ==&lt;br /&gt;
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 (&amp;lt;code&amp;gt;spark.celeborn.client.push.replicate.enabled=true&amp;lt;/code&amp;gt;) unless there is only one worker or HDFS storage is used, and recommends turning off Spark&amp;#039;s AQE local shuffle reader (&amp;lt;code&amp;gt;spark.sql.adaptive.localShuffleReader.enabled=false&amp;lt;/code&amp;gt;).&amp;lt;ref name=&amp;quot;celebornreadme&amp;quot; /&amp;gt; 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.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Shuffle]]&lt;br /&gt;
* [[Apache Celeborn]]&lt;br /&gt;
* [[Apache Uniffle]]&lt;br /&gt;
* [[Executor]]&lt;br /&gt;
* [[External shuffle service]]&lt;br /&gt;
* [[Push-based shuffle]]&lt;br /&gt;
* [[Dynamic allocation]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Navbox open lakehouse}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Concepts]]&lt;br /&gt;
[[Category:Glossary terms]]&lt;br /&gt;
[[Category:Apache Spark]]&lt;/div&gt;</summary>
		<author><name>Open Lakehouse Wiki sync</name></author>
	</entry>
</feed>