arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1703.09542cs.DC
收藏

Palgol:一个用于点中心图处理的高级DSL

Palgol: A High-Level DSL for Vertex-Centric Graph Processing with Remote Data Access

Yongzhe Zhang, Hsiang-Shang Ko, Zhenjiang Hu

摘要:

Pregel是一种流行的处理大规模图的分布式计算模型。然而,在Pregel的以顶点为中心的模型中正确有效地实现图算法可能很棘手,特别是当算法具有多个计算阶段,复杂的数据依赖关系,甚至是通过动态内部数据结构进行通信时。一些领域特定语言(DSL)已经被提出来提供更直观的方法来实现图算法,但是由于缺乏对远程访问的支持--通过引用读取或写入其他顶点的属性--它们不能处理上述动态通信,导致一类快速收敛的Pregel算法无法实现。为了解决这个问题,我们设计并实现了Palgol,一个更具声明性和功能强大的DSL,支持远程访问。特别是,程序员可以使用一种称为链访问的更具声明性的语法来自然地指定动态通信,就像直接读取任意远程顶点上的数据一样。通过分析链存取的逻辑模式,我们提供了一个新的算法编译Palgol程序的有效Pregel代码。通过使用Palgol实现几个实际的Pregel算法,我们证明了Palgol的强大功能,评估结果表明Palgol的效率与手写代码相当。

英文摘要:

Pregel is a popular distributed computing model for dealing with large-scale graphs. However, it can be tricky to implement graph algorithms correctly and efficiently in Pregel's vertex-centric model, especially when the algorithm has multiple computation stages, complicated data dependencies, or even communication over dynamic internal data structures. Some domain-specific languages (DSLs) have been proposed to provide more intuitive ways to implement graph algorithms, but due to the lack of support for remote access --- reading or writing attributes of other vertices through references --- they cannot handle the above mentioned dynamic communication, causing a class of Pregel algorithms with fast convergence impossible to implement. To address this problem, we design and implement Palgol, a more declarative and powerful DSL which supports remote access. In particular, programmers can use a more declarative syntax called chain access to naturally specify dynamic communication as if directly reading data on arbitrary remote vertices. By analyzing the logic patterns of chain access, we provide a novel algorithm for compiling Palgol programs to efficient Pregel code. We demonstrate the power of Palgol by using it to implement several practical Pregel algorithms, and the evaluation result shows that the efficiency of Palgol is comparable with that of hand-written code.

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

↑