Hadoop负载树任务调度算法

2018-02-12 12:24:56朱洁顾烨君柳飞李思成刘瑞
软件导刊 2018年12期

朱洁 顾烨君 柳飞 李思成 刘瑞

摘要:针对现有异构任务调度算法存在负载不均衡、数据本地性问题,提出基于树结构的负载树任务调度算法。该算法通过量化节点计算能力构造节点集最小堆,利用堆排序生成计算能力逆序树,并依据节点负载率将逆序树调整为左节点优先的负载树,为任务计算包含完成时间、负载率、延迟因子的决策值,最终完成任务与树节点的匹配。实验结果表明,取不同负载率与延迟权值比时,该算法的任务执行效率均能获得一定程度提高。该算法可利用树结构的调度优势,在获得更高集群负载均衡度时,有效缩短作业集执行时间。

关键词:Hadoop;负载树;任务调度;负载均衡;数据本地性

Hadoop Load Tree Task Scheduling Algorithm

ZHU Jie1,2, GU Ye jun LIU Fei LI Si cheng LIU Rui 1

(1.School of Information Engineering, Nanjing Xiaozhuang University;

2.Key Laboratory of Trusted Cloud Computing and Big Data Analysis, Nanjing 211171, China)

Abstract:Aiming at the problems of the load imbalance and data locality of existing heterogeneous tasks scheduling algorithm, an load tree task scheduling algorithm was proposed. Firstly, the computation capacities of nodes were calculated to build the minimum heap of the node set. The reverse tree was constructed after heap sort. Secondly, the reverse tree was adjusted to the left node preferential load tree through the load rate of nodes. Finally, the decision values of nodes consist of complete time factor, load rate factor and delay factor were calculated to match tasks and nodes. The experimental results showed that the tasks execution efficiency of the proposed algorithm was improved when different factor proportions of load rate and delay were defined. The proposed algorithm can utilize the scheduling advantage of the tree structure and reduce the job set execution time effectively while achieving the higher cluster load balance degree.

Key Words:Hadoop; load tree; task scheduling; load balance; data locality

0 引言

Hadoop分布式計算平台因其可靠、高效而广泛应用于大数据处理。MapReduce是其实现分布式处理的计算模型,其中任务调度算法为作业任务匹配计算资源,通过获得更短作业集执行时间提升平台计算性能。传统的先来先服务调度算法[1 2]、容量调度算法[3]与公平调度算法[4 5]及其改进主要应用于同构集群环境[6 7]。随着集群应用发展,节点间配置差异使同构前提不再成立,设计适应异构环境的调度算法成为必要。针对异构环境的推测式执行机制通过为进度落后任务启用备份任务以缩短任务执行时间,但其节点速度、任务进度恒定假设并不符合实际异构环境[8 9]。在此基础上,改进最长近似结束时间(Longest Approximate Time to End,LATE)算法[10],定义备份任务数、慢节点与慢任务阈值,通过在出现资源空闲的快节点上启用备份任务,有效缩短了落后任务的执行时间。……

登录APP查看全文