Time-Efficient and High-Quality Graph Partitioning for Graph Dynamic Scaling

Masatoshi Hanai, Nikos Tziritas, Toyotaro Suzumura, Wentong Cai, Georgios TheodoropoulosarXiv 2021

Abstract

Distributed graph processing requires efficient partitioning to minimize communication overhead. However, existing methods face a trade-off between partitioning quality and speed, which becomes a bottleneck in elastic cloud environments where cluster sizes change frequently. This paper introduces a novel two-stage framework that decouples graph locality analysis from the partitioning process. By preprocessing a graph into a specially ordered edge list once, the system can re-partition billion-scale graphs in $O(1)$ time—three to eight orders of magnitude faster than state-of-the-art methods—without sacrificing the partitioning quality required for efficient computation.

Introduction: The Elastic Scaling Dilemma

To process massive graphs, such as social networks or web crawls, data must be split across multiple computing nodes. This "graph partitioning" task traditionally forces a choice between two extremes: high-quality algorithms like METIS, which are slow and computationally expensive, or fast hashing methods that result in poor performance during analysis due to high communication overhead.

In modern cloud environments, this dilemma is exacerbated by dynamic scaling. When using spot instances or preemptible VMs, the number of available nodes fluctuates. Traditional approaches require a full re-partitioning of the graph every time the cluster size changes, creating a massive bottleneck that can negate the benefits of adding more resources.

Comparison of existing partitioning approaches versus the proposed time-efficient framework showing the reduction in partitioning time.

Proposed Framework: GEO and CEP

The researchers propose a two-stage approach that shifts the heavy lifting of partitioning to a one-time preprocessing phase.

1. Graph Edge Ordering (GEO)

The first stage is a one-time offline preprocessing step. Instead of partitioning the graph for a specific number of nodes, the GEO algorithm creates a linear, ordered list of all edges. The goal is to maximize "locality"—placing edges that share vertices close to each other in the sequence. This is achieved through a greedy expansion algorithm using a novel priority queue that balances vertex degrees with "freshness" in the ordering process.

2. Chunk-based Edge Partitioning (CEP)

Once the edges are ordered, the actual partitioning becomes a trivial $O(1)$ operation. To divide the graph into $k$ partitions, the system simply slices the 1D ordered list into $k$ equal chunks. Because the list preserves locality, these chunks naturally form high-quality partitions. When the cluster size changes (e.g., from $k$ to $k+x$), the system merely re-slices the existing list, making re-partitioning nearly instantaneous.

The end-to-end workflow: from input graph data to Graph Edge Ordering and subsequent Chunk-based Edge Partitioning across varying cluster sizes.

Evaluation and Results

The framework was evaluated on massive real-world datasets, including social networks like Twitter (1.46B edges) and Friendster (1.80B edges), as well as synthetic R-MAT graphs up to 10 billion edges.

Key Performance Metrics

  • Re-partitioning Speed: The proposed method is 3 to 8 orders of magnitude faster than BVC, a state-of-the-art dynamic scaling method.
  • Partitioning Quality: The "Replication Factor" (a metric for communication cost) is comparable to high-quality offline algorithms like NE and significantly better than streaming or hashing methods like HDRF or DBH.
  • End-to-End Efficiency: In dynamic "ScaleOut" scenarios during PageRank execution, the method reduced total runtime by over 60% by eliminating the re-partitioning bottleneck.

Conclusion and Future Directions

By abstracting complex graph structures into a locality-preserving 1D sequence, this work effectively decouples partitioning quality from scaling speed. While the current implementation assumes a static graph structure and utilizes sequential preprocessing, it provides a robust foundation for billion-scale graph analytics in elastic environments. Future work aims to parallelize the initial ordering process and adapt the framework for highly dynamic graphs where nodes and edges are frequently updated.

Summary updated

BibTeX
@misc{hanai2021time,
  author = {Masatoshi Hanai and Nikos Tziritas and Toyotaro Suzumura and Wentong Cai and Georgios Theodoropoulos},
  title = {{Time-Efficient and High-Quality Graph Partitioning for Graph Dynamic Scaling}},
  year = {2021},
  eprint = {2101.07026},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.07026},
}
Figure