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

Presto中的元数据缓存:实现快速数据处理

Metadata Caching in Presto: Towards Fast Data Processing

Beinan Wang, Chunxu Tang, Rongrong Zhong, Bin Fan, Yi Wang, Jasmine Wang, Shouwei Chen, Bowen Ding, Lu Zhang

摘要:

Presto是一个用于OLAP的开源分布式SQL查询引擎,旨在实现“SQL on everything”。自2013年开源以来,Presto一直在大规模数据分析中受到欢迎,并吸引了众多企业的采用。从Presto的开发和运行来看,我们目睹了Presto工作节点中解析面向列的数据文件的大量CPU消耗。这阻碍了包括Meta在内的一些公司增加分析数据量。在本文中,我们提出了一个元数据缓存层,建立在Alluxio SDK缓存之上,并合并在每个Presto工作节点中,以缓存文件解析中的中间结果。元数据缓存提供了两种缓存方法:缓存来自原始数据文件的解压缩元数据字节和缓存已格式化的元数据对象。我们对Presto上的TPC-DS基准测试的评估表明,当缓存是热的时,第一种方法可以将查询的CPU消耗减少10%-20%,而第二种方法可以将CPU使用量减少20%-40%。

英文摘要:

Presto is an open-source distributed SQL query engine for OLAP, aiming for "SQL on everything". Since open-sourced in 2013, Presto has been consistently gaining popularity in large-scale data analytics and attracting adoption from a wide range of enterprises. From the development and operation of Presto, we witnessed a significant amount of CPU consumption on parsing column-oriented data files in Presto worker nodes. This blocks some companies, including Meta, from increasing analytical data volumes. In this paper, we present a metadata caching layer, built on top of the Alluxio SDK cache and incorporated in each Presto worker node, to cache the intermediate results in file parsing. The metadata cache provides two caching methods: caching the decompressed metadata bytes from raw data files and caching the deserialized metadata objects. Our evaluation of the TPC-DS benchmark on Presto demonstrates that when the cache is warm, the first method can reduce the query's CPU consumption by 10%-20%, whereas the second method can minimize the CPU usage by 20%-40%.

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

↑