中国民航大学学报 ›› 2021, Vol. 39 ›› Issue (6): 14-19.

• 民用航空 • 上一篇    下一篇

异构环境下 Spark 动态资源调度策略研究

吴仁彪,刘 备,贾云飞   

  1. (中国民航大学天津市智能信号与图像处理重点实验室,天津 300300) 
  • 收稿日期:2021-03-03 修回日期:2021-03-03 接受日期:2021-01-22 出版日期:2021-12-01 发布日期:2022-06-05
  • 作者简介:吴仁彪(1966—),男,湖北武汉人,教授,博士,研究方向为自适应信号处理,现代信号谱分析及其在雷达、卫星导航、空管中的应用.

Research of Spark dynamic resource scheduling strategy in heterogeneous environment

WU Renbiao, LIU Bei, JIA Yunfei   

  1. (Intelligent Signal and Image Processing Key Lab of Tianjin, Civil Aviation University of China, Tianjin 300300, China) 
  • Received:2021-03-03 Revised:2021-03-03 Accepted:2021-01-22 Online:2021-12-01 Published:2022-06-05

摘要: 针对 Spark 未考虑异构集群节点间的性能差异,导致多作业场景下节点负载不均衡、作业执行效率低的 问题,提出一种基于异构集群节点负载的 Spark 动态资源调度策略。 根据节点静态负载和运行时的动态负 载信息建立异构集群节点负载评价指标,获取集群运行时节点的实时负载;改进 Spark 默认资源管理器 Standalone 在资源分配时的节点排序规则;最终实现基于异构集群节点负载的动态资源调度策略。 实验结 果表明,与默认调度策略相比,该策略评价指标适用性更好,有效缓解了集群的负载失衡问题,提高了作业 执行效率。

关键词: Spark, 异构集群, 负载均衡, 资源调度, Standalone

Abstract: Aiming at the problem that the Spark does not consider the performance differences of nodes under heterogeneous cluster, which leads to unbalanced node load in multi-job scenarios and reduces job execution efficiency, a Spark dynamic resource scheduling strategy based on the load of heterogeneous cluster nodes is proposed. First, according to the static and dynamic load information of the node at runtime, the heterogeneous cluster nodes load evaluation index is established to obtain the real -time load of the node during cluster operation. Then, the resource manager Standalone of Spark is modified to improve the sequencing strategy. Finally, the dynamic resource scheduling strategy based on heterogeneous cluster node load is implemented. The experimental results show that compared with the default scheduling strategy,the proposed strategy effectively mitigate the load unbalanceness among heterogeneous cluster nodes and improves the job execution efficiency.

Key words: Spark, heterogeneous cluster, load balancing, resource scheduling, Standalone

中图分类号: