Facebook Scale Graph Processing using Giraph
summary
Apache Giraph runs as an offline, BSP graph processor on Hadoop with a custom in‑memory message layer, Netty I/O, ZooKeeper coordination and checkpointing, and compact byte‑array storage using primitive collections and sun.misc.Unsafe to avoid billions of Java objects. Facebook scales it to billions of vertices and hundreds of billions of edges (examples: PageRank on a 400 billion edge graph in minutes; a label‑propagation job at 1B nodes/200B edges across 200 workers). Measured gains are significant: ~20x CPU speedup and ~100x shorter wall time, turning weekend jobs into minutes.
AI-written summary · about
chapters (11)
- 0:00Introduction to Giraph
- 3:40What Giraph is and isn't
- 8:57Giraph data flow and components
- 13:49Scaling Giraph at Facebook
- 17:20Handling large graph algorithms
- 23:18Optimizing serialization with Unsafe
- 27:50Distributed aggregations
- 29:55Asynchronous network with Netty
- 31:39Performance benchmarks
- 33:02Lessons learned from scaling
- 35:11Results and impact at Facebook
