云数据库系统的双通道网络范式
The Bi-Channel Networking Paradigm for Database Systems in the Cloud
AI总结:
针对现代高速云网络中内核TCP栈成为数据库性能瓶颈的问题,提出双通道网络范式,将通信分离为高性能数据路径和可靠控制路径,结合用户空间UDP与内核TCP,在分布式shuffle和复制键值存储中实现高吞吐与低开销。
摘要:
当网络链路速度较慢时,云和分布式数据库系统可以依赖通用的内核抽象,并将网络通信视为黑盒。在当今快速云网络下,这种方法失效了:数据库性能受到内核TCP栈CPU开销的限制。用用户空间UDP替换TCP可以减少这种开销,但需要重新实现基本保证,如可靠性和有序性。为解决这一难题,数据库系统不应再将网络视为黑盒,而应将其与数据库操作协同设计。我们提出了数据库系统的双通道范式,将通信分为两个通道:一个用于延迟和带宽敏感操作的高性能数据路径,以及一个用于协调和恢复的可靠控制路径。我们通过结合用户空间UDP和基于内核的TCP来实现该范式,尽管其他协议栈组合也是可能的。这种设计利用了现代NIC的能力,同时保留了TCP的可靠性。我们在两个代表性场景中展示了该范式的效率和简洁性:一个分布式shuffle用三个CPU核饱和200 Gbit/s,以及一个每秒处理数百万条消息的复制键值存储。
英文摘要:
When network links were slow, cloud and distributed database systems could rely on generic kernel abstractions and treat network communication as a black box. With today's fast cloud networks, this approach breaks down: database performance becomes limited by the CPU overhead of the kernel TCP stack. Replacing TCP with user-space UDP can reduce this overhead, but it requires reimplementing essential guarantees, such as reliability and ordering. To solve this conundrum, database systems should no longer treat networking as a black box but co-design it with database operations. We propose the bi-channel paradigm for database systems, which separates communication into two channels: A high-performance data path for latency- and bandwidth-sensitive operations, and a reliable control path for coordination and recovery. We implement the paradigm by combining user-space UDP and kernel-based TCP, though other stack combinations are possible. This design exploits modern NIC capabilities while preserving TCP's reliability. We demonstrate the paradigm's efficiency and simplicity in two representative settings: a distributed shuffle saturating 200 Gbit/s with three CPU cores, and a replicated key-value store processing millions of messages per second.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。