arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.01901cs.DCcs.AI
收藏

面向Spark的通用高效在线调优

Towards General and Efficient Online Tuning for Spark

Tencent Inc.(腾讯公司);Peking University(北京大学);Mila - Québec AI Institute(米拉-魁北克人工智能研究所);ETH Zürich(苏黎世联邦理工学院)

Yang Li, Huaijun Jiang, Yu Shen, Yide Fang, Xiaofeng Yang, Danqing Huang, Xinyi Zhang, Wentao Zhang, Ce Zhang, Peng Chen, Bin Cui

AI总结:

提出一种通用高效的Spark在线调优框架,通过广义调优公式、在线评估和安全配置获取,结合自适应子空间、近似梯度下降和元学习加速搜索,在腾讯生产任务中显著节省内存和CPU成本。

摘要:

分布式数据分析系统Spark是处理大规模异构数据的常见选择,然而调整其参数以实现高性能颇具挑战。近期研究尝试采用自动调优技术来解决此问题,但面临三个问题:功能有限、开销高、搜索效率低。本文提出一个通用且高效的Spark调优框架,可同时解决这三个问题。首先,我们引入一个广义调优公式,能方便地支持多种调优目标和约束,并基于贝叶斯优化(BO)提出解决方案以求解该广义优化问题。其次,为避免现有方法中额外离线评估带来的高开销,我们提出在实际周期性执行每个作业的同时进行参数调优(即在线评估)。为确保在线作业执行期间的安全性,我们设计了一种对安全区域建模的安全配置获取方法。最后,利用三项创新技术进一步加速搜索过程:自适应子空间生成、近似梯度下降和元学习方法。我们已将该框架实现为独立云服务,并应用于腾讯的数据平台。在公共基准和大规模生产任务上的实证结果证明了其在实用性、通用性和效率方面的优越性。值得注意的是,该服务在20次迭代内为25K个生产任务平均节省了57.00%的内存成本和34.93%的CPU成本。

英文摘要:

The distributed data analytic system -- Spark is a common choice for processing massive volumes of heterogeneous data, while it is challenging to tune its parameters to achieve high performance. Recent studies try to employ auto-tuning techniques to solve this problem but suffer from three issues: limited functionality, high overhead, and inefficient search. In this paper, we present a general and efficient Spark tuning framework that can deal with the three issues simultaneously. First, we introduce a generalized tuning formulation, which can support multiple tuning goals and constraints conveniently, and a Bayesian optimization (BO) based solution to solve this generalized optimization problem. Second, to avoid high overhead from additional offline evaluations in existing methods, we propose to tune parameters along with the actual periodic executions of each job (i.e., online evaluations). To ensure safety during online job executions, we design a safe configuration acquisition method that models the safe region. Finally, three innovative techniques are leveraged to further accelerate the search process: adaptive sub-space generation, approximate gradient descent, and meta-learning method. We have implemented this framework as an independent cloud service, and applied it to the data platform in Tencent. The empirical results on both public benchmarks and large-scale production tasks demonstrate its superiority in terms of practicality, generality, and efficiency. Notably, this service saves an average of 57.00% memory cost and 34.93% CPU cost on 25K in-production tasks within 20 iterations, respectively.

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

↑