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

支付一个,免费获得数百个:通过共享查询执行降低云成本

Pay One, Get Hundreds for Free: Reducing Cloud Costs through Shared Query Execution

Renato Marroquín, Ingo Müller, Darko Makreshanski, Gustavo Alonso

摘要:

基于云的数据分析是目前的常见做法,因为系统管理开销较低,以及按需付费的定价模式。然而,定价模型并不总是适合查询处理,因为大量使用会导致高成本。例如,在查询即服务系统中,按处理的字节向用户收费,频繁访问相同数据的查询集合可能会变得昂贵。当使用声明性接口(如SQL)时,用户优化查询执行的选项有限,这使得问题更加复杂。在本文中,我们展示了如何,而不修改现有的系统,没有云提供商的参与,它是可以显着降低开销,因此成本,查询即服务系统。我们的方法是基于查询重写,使多个并发查询合并成一个单一的查询。我们的实验表明,共享执行所做的工作总量小于一次查询的方法。由于查询是按处理的字节收费的,因此执行一组查询的成本通常与执行其中一个查询的成本相同。作为一个例子,我们演示了如何在Amazon Athena和Google BigQuery中共享执行TPC-H基准测试,比使用一次查询方法便宜100倍和16倍,同时实现更高的吞吐量。

英文摘要:

Cloud-based data analysis is nowadays common practice because of the lower system management overhead as well as the pay-as-you-go pricing model. The pricing model, however, is not always suitable for query processing as heavy use results in high costs. For example, in query-as-a-service systems, where users are charged per processed byte, collections of queries accessing the same data frequently can become expensive. The problem is compounded by the limited options for the user to optimize query execution when using declarative interfaces such as SQL. In this paper, we show how, without modifying existing systems and without the involvement of the cloud provider, it is possible to significantly reduce the overhead, and hence the cost, of query-as-a-service systems. Our approach is based on query rewriting so that multiple concurrent queries are combined into a single query. Our experiments show the aggregated amount of work done by the shared execution is smaller than in a query-at-a-time approach. Since queries are charged per byte processed, the cost of executing a group of queries is often the same as executing a single one of them. As an example, we demonstrate how the shared execution of the TPC-H benchmark is up to 100x and 16x cheaper in Amazon Athena and Google BigQuery than using a query-at-a-time approach while achieving a higher throughput.

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

↑