Let's Do Smart Routing: For Distributed Graph Querying with Decoupled Storage

Arijit Khan, Gustavo Segovia, Donald KossmannarXiv 2016

Abstract

Traditional distributed graph systems often couple storage and processing, leading to significant overhead in re-partitioning and load balancing. This paper presents gRouting, a framework that decouples these components to enhance flexibility and performance. By utilizing "smart routing" strategies—specifically graph landmarks and embeddings—gRouting intelligently directs queries to processors likely to have the required data in their local cache. Experimental results demonstrate that gRouting achieves up to an order of magnitude higher throughput than traditional coupled systems while maintaining linear scalability.

Introduction: The Limitations of Coupled Architectures

Most existing distributed graph systems, such as Trinity or SEDGE, rely on a "coupled" architecture. In these systems, the graph is partitioned, and each partition is statically assigned to a specific server responsible for both storage and query processing.

As shown in Figure 1, these systems use fixed routing tables. This design introduces three primary challenges:

  1. Inflexibility: Scaling the system or handling server failures requires expensive graph re-partitioning and routing table updates.
  2. Expensive Pre-processing: High performance depends on complex partitioning algorithms to minimize cross-server communication.
  3. Dynamic Workloads: Static partitions cannot adapt to shifting query "hotspots," leading to resource imbalances.

The gRouting Framework

To address these issues, the authors propose a decoupled architecture that separates the system into a Storage Tier and a Processing Tier, mediated by a Smart Router.

In this model (Figure 3), the Storage Tier holds the graph data (often in memory), while the Processing Tier consists of stateless servers that handle query execution. The Smart Router is the critical component that decides which processing server should handle a specific query based on topological locality.

Smart Routing Strategies

The "secret sauce" of gRouting lies in its routing logic, which aims to maximize cache hits in the processing tier:

  • Landmark Routing: The system selects "landmark" nodes and pre-computes distances to them. Queries are then routed to processors assigned to specific landmark regions.
  • Embed Routing: The graph is mapped into a low-dimensional Euclidean space. The router tracks the "cache center" of each processor and routes new queries to the processor whose historical cache most closely matches the query node's coordinates.
  • Query Stealing: To ensure high utilization, idle processors can "steal" queries from overloaded ones, providing dynamic load balancing.

Evaluation and Key Results

The researchers evaluated gRouting using four massive real-world datasets, including WebGraph (3.7B edges) and Friendster (1.8B edges). The results highlight the efficiency of the decoupled approach:

  • Throughput Gains: gRouting achieved 5–10x higher throughput than state-of-the-art systems like SEDGE and PowerGraph on standard Ethernet. With Infiniband (RDMA), this advantage increased to 10–35x.
  • Scalability: Unlike coupled systems that suffer from synchronization overhead, gRouting’s throughput scales almost linearly with the addition of query processors.
  • Adaptability: The system remains robust against graph updates and shifting hotspots due to the adaptive nature of Embed routing.

Conclusion

gRouting demonstrates that decoupling storage from processing, when combined with intelligent topology-aware routing, can significantly outperform traditional coupled graph systems. By turning the processing tier's caches into a dynamic, "soft" partitioning layer, gRouting provides a flexible and highly scalable solution for large-scale graph querying.

Summary updated

BibTeX
@misc{khan2016let,
  author = {Arijit Khan and Gustavo Segovia and Donald Kossmann},
  title = {{Let's Do Smart Routing: For Distributed Graph Querying with Decoupled Storage}},
  year = {2016},
  eprint = {1611.03959},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1611.03959},
}
Figure