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

超大型RDF数据的自适应划分

Adaptive Partitioning for Very Large RDF Data

Razen Harbi, Ibrahim Abdelaziz, Panos Kalnis, Nikos Mamoulis, Yasser Ebrahim, Majed Sahli

摘要:

分布式RDF系统跨多个计算机节点(工作者)划分数据。一些系统执行廉价的散列分区,这可能会导致昂贵的查询评估,而另一些系统则应用旨在最大限度地减少查询评估期间的节点间通信的算法。这需要一个昂贵的数据预处理阶段,导致非常大的RDF知识库的启动成本很高。查询工作负载的先验知识也被用来创建分区,但是分区是静态的,不适应工作负载的变化;因此,对于初始数据分区不支持的查询,节点间通信无法始终避免。在本文中,我们提出了AdHash,分布式RDF系统,它解决了以前的工作的缺点。首先,AdHash在初始数据上应用轻量级分区,通过对主题进行散列来分配三元组;这使得其启动开销很低。与此同时,AdHash的本地感知查询优化器充分利用分区来(i)支持对主题上的连接模式进行完全并行处理,以及(ii)尽可能通过应用中间结果的散列分布而不是广播来最大限度地减少一般查询的数据通信。其次,AdHash监控数据访问模式,并动态地重新分配和复制工作者之间最频繁的实例。因此,未来查询的通信成本大大降低甚至消除。为了控制复制,AdHash为重新分发的模式实现了驱逐策略。我们对合成数据和真实数据的实验验证了AdHash(i)比所有现有系统启动更快,(ii)在其他系统上线之前处理数千个查询,(iii)优雅地适应查询负载,能够在亚秒内评估十亿级RDF数据的查询。

英文摘要:

Distributed RDF systems partition data across multiple computer nodes (workers). Some systems perform cheap hash partitioning, which may result in expensive query evaluation, while others apply heuristics aiming at minimizing inter-node communication during query evaluation. This requires an expensive data preprocessing phase, leading to high startup costs for very large RDF knowledge bases. Apriori knowledge of the query workload has also been used to create partitions, which however are static and do not adapt to workload changes; hence, inter-node communication cannot be consistently avoided for queries that are not favored by the initial data partitioning. In this paper, we propose AdHash, a distributed RDF system, which addresses the shortcomings of previous work. First, AdHash applies lightweight partitioning on the initial data, that distributes triples by hashing on their subjects; this renders its startup overhead low. At the same time, the locality-aware query optimizer of AdHash takes full advantage of the partitioning to (i)support the fully parallel processing of join patterns on subjects and (ii) minimize data communication for general queries by applying hash distribution of intermediate results instead of broadcasting, wherever possible. Second, AdHash monitors the data access patterns and dynamically redistributes and replicates the instances of the most frequent ones among workers. As a result, the communication cost for future queries is drastically reduced or even eliminated. To control replication, AdHash implements an eviction policy for the redistributed patterns. Our experiments with synthetic and real data verify that AdHash (i) starts faster than all existing systems, (ii) processes thousands of queries before other systems become online, and (iii) gracefully adapts to the query load, being able to evaluate queries on billion-scale RDF data in sub-seconds.

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

↑