Skip to main content
QUICK REVIEW

[Paper Review] Social Hash Partitioner: A Scalable Distributed Hypergraph Partitioner

Igor Kabiljo, Brian Karrer|arXiv (Cornell University)|Jul 20, 2017
VLSI and FPGA Design TechniquesEngineering10 references7 citations
TL;DR

This paper introduces Social Hash Partitioner (SHP), a scalable distributed hypergraph partitioner that minimizes probabilistic fanout using a local search heuristic, enabling efficient processing of hypergraphs with billions of vertices and hyperedges. SHP achieves solution quality comparable to top single-machine and distributed partitioners while scaling to 100× larger hypergraphs on the same hardware.

ABSTRACT

We design and implement a distributed algorithm for balanced $k$-way hypergraph partitioning that minimizes fanout, a fundamental hypergraph quantity also known as the communication volume and ($k-1$)-cut metric, by optimizing a novel objective called probabilistic fanout. This choice allows a simple local search heuristic to achieve comparable solution quality to the best existing hypergraph partitioners. Our algorithm is arbitrarily scalable due to a careful design that controls computational complexity, space complexity, and communication. In practice, we commonly process hypergraphs with billions of vertices and hyperedges in a few hours. We explain how the algorithm's scalability, both in terms of hypergraph size and bucket count, is limited only by the number of machines available. We perform an extensive comparison to existing distributed hypergraph partitioners and find that our approach is able to optimize hypergraphs roughly $100$ times bigger on the same set of machines. We call the resulting tool Social Hash Partitioner (SHP), and accompanying this paper, we open-source the most scalable version based on recursive bisection.

Motivation & Objective

  • Address the need for scalable hypergraph partitioning in large-scale distributed systems, particularly for storage sharding in databases.
  • Overcome the scalability limitations of existing hypergraph partitioners when handling massive real-world graphs like the Facebook Social Graph.
  • Minimize fanout (communication volume) as a key metric for query performance in distributed data placement.
  • Design a distributed algorithm that maintains load balance across buckets while minimizing cross-bucket hyperedge spans.
  • Enable practical deployment in production systems through incremental updates and multi-dimensional load balancing heuristics.

Proposed method

  • Propose a novel objective function called probabilistic fanout (p-fanout) to guide the partitioning process, enabling effective local search optimization.
  • Implement a distributed algorithm based on recursive bisection using the Apache Giraph framework, with careful control over space, computation, and communication complexity.
  • Use a local search heuristic that iteratively improves partition quality by moving vertices between buckets based on gain calculations.
  • Introduce a master-worker architecture where the master coordinates moves and balances load, while workers perform local computation on their assigned vertex subsets.
  • Support incremental updates by initializing from a prior partition and adjusting move gains to discourage excessive reassignment.
  • Apply a multi-dimensional load balancing heuristic that creates c·k temporary buckets (c > 1) with loose balance constraints, then merges them into k final buckets to satisfy all resource constraints.

Experimental results

Research questions

  • RQ1Can a simple local search heuristic achieve solution quality comparable to state-of-the-art hypergraph partitioners when optimized with a novel objective function?
  • RQ2To what extent does the proposed probabilistic fanout objective enable scalable and efficient distributed hypergraph partitioning?
  • RQ3How does the algorithm’s performance scale with increasing hypergraph size and number of buckets?
  • RQ4Can the algorithm handle real-world workloads with billions of vertices and hyperedges while maintaining load balance and low fanout?
  • RQ5How does the algorithm’s solution quality compare to existing single-machine and distributed partitioners on large-scale hypergraphs?

Key findings

  • SHP achieves solution quality comparable to the best existing single-machine and distributed hypergraph partitioners, including Zoltan and Mondriaan, in terms of fanout minimization.
  • On the same set of machines, SHP can optimize hypergraphs approximately 100 times larger than those handled by existing distributed partitioners.
  • The algorithm routinely processes hypergraphs with billions of vertices and hundreds of millions to billions of hyperedges in just a few hours.
  • The algorithm’s scalability is limited only by the number of available machines, due to careful control of space, computational, and communication complexity.
  • While SHP occasionally produced the best solution, other tools like Zoltan and Mondriaan often achieved lower fanout, indicating room for further improvement in objective function design.
  • The use of p-fanout as an objective enables effective local search and maintains high solution quality even at scale, suggesting its suitability for large-scale distributed systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.