Abstract
Traditional distributed graph processing frameworks, such as Pregel, are optimized for "heavy-weight" analytics where most vertices are active. However, they struggle with "light-weight" queries where only a small portion of the graph is relevant. We present Quegel, a query-centric framework that introduces a superstep-sharing execution model and native distributed indexing. Quegel achieves interactive speeds and significantly higher throughput than vertex-centric systems by batching queries and reducing synchronization overhead.
Introduction
Modern distributed graph systems typically follow the "think like a vertex" paradigm. While effective for global analytics like PageRank, these systems are inefficient for light-weight queries, such as point-to-point shortest path searches in massive social networks. In such cases, resource utilization is low because most vertices remain idle, and the system spends excessive time at synchronization barriers. Furthermore, the lack of built-in indexing support often necessitates full graph scans, further degrading performance.
Quegel addresses these challenges by shifting the focus from vertex-centric to query-centric execution. It is designed to handle multiple concurrent queries efficiently, saturating network bandwidth and minimizing idle time.
The Quegel Framework
Quegel's architecture is built upon several key innovations designed to optimize the execution of light-weight graph queries.
Superstep-Sharing Execution Model
The core of Quegel's efficiency is the superstep-sharing model. Instead of executing queries sequentially, Quegel batches multiple queries into "super-rounds." During each super-round, every active query in the batch progresses by exactly one superstep. This approach allows the system to combine small messages from different queries into larger network packets, effectively saturating bandwidth and drastically reducing the frequency of global synchronization barriers.
Query-Centric Programming and State Management
Quegel extends the Pregel User-Defined Function (UDF) model. Users can define query-specific initialization logic and selectively activate only the necessary starting vertices. To manage memory efficiently, Quegel separates static graph data (V-data) from query-specific vertex data (VQ-data). VQ-data is allocated on-demand when a vertex is accessed by a specific query and is purged immediately upon query completion.
Distributed Indexing
Unlike many existing frameworks, Quegel provides a native interface for constructing and utilizing distributed indexes (e.g., Hub-Labeling or inverted lists). These indexes are built during the graph loading phase and are crucial for accelerating repeated queries.
Evaluation and Results
Quegel was evaluated using diverse large-scale datasets, including social graphs (Twitter with 1.96 billion edges), RDF data (Freebase), and XML datasets (DBLP).
The results demonstrate significant performance gains:
- Throughput: In batch processing, Quegel achieved throughput up to 186x higher than Giraph and 38.6x higher than GraphLab.
- Latency: Quegel provides interactive latency, answering complex reachability and XML keyword queries on massive graphs in under one second.
- Efficiency: For Point-to-Point Shortest Path (PPSP) queries on the Twitter graph, Quegel outperformed traditional systems by orders of magnitude. A bidirectional BFS query that took over 100 seconds in Giraph was completed at interactive speeds in Quegel.
Key Insights
The success of Quegel stems from three primary insights:
- Batching for Latency: Batching multiple light-weight queries transforms a latency-bound problem into a high-throughput advantage.
- Feasibility of Indexing: Distributed indexing is highly effective for big graphs when supported by the right framework abstractions.
- Decoupled Loading: By keeping the graph in memory and decoupling query logic from data loading, Quegel avoids the high startup overhead typical of job-based systems like Giraph.
Conclusion and Future Work
Quegel demonstrates that a query-centric approach can bring interactive performance to big graph querying. While highly effective, future work will address memory pressure from extremely large query batches and explore automated index management. The authors also plan to implement more advanced optimization techniques to provide stronger performance guarantees across various query classes.
Summary updated