an improved ant algorithm for grid task scheduling strategy

8
Physics Procedia 24 (2012) 1974 – 1981 1875-3892 © 2011 Published by Elsevier B.V. Selection and/or peer-review under responsibility of ICAPIE Organization Committee. doi:10.1016/j.phpro.2012.02.290 2012 International Conference on Applied Physics and Industrial Engineering An Improved Ant Algorithm for Grid Task Scheduling Strategy Laizhi Wei,Xiaobin Zhang, Yun Li ,Yujie Li Institute of Information Engineering Yangzhou University Yangzhou 225009, China Abstract Task scheduling is an important factor that directly influences the performance and efficiency of the system. Grid resources are usually distributed in different geographic locations, belonging to different organizations and resources' properties are vastly different, in order to complete efficiently, intelligently task scheduling, the choice of scheduling strategy is essential. This paper proposes an improved ant algorithm for grid task scheduling strategy, by introducing a new type pheromone and a new node redistribution selection rule. On the one hand, the algorithm can track performances of resources and tag it. On the other hand, add algorithm to deal with task scheduling unsuccessful situations that improve the algorithm's robustness and the successful probability of task allocation and reduce unnecessary overhead of system, shortening the total time to complete tasks. The data obtained from simulation experiment shows that use this algorithm to resolve schedule problem better than traditional ant algorithm. © 2011 Published by Elsevier Ltd. Selection and/or peer-review under responsibility of [name organizer] Keywords:grid, task scheduling, ant colony algorithm 1. Introduction Over the years, Task scheduling as a key technology of grid computing has always been concerned greatly. Since 1990s, the first scheduling algorithm has emergenced, a number of algorithms are applied to the grid task scheduling[1][2], for examples, Random Load Balancing[3][5] Min-min[3][5] Greedy[3][5] GA[6][7] Simulated Annealing[8] Genetic Simulated Annealing[8] Tabu algorithm[7][9]A*[10] and Ant colony algorithm. In those applications, bionic optimization algorithms have increasingly became to solve the grid task scheduling's sharp tool, especially ant colony algorithm, because it has a good dynamic, distribution, parallelism, scalability, it has been appropriated for resolving grid task scheduling problem and became to solve NP-hard problems' new breakthrough. © 2011 Published by Elsevier B.V. Selection and/or peer-review under responsibility of ICAPIE Organization Committee.

Upload: laizhi-wei

Post on 11-Sep-2016

218 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: An Improved Ant Algorithm for Grid Task Scheduling Strategy

Physics Procedia 24 (2012) 1974 – 1981

1875-3892 © 2011 Published by Elsevier B.V. Selection and/or peer-review under responsibility of ICAPIE Organization Committee.doi:10.1016/j.phpro.2012.02.290

Available online at www.sciencedirect.com

PhysicsProcedia

Physics Procedia 00 (2011) 000–000

www.elsevier.com/locate/procedia

2012 International Conference on Applied Physics and Industrial Engineering

An Improved Ant Algorithm for Grid Task Scheduling Strategy

Laizhi Wei,Xiaobin Zhang, Yun Li ,Yujie Li Institute of Information Engineering

Yangzhou University Yangzhou 225009, China

Abstract

Task scheduling is an important factor that directly influences the performance and efficiency of the system. Grid resources are usually distributed in different geographic locations, belonging to different organizations and resources' properties are vastly different, in order to complete efficiently, intelligently task scheduling, the choice of scheduling strategy is essential. This paper proposes an improved ant algorithm for grid task scheduling strategy, by introducing a new type pheromone and a new node redistribution selection rule. On the one hand, the algorithm can track performances of resources and tag it. On the other hand, add algorithm to deal with task scheduling unsuccessful situations that improve the algorithm's robustness and the successful probability of task allocation and reduce unnecessary overhead of system, shortening the total time to complete tasks. The data obtained from simulation experiment shows that use this algorithm to resolve schedule problem better than traditional ant algorithm.

© 2011 Published by Elsevier Ltd. Selection and/or peer-review under responsibility of [name organizer]

Keywords:grid, task scheduling, ant colony algorithm

1. Introduction

