Skip to content

larryxiao/spark

 
 

Repository files navigation

Graph Partitioning Strategy on GraphX (Spark)

We implemented some algorithms for partitioning on GraphX, and evaluated. And find the partitioning has space of improving. Seek opinion and advice.

Motivation

  • Graph in real world follow power law. Eg. On twitter 1% of the vertices are adjacent to nearly half of the edges.
  • For high-degree vertex, one vertex concentrates vast resources. So the workload on few high-degree vertex should be decomposed by all machines
  • For low-degree vertex, The computation on one vertex is quite small. Thus should exploit the locality of the computation on low-degree vertex.

Algorithm Description

  • HybridCut
  • HybridCutPlus
  • Greedy BiCut
    • a heuristic algorithm for bipartite

Result

    • The left Y axis is replication factor, right axis is the balance (measured using CV, coefficient of variation) of either vertices or edges of all partitions. The balance of edges can infer computation balance, and the balance of vertices can infer communication balance.
    • This is an example of a balanced partitioning achieving 20% saving on communication.
    • This is a simple partitioning result of BiCut.
  • in-2.0-1m is a generated power law graph with alpha equals 2.0

Code

Reference

  • Bipartite-oriented Distributed Graph Partitioning for Big Learning.
  • PowerLyra : Differentiated Graph Computation and Partitioning on Skewed Graphs

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 83.6%
  • Python 8.3%
  • Java 5.5%
  • Shell 2.2%
  • JavaScript 0.3%
  • CSS 0.1%