LinkedIn cuts daily Spark shuffle fetch failures from about 750 to 20 with Apache Celeborn

LinkedIn reports that daily Spark shuffle fetch failures fell from about 750 to 20 after it moved intermediate data off its compute clusters and onto dedicated Apache Celeborn workers. Most of its Apache Spark and Apache Flink workloads now use the shared remote shuffle service. Compared with its previous system, Magnet, LinkedIn also reports 10% lower compute costs and 14% shorter application runtimes.

A shuffle moves intermediate data between processing stages. LinkedIn’s offline platform runs more than 300,000 Spark jobs a day across thousands of production nodes. Moving real-time and historical processing onto a unified Flink platform added to shuffle demand as teams began running large historical backfills.

What changed when shuffle storage moved off the compute cluster

Magnet, a push-based shuffle implementation LinkedIn contributed to Spark 3.2, reduced random disk reads by merging small blocks into larger files for each reducer partition. But the shuffle service still ran on the compute cluster, competing with application tasks for CPU, memory, disk I/O and network bandwidth.

With Celeborn, map tasks push their output to dedicated workers, which merge and store the partitions. Reducers fetch data directly from those workers. LinkedIn can therefore expand shuffle storage without adding compute capacity, and the availability of intermediate data depends less on how long individual executors remain active.

LinkedIn cuts daily Spark shuffle fetch failures from about 750 to 20 with Apache Celeborn

Reliability and performance at production scale

LinkedIn senior engineer Aravind Patnam said that operating Celeborn reliably at this scale required substantial engineering beyond the upstream project. LinkedIn deployed a five-node control plane across availability zones, using Apache Ratis to replicate metadata, elect a leader and handle failover through Raft. It also introduced network-aware replication and connected scheduling to its host health platform: workers approaching maintenance receive lower priority, while unhealthy workers are excluded. LinkedIn says these changes reduced task failures during infrastructure incidents to one-twentieth of their previous level.

Moving shuffle storage to NVMe SSDs shortened overall shuffle duration by 40%, according to LinkedIn. Switching compression from LZ4 to Zstandard reduced the required shuffle worker fleet by about 35%. LinkedIn also equipped workers with 100 Gbps network interfaces, while JVM and data-handling changes cut the time needed to select a slot to one-sixth of its former level. Across the cluster, shuffle cost per task fell by nearly 90%. The share of executor runtime spent waiting for shuffle operations was about 10% to 15% below its peak.

LinkedIn says its unified Flink platform processes hundreds of millions of events per hour during historical backfills, allowing workloads that previously took days across multiple jobs to finish in hours. Thousands of pipelines now use Flink for both nearline processing and historical corrections instead of maintaining parallel Spark implementations. LinkedIn continues to contribute to Celeborn and is exploring caching and faster adoption of upstream releases.