Over the years, Task scheduling as a key technology of grid computing has always been concerned greatly. Since 1990s, the first scheduling algorithm has emergenced, a number of algorithms are applied to the grid task scheduling[1][2], for examples, Random Load Balancing[3][5] 、 Min-min[3][5] 、Greedy[3][5] 、 GA[6][7] 、 Simulated Annealing[8] 、 Genetic Simulated Annealing[8] 、 Tabualgorithm[7][9]、A*[10] and Ant colony algorithm. In those applications, bionic optimization algorithms have increasingly became to solve the grid task scheduling's sharp tool, especially ant colony algorithm, because it has a good dynamic, distribution, parallelism, scalability, it has been appropriated for resolving grid task scheduling problem and became to solve NP-hard problems' new breakthrough.

© 2011 Published by Elsevier B.V. Selection and/or peer-review under responsibility of ICAPIE Organization Committee.

Page 2: An Improved Ant Algorithm for Grid Task Scheduling Strategy

Laizhi Wei et al. / Physics Procedia 24 (2012) 1974 – 1981 1975Author name / Physics Procedia 00 (2011) 000–000

The study for ant colony algorithm that applicated in grid task scheduling are fruitful. Literature[11] tested and selected the parameters of ant colony algorithm in scheduling. Literature[12] considered about resources' heavy load, by modifying the amount of ant pheromones to achieve load balancing. Literature[13] proposed to class with resources and tasks to improve the quality of service in grid system. Ruay-Shiung Chang and his partners proposed an improved ant colony algorithm, their objection is to balance the whole load and minimize the makespan of the tasks[14]. Above is not difficult to prove this fact: Ant Algorithm is fit for Grid task scheduling[15][16] .

This paper, in order to balance the whole load system, shorten tasks' total executing time, we proposed an improved ant algorithm. The new algorithm extends the type of ant pheromones and increases the redistribution rule of tasks when they can not be successfully executed. Introducing a new pheromone can make the algorithm more in line with characteristics of ants in the real world and make the algorithm forward step closer to the optimal problem solution. The redistribution rule of tasks can make the traditional ant algorithm handle the situation of task schedule unsuccessful, and it also can make the algorithm more flexible, enhance the algorithm processing power, reduce the unnecessary overhead of system, shorten the total completed time of tasks.

2. Basic Concepts

Basic ant colony algorithm

Ant colony algorithm[17] was proposed by Italian scholar M.Dorigo in 1991. In order to describe Aco algorithm,we introduce TSP problem to explane it. The main idea of Aco algorithm as follow:

• Generate ants, each ant randomly select a node as the initial point

• Path pheromone that ant use it to tag the trail

• According to the probability formula, ants choose the next node, repeat this step until all node are visited.

• update relevant pheromone of each node

• Get the best optimal path.

Ant colony algorithm in tasks schedule

The grid has heterogeneous and wide characteristic, it determines the resources allocation is a NP-hard problem. Ant colony algorithm is an effective algorithm to solve NP-hard problem, and previous work show that it can solve the grid task scheduling effectively [15][16]. According to task scheduling fault, five modifications of basic ant algorithm must be applied:

• Replace the path pheromone into node pheromone to describe the handling capacity of current resource.

• Generate ants, each ant randomly select a resource node to implement the first task

• The meaning of pheromone is resource processing capacity.

• According to the probability formula, ants choose the nodes to excute the next task, repeat this step until all tasks are excuted.

• Modify the relevant pheromone of each node

• Compare with the load of the system and each ants' tasks execution time, select the tasks execution time shortest or system efficient highest as the best option.

Page 3: An Improved Ant Algorithm for Grid Task Scheduling Strategy

1976 Laizhi Wei et al. / Physics Procedia 24 (2012) 1974 – 1981

Author name / Physics Procedia 00 (2011) 000–000

3. The Improved ant algorithm applied in the task scheduling

Task Scheduling System Model

The grid simulation structure used in this experiment shows in Figure 1, in which the components include: task receiver, task scheduler, information services collector.

• Task Receiver: To provide an interface for user to implement tasks, to maintain a non-scheduled tasks queue, to record the user name and concrete needs for the submitted tasks.

