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

基于图划分的分布式数据放置

Distributed Data Placement via Graph Partitioning

Lukasz Golab, Marios Hadjieleftheriou, Howard Karloff, Barna Saha

摘要:

随着无共享服务器集群的广泛使用,分布式对象存储的激增,为MapReduce风格的工作负载提供了高可用性,可靠性和增强的性能。然而,如果不进行大量的数据迁移,就不能始终使用MapReduce有效地评估关系工作负载,这会导致网络拥塞和查询吞吐量降低。我们研究的问题,计算数据放置策略,最大限度地减少数据通信成本所产生的典型的关系查询工作负载在分布式环境中。我们的主要贡献是减少的数据放置问题的充分研究的问题{ \sc图分区},这是NP-难,但有效的近似算法存在。这一结果的新颖性和意义在于准确地表示通信成本,并使用标准图而不是超图,超图用于先前针对不同目标(而不是通信成本)进行优化的数据放置工作。我们研究了几个实际的扩展问题:负载均衡,复制,与物化视图,并与复杂的查询计划组成的序列的中间操作,可以计算在不同的服务器上。我们提供整数线性规划(IP),可以与任何IP求解器一起使用,以找到最佳的数据放置。对于无复制的情况,我们使用公共可用的图分区库(例如,METIS)来有效地计算近似最优解。对于具有复制的版本,我们引入了两种启发式方法,它们利用无复制情况的{ \sc图形分区}解决方案。使用TPC-DS工作负载,IP求解器可能需要数周时间来计算最佳数据放置,而我们的简化在几秒钟内就可以产生接近最佳的解决方案。

英文摘要:

With the widespread use of shared-nothing clusters of servers, there has been a proliferation of distributed object stores that offer high availability, reliability and enhanced performance for MapReduce-style workloads. However, relational workloads cannot always be evaluated efficiently using MapReduce without extensive data migrations, which cause network congestion and reduced query throughput. We study the problem of computing data placement strategies that minimize the data communication costs incurred by typical relational query workloads in a distributed setting. Our main contribution is a reduction of the data placement problem to the well-studied problem of {\sc Graph Partitioning}, which is NP-Hard but for which efficient approximation algorithms exist. The novelty and significance of this result lie in representing the communication cost exactly and using standard graphs instead of hypergraphs, which were used in prior work on data placement that optimized for different objectives (not communication cost). We study several practical extensions of the problem: with load balancing, with replication, with materialized views, and with complex query plans consisting of sequences of intermediate operations that may be computed on different servers. We provide integer linear programs (IPs) that may be used with any IP solver to find an optimal data placement. For the no-replication case, we use publicly available graph partitioning libraries (e.g., METIS) to efficiently compute nearly-optimal solutions. For the versions with replication, we introduce two heuristics that utilize the {\sc Graph Partitioning} solution of the no-replication case. Using the TPC-DS workload, it may take an IP solver weeks to compute an optimal data placement, whereas our reduction produces nearly-optimal solutions in seconds.

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

↑