arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.05405cs.DB
收藏

Bala-Join:一种适应性哈希连接算法,用于在地理分布式SQL数据库中平衡通信与计算

Bala-Join: An Adaptive Hash Join for Balancing Communication and Computation in Geo-Distributed SQL Databases

Yunxi Technology Company Ltd.(云犀科技有限公司);Shandong Inspur Database Technology Company Ltd.(山东浪潮数据库技术有限公司)

Wenlong Song, Hui Li, Bingying Zhai, Jinxin Yang, Pinghui Wang, Luming Sun, Ming Li, Jiangtao Cui

AI总结:

Bala-Join通过平衡分区和部分复制算法及偏斜连接键检测器,优化地理分布式SQL数据库中哈希连接的通信与计算负载,提升吞吐量25%-61%。

摘要:

共享无主机的地理分布式SQL数据库,如CockroachDB,日益成为企业应用中需要数据可靠性和本地性的重要工具。然而,我们发现客户侧存在显著的性能下降,尤其是在他们的部署跨越多个数据中心并通过广域网(WAN)连接时。我们的研究发现分布式哈希连接(Dist-HJ)算法的瓶颈在于通信开销和计算负载之间的关键平衡。当处理现实世界客户工作负载中的偏斜数据时,这种平衡被严重破坏,导致观察到的性能下降。为了解决这一挑战,我们引入了Bala-Join,一种适应性解决方案,用于在Dist-HJ执行中平衡计算和网络负载。我们的方法包括平衡分区和部分复制(BPPR)算法和一个分布式在线偏斜连接键检测器。前者通过多播机制实现偏斜数据的平衡重分布,以提高计算性能并减少网络开销。后者提供针对BPPR定制的实时偏斜连接键信息。此外,还集成了主动信号和异步拉取(ASAP)机制,以实现检测器和重分布过程之间高效的实时同步,同时保持最小的开销。实证研究表明,Bala-Join在Dist-HJ解决方案中表现优异,吞吐量提高了25%-61%。

英文摘要:

Shared-nothing geo-distributed SQL databases, such as CockroachDB, are increasingly vital for enterprise applications requiring data resilience and locality. However, we encountered significant performance degradation at the customer side, especially when their deployments span multiple data centers over a Wide Area Network (WAN). Our investigation identifies the bottleneck in the performance of the Distributed Hash Join (Dist-HJ) algorithm, which is contingent upon a crucial balance between communication overhead and computational load. This balance is severely disrupted when processing skewed data from real-world customer workloads, leading to the observed performance decline. To tackle this challenge, we introduce Bala-Join, an adaptive solution to balance the computation and network load in Dist-HJ execution. Our approach consists of the Balanced Partition and Partial Replication (BPPR) algorithm and a distributed online skewed join key detector. The former achieves balanced redistribution of skewed data through a multicast mechanism to improve computational performance and reduce network overhead. The latter provides real-time skewed join key information tailored to BPPR. Furthermore, an Active-Signaling and Asynchronous-Pulling (ASAP) mechanism is incorporated to enable efficient, real-time synchronization between the detector and the redistribution process with minimal overhead. Empirical study shows that Bala-Join outperforms the popular Dist-HJ solutions, increasing throughput by 25%-61%.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