• Task Scheduler: According to the specific circumstances of available resources and task requirements provide a strategy for optimal allocation, and sent the corresponding tasks to the optimal implemental resources.

• Resource Information Service Collector: Collect various resources parameters and feedback the information to task scheduler.

Figure 1. grid task scheduling system structure diagram

Ant Algorithm's Improvement

In this paper, the new algorithm extends the type of ant pheromones and increases the redistribution rule of tasks.

1). Resource Suitability Biologists discovered that ants can sense and release five different pheromones in real world,.Ants can

use pheromones to alarme for crisis, courtship, attack the enemy and so on. Inspired by real ants, this paper introduces a new type of pheromone, we named Resource Suitability, to assess the computing resources and stability of nodes.

Definition 1: Supposed Ss represents the number of successful completed tasks, and Sa represents total number of nodes have accepted tasks. So

( ) /Suitable j Ss Sa=                                                                                         (1) Where ( )Su itab le j is between 0 and 1. While value equals to 1, it represents resources working properly and stablely. When value equals to 0, it represents resource unavailable. After considering resource suitability in traditional ant algorithm, system will assign task to the higher suitability value of the node.

2). Resource Redistribution Rule When a task submitted, there will produce a corresponding ant. This ant can use probability formula to

select an optimal resource. Theoretically, the resources that get from probability formula can implement the assigned task, but grid environment is complicated and dynamic. It will bring about some resources can not successfully complete the scheduling task. Previous ant scheduling algorithm does not consider task scheduling fault or unsuccessful task implementation. They neglect the resource invalidation, tasks fulfillment not timely and resources features’ change will lead to tasks execute abnormally. those make the algorithm too idealistic and lack robustness. Finally, affect system performance greatly. In response to this

Page 4: An Improved Ant Algorithm for Grid Task Scheduling Strategy

Laizhi Wei et al. / Physics Procedia 24 (2012) 1974 – 1981 1977

Author name / Physics Procedia 00 (2011) 000–000

situation, the algorithm must consider the task scheduling unsuccessful processing. Improved algorithm can be divided into five steps:

• During the resource initialization, Resource Information Service Collector descends resources in terms of the pheromone value, there will generate a m Length (the number of resources) sorting table.

• For each ant, when the distributed resource can not implement the task completely, start the rule.

• When task find it fails to be executed, algorithm must calculate the position of the assigned task in sorting table.

• With current resource as the center and with L-node as the neighborhood.

• Algorithm assigns task again referencing the value of the resource suitability in this neighborhood..

• Repeatedly, until all tasks executed.

• Update two type of pheromone, and descend the resource in terms of pheromone value.

Improved Ant Algorithm Description

1) When new resources add to the grid environment, system initialize resources pheromones. The resource pheromone reflects the computing power and communication capabilities of resources. The greater the value of pheromone, the stronger the resource.

Initialization formula is as follows:

{ (0) ( ) b ) c ( )(TransmissionMIPS Suitable jj

a+b+c

a nj cpuτ = ∗ × + ∗ + ∗

=1 (2)

a, b, c are the proportion among the calculation capability, communication capability, and resource suitability. M I P S c p u represents processor performance, s i nT r a n s m i s g j represents the communication capabilities of resources, S u i ta b l e j represents the value of the resource suitability.

2) Scheduler in terms of resource selection probability formula: [ ][ ( )]

( )[ ][ ( )]

tj jtp jt

βα ητβα ητ μ μμ

•=

•∑

                                                                                        (3)

assign the optimal resources. ( )tp j means the probability of ants choose resource j. ( )tjτ represents the

pheromone of resource j at the t moment . jηis heuristic factor. μ represents a set of online

resources.α is the importance of the accumulation of information. β expresses the importance of the heuristic factor.

3) When the ants find the resources, they will leave two types of pheromones, one type can be seen as ants used to mark the crawled routes, named jτΔ . Another can be seen as ants used to assess the security of the path that they just crawled, marked SuitableΔ .

After ants find the resources, updateτ pheromone:

new old jj jρτ τ τ= × ± Δ (4)

