TL;DR
This paper introduces RapidStore, a novel dynamic graph storage system designed for efficient handling of concurrent read and write operations. By decoupling read/write query management and employing subgraph-level versioning, RapidStore significantly reduces interference and improves performance for read-intensive applications.
What Problem Does This Paper Address?
Dynamic graph databases are crucial for applications like social networks and recommendation systems, where graph data constantly changes. However, efficiently managing both concurrent read and write operations on these evolving graphs is a significant challenge. Existing systems often suffer from:
- Read-write interference: Write operations can block or slow down read operations due to lock contention.
- Per-edge versioning overhead: Storing multiple versions for each edge consumes substantial memory and incurs significant time overhead for version checks during queries.
- Inefficient search operations: Many systems prioritize scan performance, neglecting the efficiency of search operations, which are vital for complex queries like pattern matching.
These issues limit the scalability and performance of dynamic graph systems, especially for read-intensive workloads.
Methods
RapidStore tackles these challenges with a holistic approach:
- Subgraph-Centric Concurrency Control: Instead of per-edge versioning, RapidStore groups vertices into subgraphs and manages versions at this coarser granularity. This significantly reduces the overhead of version management and checks.
- Write Queries: Employ a Multi-Version Two-Phase Locking (MV2PL) protocol with subgraph-level locking to ensure serializability. They use a copy-on-write strategy to create new subgraph snapshots.
- Read Queries: Operate on immutable graph snapshots without acquiring any locks. They register with a logical clock and construct their view by selecting appropriate subgraph versions based on their start time. This non-blocking approach is key to minimizing read-write interference.
- Decoupled System Design: RapidStore separates the management of read and write queries, further reducing interference. Version data is also decoupled from graph data.
- Optimized Graph Data Store:
- Compressed Adaptive Radix Tree (C-ART): For high-degree vertices, C-ART is used to store neighbor sets. It extends the Adaptive Radix Tree (ART) by compressing leaves to store multiple vertices, improving memory locality and scan performance.
- Clustered Index: For low-degree vertices, a B+ tree is used to store neighbor sets sequentially, reducing random memory access.
Datasets
The paper evaluates RapidStore on several real-world graph datasets:
- LiveJournal (lj)
- Orkut (ot)
- LDBC
- Graph500 (g5)
- Twitter (tw)
- Friendster (fr)
These datasets vary in size and structure, providing a comprehensive evaluation.
Key Insights and Ideas
- Subgraph-level versioning is a game-changer: Moving from per-edge to subgraph-level versioning dramatically reduces memory overhead and the cost of version checks, directly addressing a major bottleneck in existing systems.
- Decoupling read and write queries is crucial for concurrency: By allowing reads to operate on snapshots without locks, RapidStore achieves near-zero interference from writes, a significant improvement over lock-based approaches.
- C-ART offers a sweet spot for neighbor storage: The combination of ART's efficiency with leaf compression (C-ART) and a clustered index for low-degree vertices provides a balanced approach for storing neighbor sets, optimizing both search and scan operations.
- Read-intensive workloads benefit immensely: The design choices in RapidStore are heavily optimized for scenarios where reads dominate, leading to substantial performance gains in such applications.
Key Results
- Read Performance: RapidStore achieves up to 3.46x speedup over the latest systems on graph analytic queries (e.g., PageRank, BFS, SSSP, WCC, TC). It shows significant latency reductions across various workloads and vertex degree distributions.
- Memory Efficiency: RapidStore is highly memory-efficient, saving up to 56.34% of memory compared to other systems, largely due to ID compression and the avoidance of per-edge versioning.
- Concurrency: With 4 writers and 28 readers, RapidStore's read query completion time increases by at most 13.36%, compared to up to 41.04% for other systems, demonstrating its superior ability to handle concurrent workloads.
- Write Performance: While slightly behind the best in pure insertion throughput (due to copy-on-write overhead), RapidStore offers stable and competitive write performance, especially in scenarios with larger batch updates or real-world traces. It also shows good scalability with the number of writers.
Limitations and Future Work
- Write Overhead: RapidStore incurs higher write overhead than per-edge versioning approaches due to its copy-on-write strategy. This is a deliberate trade-off for read performance, but the authors note that write operations remain efficient in practice.
- Partition Size Tuning: The performance is influenced by the partition size |P|. While a default of 64 is provided, users may need to tune this parameter based on specific graph structures and workloads.
- Future Work: The authors suggest extending RapidStore to support persistence on emerging storage media like NVMe SSDs and cloud storage. They also mention adaptive partitioning strategies as a promising research direction.
Summary updated