arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1804.10563cs.PF
收藏

多阶段并行大数据框架的中间数据缓存优化

Intermediate Data Caching Optimization for Multi-Stage and Parallel Big Data Frameworks

Zhengyu Yang, Danlin Jia, Stratis Ioannidis, Ningfang Mi, Bo Sheng

摘要:

在大数据和云计算时代,大量数据从用户应用程序中产生,需要在数据中心进行处理。数据并行计算框架,例如Apache Spark,被广泛用于大规模执行这种数据处理。具体来说,Spark利用分布式内存来缓存中间结果,表示为弹性分布式数据集(RDD)。这使得Spark在迭代机器学习和数据采掘算法的实现上比其他并行框架更有优势,因为它避免了重复计算或硬盘访问来检索RDD。默认情况下,缓存决策由程序员自行决定,LRU策略用于在缓存已满时驱逐RDD。然而,当目标是最小化总工作量时,LRU严重不足,导致任意次优缓存决策。本文设计了一种多阶段大数据处理平台自适应确定和缓存最有价值的中间数据集的算法,这些中间数据集可以在未来重用。我们的解决方案自动决定缓存哪些RDD:这相当于在直接非循环图(DAG)中识别节点,表示其输出应在内存中持久化的计算。我们的实验结果表明,我们提出的缓存优化解决方案可以提高Spark上的机器学习应用程序的性能,减少了12%的重新计算RDD的总工作量。

英文摘要:

In the era of big data and cloud computing, large amounts of data are generated from user applications and need to be processed in the datacenter. Data-parallel computing frameworks, such as Apache Spark, are widely used to perform such data processing at scale. Specifically, Spark leverages distributed memory to cache the intermediate results, represented as Resilient Distributed Datasets (RDDs). This gives Spark an advantage over other parallel frameworks for implementations of iterative machine learning and data mining algorithms, by avoiding repeated computation or hard disk accesses to retrieve RDDs. By default, caching decisions are left at the programmer's discretion, and the LRU policy is used for evicting RDDs when the cache is full. However, when the objective is to minimize total work, LRU is woefully inadequate, leading to arbitrarily suboptimal caching decisions. In this paper, we design an algorithm for multi-stage big data processing platforms to adaptively determine and cache the most valuable intermediate datasets that can be reused in the future. Our solution automates the decision of which RDDs to cache: this amounts to identifying nodes in a direct acyclic graph (DAG) representing computations whose outputs should persist in the memory. Our experiment results show that our proposed cache optimization solution can improve the performance of machine learning applications on Spark decreasing the total work to recompute RDDs by 12%.

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

↑