Page 5: An Improved Ant Algorithm for Grid Task Scheduling Strategy

1978 Laizhi Wei et al. / Physics Procedia 24 (2012) 1974 – 1981

Author name / Physics Procedia 00 (2011) 000–000

where ρ represents durability of pheromone. + jτΔ means ant successfully find the resource, otherwise -jτΔ .

Actually, there are two kinds of situations need to discuss after ants find resources. The first case is tasks successfully find resources and entirely be implemented in this resource. The second is tasks successfully find resources but fail to be completed in this resource and tasks need to be redistributed again. In this paper, we use formula (3) to update pheromones:

NEW newjj j γτ τ τ= ± ×Δ⎧⎪

⎨⎪⎩update(resource suitable)

(5)

In equation (5), if the resource fails to successfully implement the task, algorithm will decrease

τ Pheromone again, otherwise addition. Meanwhile update the resource suitability pheromone.

4. Algorithm Design

P-ant Algorithm

In this paper, we use double-linked list to design this algorithm, each list node store two type of pheromones and their own properties of resources. The list node arranged with descending in terms of the value of τ pheromone. After task arrival, formula(3) to calculate the best allocation of resources then assign task to the selected resource and use formula (4) update pheromone. If the resource can not implement the assigned task completely, use formula (5) update pheromone and start the task redistribution rule.

1) Resource Redistribution Rule's pseudo code as follows: Begin: /** *initialize parameter areaSize *find the position where resource can not successfully

execute the task in double Linked list */ public int redistribute(int areaSize,DoubleLink dLink,Resource resource){ this.areaSize = areaSize; int maxSuitable = 0; int temp = 0; for(int i=0; i<dLink.length(); i++){ if(dLink.get(i).getResourceId == resource.id ){ int dLinkPos = i; for(int j=1; j<2L; j++){ for(int pos=dLinkPos-L; pos<=dLinkPos+L; pos++){

if(dLink.get(pos).getSuitable<dLink.get(pos+1).getSuitable){ int temp = pos+1; maxSuitable = dLink.get (pos+1).getSuitable } }

Page 6: An Improved Ant Algorithm for Grid Task Scheduling Strategy

Laizhi Wei et al. / Physics Procedia 24 (2012) 1974 – 1981 1979

Author name / Physics Procedia 00 (2011) 000–000

} output temp }end if }

2) Improved Ant Algorithm for Grid Task Scheduling Strategy's pseudo code as follows: Begin:/** *initalize the programmer: */ { Initialize pheromone using formula(2), Calculate the initial pheromone for each resource ; Set the initial suitable of each resource is 1 ; n is the number of the tasks; m is the number of the resources; Generate double linked list and adjust the Double-linked list in terms of the Pheromone } schedule: /** *generate j ants,each ant carrys n tasks。 *Process is as follows */ for(each ant){ for(each task){ according to formula(3),caculate which resource shoud be assigned to task j; if(find resource successfully){ use formula(4)to update the pheronmone;adjust the order of dLink nodes by Descending; if(resource implement the task successfully){ use formula(5) to update two type pheronmones; adjust the order of dLink nodes by Descending; } else{

use formula(5) to update two type pheronmones; adjust the order of dLink nodes by Descending;

then Start resource redistribution rule until all tasks be distributed;

} else { //not find the resourc return error message :resource not find。

} } } output:all task have been executed;

the total execution time of tasks;}end programmer

Page 7: An Improved Ant Algorithm for Grid Task Scheduling Strategy

1980 Laizhi Wei et al. / Physics Procedia 24 (2012) 1974 – 1981

Author name / Physics Procedia 00 (2011) 000–000

5. Experimental results

Experimental results

Experiment compared the traditional ant algorithm with the improved ant algorithm in the same scheduling task. The experimental results ascertain that the improved algorithm have stronger impact about the scheduling efficiency and resource utilization than traditional algorithms.

Algorithm parameters show in Table 1:

TABLE I. TABLE 1 ALGORITHM PARAMETERS

name Tasks Cycles α β ρparameter 100 31 0.5 0.5 0.95

The proportion among the calculation capability, communication capability, and resource suitability are 58%、36%、6%. The values of neighborhood L are 1、3、5、7、10.

