Introduction
Traditional distributed database systems were architected under the assumption that the network is the primary bottleneck. To minimize data movement, these "shared-nothing" designs partition data across nodes and rely on expensive shuffle operations to redistribute intermediate results during joins. However, the emergence of high-speed Remote Direct Memory Access (RDMA) networks, such as InfiniBand, has fundamentally altered this landscape. With bandwidth now approaching that of local memory buses, the bottleneck has shifted from bandwidth to access latency.
This paper presents I-Store, a prototype database system designed to exploit the capabilities of modern RDMA interconnects. By decoupling compute from storage and adopting a pipelined execution strategy, I-Store achieves significant performance gains over traditional shuffle-based models.
The Network-Attached-Memory (NAM) Architecture
A core innovation of I-Store is the Network-Attached-Memory (NAM) architecture. Unlike traditional shared-nothing systems where data is tied to specific compute nodes, NAM logically separates compute servers from memory servers.
In this model, memory servers act as a shared pool of data. Compute servers can access any data block directly using one-sided RDMA operations, which bypass the CPU on the storage side. This decoupling provides two major benefits:
- Elasticity: Compute and memory resources can be scaled independently based on workload demands.
- Reduced Overhead: One-sided RDMA reads minimize CPU utilization on memory servers, allowing them to focus entirely on serving data.
Distributed Pipelined Execution
To address the latency bottleneck, I-Store replaces the classic shuffle-based execution with a distributed pipelined approach. This strategy is supported by two key techniques: multi-way partitioning and RDMA-optimized streaming.
Multi-way Partitioning
Rather than partitioning a table by a single key, I-Store partitions tables across all potential join keys. This multi-way partitioning scheme allows compute servers to identify and fetch only the specific data blocks required for a query at runtime, effectively "pulling" data rather than having it "pushed" via a shuffle.
Pipelined Query Plans
Instead of materializing intermediate results and shuffling them between operators, I-Store compute servers stream data from memory servers. By partially replicating data during this streaming phase, each compute server can execute a complex multi-way join locally and in a fully pipelined manner.
To further optimize this process, I-Store utilizes RDMA Multicast. While standard RDMA reads can suffer from throughput degradation when multiple nodes request the same data, multicast allows a memory server to send a block once to a network switch, which then replicates it to all target compute nodes. This ensures consistent throughput regardless of the number of compute servers involved.
Performance Evaluation
The authors evaluated I-Store using the Star Schema Benchmark (SSB) at Scale Factor 100, comparing it against a state-of-the-art RDMA-optimized radix join (a shuffle-based approach).
The results demonstrate a 3x speedup for complex analytical queries involving three or four joins. While performance for simple binary joins was comparable between the two models, I-Store’s advantage grew significantly as query complexity increased. This is because I-Store avoids the cumulative latency penalties associated with multiple shuffle phases in traditional architectures.
Additionally, the system employs grouped pointer pre-fetching. By requesting the next set of data blocks while processing the current ones, I-Store can effectively hide network latency, resulting in significant throughput improvement for data scans.
Conclusion and Future Work
I-Store demonstrates that in the era of high-speed networks, prioritizing low latency over bandwidth conservation is a winning strategy. By rethinking the fundamental execution model of distributed databases, the authors show that a decoupled, pipelined architecture can significantly outperform traditional shared-nothing designs.
Future work for I-Store includes expanding query support beyond SPJA (Select-Project-Join-Aggregate) equi-joins and investigating the performance of the NAM architecture for joins between multiple very large tables. The authors also plan to refine load-balancing heuristics to better handle data skew in highly dynamic environments.
Summary updated