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

查询和资源优化:打破大数据系统中的壁垒

Query and Resource Optimizations: A Case for Breaking the Wall in Big Data Systems

Alekh Jindal, Lalitha Viswanathan, Konstantinos Karanasos

摘要:

现代大数据系统在云环境中运行,其中资源在多个用户和应用程序之间共享。因此,这些环境中的声明性用户查询需要在不断变化的资源上进行优化和执行,并按需为每个作业提供。这就要求我们重新思考为运行在专用资源上的系统设计的传统查询优化器。在本文中,我们证明了查询计划的选择在很大程度上取决于可用的资源,目前的做法,选择查询计划之前挑选的资源可能会导致显着的性能损失,在两个流行的大数据系统,即蜂巢和SparkSQL。因此,我们提出了资源和查询优化(或RAQO)的理由,即,同时选择查询计划和资源配置。我们描述了基于规则的RAQO,并提出了替代决策树,使资源感知的查询规划在蜂巢和火花。我们进一步提出了基于成本的RAQO,在一个查询规划器集成资源规划,并显示技术,以显着减少资源规划的开销。我们评估基于成本的RAQO使用国家的最先进的R系统查询规划器,以及最近提出的多目标查询规划器。我们对TPC-H和随机生成模式的评估表明:(i)我们可以将资源规划开销减少多达16倍,(ii)RAQO可以扩展到100个表连接的模式以及100 K容器的集群,每个容器100 GB。

英文摘要:

Modern big data systems run on cloud environments where resources are shared amongst several users and applications. As a result, declarative user queries in these environments need to be optimized and executed over resources that constantly change and are provisioned on demand for each job. This requires us to rethink traditional query optimizers designed for systems that run on dedicated resources. In this paper, we show evidence that the choice of query plans depends heavily on the available resources, and the current practice of choosing query plans before picking the resources could lead to significant performance loss in two popular big data systems, namely Hive and SparkSQL. Therefore, we make a case for Resource and Query Optimization (or RAQO), i.e., choosing both the query plan and the resource configuration at the same time. We describe rule-based RAQO and present alternate decisions trees to make resource-aware query planning in Hive and Spark. We further present cost-based RAQO that integrates resource planning within a query planner, and show techniques to significantly reduce the resource planning overheads. We evaluate cost-based RAQO using state-of-the-art System R query planner as well as a recently proposed multi-objective query planner. Our evaluation on TPC-H and randomly generated schemas show that: (i) we can reduce the resource planning overhead by up to 16x, and (ii) RAQO can scale to schemas as large as 100 table joins as well as clusters as big as 100K containers with 100GB each.

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

↑