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

采用最坏情况最优连接的大规模分布式Datalog

Distributed Datalog at Scale with Worst-Case Optimal Joins

University of Illinois Chicago(伊利诺伊大学芝加哥分校);Syracuse University(雪城大学);Washington State University(华盛顿州立大学)

Kunting Qi, Yihao Sun, Kristopher Micinski, Thomas Gilray, Sidharth Kumar

AI总结:

该研究提出首个采用最坏情况最优连接(WCOJ)的分布式内存Datalog引擎,基于HyperCube分区设计,在超级计算机基准测试中展现强可扩展性,性能优于多数现有Datalog引擎。

摘要:

可扩展的基于逻辑的分析任务通常由大型关系数据集上的循环多路连接主导。最先进的系统通过二元连接链来评估这些连接,由于必须在网络间物化和重新分发的大型中间关系会产生大量开销。最坏情况最优连接(WCOJ)提供了一种经证明更优的替代方案,它通过一次评估一个变量来消除中间关系的爆炸式增长。然而,现有的WCOJ实现要么针对共享内存机器,要么针对数据流和大数据平台上的一次性非递归查询,而基于WCOJ的分布式内存HPC系统上的递归评估仍是一个未解决的问题。我们提出了据我们所知首个使用WCOJ进行递归不动点评估的分布式内存Datalog引擎。我们的设计基于HyperCube分区,该方法沿变量对齐的网格维度对关系进行哈希分区,并沿缺失维度进行复制,将其从单次混洗扩展到迭代执行:在每次半朴素迭代中,仅对新派生的元组进行重新分区和重新复制,使用MPI全对全集合操作以及子域通信器上的按维度全收集操作,同时在各迭代中复用相同的布局,以确保所有WCOJ交集保持在进程本地。我们在阿贡国家实验室的Aurora和Polaris领导级超级计算机上使用图挖掘和程序分析基准测试对系统进行评估,展现出强大的可扩展性,在大多数基准测试中优于最先进的Datalog引擎,并刻画了分区维度如何在运行时与内存可行性之间进行权衡。

英文摘要:

Scalable logic-based analytics are frequently dominated by cyclic multi-way joins over large relational datasets. State-of-the-art systems evaluate these joins through chains of binary joins, incurring substantial overhead from large intermediate relations that must be materialized and redistributed across the network. Worst-Case Optimal Joins (WCOJ) offer a provably superior alternative by evaluating joins one variable at a time, eliminating intermediate blowup. However, existing WCOJ implementations target either shared-memory machines or one-shot, non-recursive queries on dataflow and big-data platforms, leaving WCOJ-based recursive evaluation on distributed-memory HPC systems an open problem. We present, to our knowledge, the first distributed-memory Datalog engine that uses WCOJ for recursive fixpoint evaluation. Our design builds on HyperCube partitioning, which hash-partitions relations along variable-aligned grid dimensions and replicates them along missing dimensions, and extends it from a single shuffle to iterative execution: in every semi-naive iteration, only newly derived tuples are repartitioned and re-replicated, using MPI all-to-all collectives and per-dimension all-gathers over subcube communicators, while the same layout is reused across iterations so that all WCOJ intersections remain rank-local. We evaluate our system on the Aurora and Polaris leadership-class supercomputers at Argonne National Laboratory using graph mining and program analysis benchmarks, demonstrating strong scalability, outperforming state-of-the-art Datalog engines on most benchmarks, and characterizing how partition dimensionality trades runtime against memory feasibility.

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

↑