internalsGet Pro

Module 08 · Lesson 7 of 14Pro

Case: LinkedIn’s push-based shuffle for Spark

Level
Advanced
Topic
Batch processing with Spark
Reading time
17 min

When you finish this page you can

  1. Work out how many blocks a shuffle writes and how large each one is, and say why tiny blocks hurt hard disks.
  2. Trace how push-based shuffle merges map output per partition and turns small random reads into large sequential ones.
  3. Read LinkedIn’s 2021 results and say what each one measures.
  4. Decide whether Kartly’s Spark jobs on Kubernetes can use push-based shuffle, and what they should do instead.

Builds on 2 lessons

Start with lesson 317 min
  1. Spark architecture: driver, executors and tasks17 min
  2. Shuffles: the most expensive step in Spark17 min

Half the failed stages had one cause

By the end of 2019, more than half of the stage failures in LinkedIn’s Spark jobs were fetch failures.1 A reduce task asked for its piece of a shuffle, didn’t get it, and the stage had to run again. Jobs ran late and missed their deadlines.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan