The Graph Database Interface: Scaling Online Transactional and Analytical Graph Workloads to Hundreds of Thousands of Cores

Maciej Besta, Robert Gerstenberger, Marc Fischer, Michal Podstawski, Nils Blach, Berke Egeli, George Mitenkov, Wojciech Chlapek, Marek T. Michalewicz, Hubert Niewiadomski, Jürgen Müller, Torsten Hoefler · DOI

TL;DR

This paper introduces the Graph Database Interface (GDI), a novel, MPI-inspired API for building high-performance, scalable, and portable graph databases. Their implementation, GDI-RMA, leverages RDMA and other HPC techniques to achieve unprecedented performance and scale, outperforming existing graph databases by orders of magnitude on massive datasets.

What Problem Does This Paper Address?

Graph databases (GDBs) are essential for managing complex, interconnected data, but developing them faces significant challenges: achieving high performance and scalability for both transactional (OLTP) and analytical (OLAP) workloads, ensuring programmability and ease of development, and maintaining portability across diverse hardware architectures. Existing GDBs often struggle to meet these demands simultaneously, especially at extreme scales. The authors aim to bridge this gap by creating a standardized interface and a highly optimized implementation that can handle massive graph datasets across thousands of cores.

Methods

The core contribution is the Graph Database Interface (GDI), a portable and programmable API specification inspired by the Message-Passing Interface (MPI). GDI abstracts performance-critical building blocks of GDBs, focusing on data storage, transactions, and metadata. This separation from implementation details promotes portability.

Their implementation, GDI-RMA, is built for distributed-memory RDMA architectures. Key techniques include:

  • One-sided RDMA communication: Enables direct memory access between nodes, bypassing the OS and CPU for lower latency.
  • Collective operations: Leverages optimized communication patterns for efficient data exchange among multiple processes, crucial for OLAP workloads.
  • Blocked Graph Data Layout (BGDL): A memory management scheme that maps diverse data structures onto fixed-size blocks, simplifying RDMA operations.
  • Volatile and Permanent IDs: Offers flexibility in vertex identification for performance and portability.
  • Handles: Opaque objects that abstract internal data representations, improving usability and enabling optimizations.
  • Flexible Indexes and Constraints: Allows for sophisticated indexing strategies.
  • Separate Consistency Models: Offers serializability for graph data and eventual consistency for metadata, balancing performance and correctness.

Datasets

The paper doesn't explicitly list specific real-world datasets used for evaluation. Instead, they developed an in-memory distributed generator for creating arbitrarily large LPG graphs with custom labels and properties. This generator was crucial for experiments at extreme scales, as publicly available datasets were insufficient. They also mention using workloads inspired by the LDBC and LinkBench benchmarks.

Key Insights and Ideas

  • MPI as a Blueprint for GDBs: The paper successfully demonstrates that principles from HPC, particularly MPI's approach to portability and programmability, can be effectively applied to GDB design.
  • RDMA is Key to Extreme Scale: Harnessing RDMA is presented as a fundamental enabler for achieving performance and scalability at the hundreds of thousands of cores level.
  • Separation of Concerns for Portability: The GDI interface, by decoupling the API from the implementation, allows for a single GDB codebase to run on any architecture with a GDI implementation.
  • Collective Transactions for OLAP: Using collective transactions for OLAP workloads significantly boosts performance and simplifies programming.
  • Volatile IDs for Load Balancing: The introduction of volatile IDs facilitates dynamic data redistribution without invalidating references.
  • Metadata Consistency Trade-off: Allowing eventual consistency for metadata while ensuring serializability for data strikes a balance between performance and correctness.

Key Results

  • Unprecedented Scale: GDI-RMA achieved scales of up to 121,680 cores and 7,142 servers, processing massive datasets. The authors believe it can scale to hundreds of thousands of cores.
  • Orders of Magnitude Performance Improvement: GDI-RMA outperformed existing GDBs like Neo4j and JanusGraph by more than an order of magnitude in both throughput and latency for OLTP and OLAP workloads.
  • High Scalability: The system demonstrated excellent weak and strong scaling for various workloads, indicating its ability to handle growing datasets and leverage increasing compute resources.
  • Competitive with Specialized Systems: For BFS, GDI-RMA's performance approached or even surpassed that of Graph500, a highly specialized BFS benchmark, despite GDI-RMA supporting a much richer feature set (transactions, rich data, arbitrary modifications).

Limitations and Future Work

  • RDMA Dependency: While GDI itself is portable, the GDI-RMA implementation is tied to RDMA-enabled architectures. Porting to non-RDMA systems would require a different implementation.
  • Complexity of RDMA: The paper acknowledges that while GDI-RMA is programmable, the underlying RDMA operations are complex.
  • Future Work: The authors suggest extending GDI to support other data models like RDF and knowledge graphs. They also envision GDI being used directly by clients to implement queries, further enhancing programmability. The potential for GDI to support graph ML workloads and neural graph databases is also highlighted.

Summary updated

BibTeX
@inproceedings{besta2023graph,
  author = {Maciej Besta and Robert Gerstenberger and Marc Fischer and Michal Podstawski and Nils Blach and Berke Egeli and George Mitenkov and Wojciech Chlapek and Marek T. Michalewicz and Hubert Niewiadomski and Jürgen Müller and Torsten Hoefler},
  title = {{The Graph Database Interface: Scaling Online Transactional and Analytical Graph Workloads to Hundreds of Thousands of Cores}},
  booktitle = {SC},
  year = {2023},
  doi = {10.1145/3581784.3607068},
}
Figure