Under the same missions, we recorded the executing time of tasks separately. and experiments were conducted 31 times. The experiment results show in Figure2, and Figure3.

Figure 2 completion time comparison

Figure 3 system efficiency comparison

Figure 2 shows that owning to introduce the rule of redistribution resources; it saves the time of task redistribution. So the completion time of tasks is shortened.

Figure 3 shows that system used the traditional ant algorithm to assign 100 tasks, system efficiency maintained at around 71. When used the improved ant algorithm to assign the tasks, as the search space L change, system efficiency taken place significant changes. This shows that the values of neighborhood L for improving ant algorithm's efficiency is crucial.

Conclusion

Ant algorithm is a distributed, heuristic search algorithm, has been used to solve many problems. With introducing a new type pheromone and new node redistribution selection rule, this algorithm can not only balance the whole load system but also can make the total completion time more shortly. The Experiment results further show that improved ant algorithm better than the basic ant algorithm, it is more suitable for grid resource scheduling

Page 8: An Improved Ant Algorithm for Grid Task Scheduling Strategy

Laizhi Wei et al. / Physics Procedia 24 (2012) 1974 – 1981 1981

Author name / Physics Procedia 00 (2011) 000–000

References

[1] Brucker,P.,1997.SchedulingAlgorithms.Springer,Berlin, [2] Pinedo,M.,2002.Scheduling:Theory,Algorithms,andSystems,seconded.Prentice-Hall,NewYork,NY. [3] R.Aimstrong,D.Hensgen,and T.Kidd. The relative performance of various mapping algorithms is independent of

sizable variances in run-time predictions[C]. In 7th IEEE Heterogeneous Computing workshop (HCW`98) 1998,pages 79-87.. [4] R.F.freund, H,j,siegel. Heterogeneous processing[J].IEEE Computer, 1993,26(6);13-17 [5] R·Freund,M.Gherrity, and S.Alllbrosius. Scheduling resources in multi 一 user,heterogeneous, computing

environments with SmartNet[C]. In 7th IEEE Heterogeneous Computing Workshops(HCW`98),1998,Pages184 一 199. [6] R.F.freund, H,j,siegel. Heterogeneous processing[J].IEEE Computer, 1993,26(6);13-17 [7] D. Faleo,R.D. Balio,and E.Tarantino. Improving search by incorporation evolution principles in parallel tabu

search[c].In IEEE Conference on Evolutionary Computation,1994,page 823-828 [8] S.Kirkpatrick,J.C. Gelatt, and M.P. Vecchi. Optimization by simulated annealing[M].Science,1983. [9] F.Glover, M.Laguna. Tabu Search[M].Kluwer Academic Publishers,1997. [10] K.Chow , B. Liu. On mapping signal processing algorithm to a heterogeneous multiprocessor system[c].In ICASSO

`91,1991,pages 1585-1588 [11] Xu Zhihong, Ji-Zhou Sun. Using ant algorithm to schedule tasks in grid [l]. Computer Applications .2005,25 (10): 2236 a

2240. [12] Li Xing, Xu Zhihong, Chen Xueqin. Grid environment based on ant algorithm to improve the task scheduling strategy [J].

Hebei University of Technology, 2004, 33 (1): 79 - 83. [13] Xu Zhihong, GU. Using ant algorithm Classified Task Scheduling in Grid Computing research [l]. Hebei University of

Technology .2006,35 (3): 68 1 71 [14] Ruay-Shiung Chang,Jih-Sheng Chang,and Po-Sheng Lin. An ant algorithm for balanced job scheduling in grids Future

Generation Computer Systems Volume 25, Issue 1, January 2009, Pages 20-27 [15] KAHRAMAN C, CEBECIU, ULUKAN Z. Multi2criteria supplier selection using fuzzy AHP [ J ]. Logistics Information

Management.2003, 16 (6) : 382 - 394. [16] LEE JW, KIM SH. Using analytic network process and goal programming for interdependent information system project

selection[17] Colomi A Dorigo M Maniez Distributed optimization by ant colonies Paris,France:Elsevier Publishing 1991