CN103970609B - A kind of cloud data center method for scheduling task based on improvement ant group algorithm - Google Patents

A kind of cloud data center method for scheduling task based on improvement ant group algorithm Download PDF

Info

Publication number
CN103970609B
CN103970609B CN201410168654.5A CN201410168654A CN103970609B CN 103970609 B CN103970609 B CN 103970609B CN 201410168654 A CN201410168654 A CN 201410168654A CN 103970609 B CN103970609 B CN 103970609B
Authority
CN
China
Prior art keywords
task
virtual machine
scheduling
pheromone
algorithm
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410168654.5A
Other languages
Chinese (zh)
Other versions
CN103970609A (en
Inventor
薛胜军
李梦盈
许小龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Gaohang Intellectual Property Operation Co ltd
Wuhan Fiberhome Information Integration Technologies Co ltd
Original Assignee
Nanjing University of Information Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing University of Information Science and Technology filed Critical Nanjing University of Information Science and Technology
Priority to CN201410168654.5A priority Critical patent/CN103970609B/en
Publication of CN103970609A publication Critical patent/CN103970609A/en
Application granted granted Critical
Publication of CN103970609B publication Critical patent/CN103970609B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention proposes a kind of cloud data center method for scheduling task based on improvement ant group algorithm, is related to field of cloud calculation, comprises the following steps:Step 1:What input user submitted to treats traffic control stream set of tasks and the virtual machine set of user's lease;Step 2:The scheduling problem assigning the task to virtual machine execution is expressed as the minima Solve problems of standard;Step 3:With the ant colony optimization for solving cloud computing environment virtual machine Mission Scheduling based on Pheromone update.The present invention can adapt to the dynamic of cloud environment, not only shortens the time overhead of scheduling user task, and the virtual machine load in cloud data center is maintained the state of a relative equilibrium.

Description

A kind of cloud data center method for scheduling task based on improvement ant group algorithm
Technical field
The invention belongs to field of cloud calculation, more particularly, to a kind of cloud data center task scheduling based on improvement ant group algorithm Method.
Background technology
With the sharp transition of business model, bias toward and solve the problems, such as that the grid computing of scientific algorithm has been difficult to solve business Problems present in industry environment, also any business-like product in grid computing up to now.2006, Google company proposes the concept of cloud computing (Cloud Computing) first.Cloud computing utilizes Intel Virtualization Technology by data In in the minds of the resource consolidation such as storage, calculating and communication be one shared, can dynamic configuration IT resource pool.User is no longer Need to purchase the hardware resources such as server it is only necessary to pass through the Internet and pay corresponding expense can be according to the demand of oneself Obtain corresponding service.
One physical host is mapped to multiple stage virtual machine using ripe Intel Virtualization Technology by cloud computing, therefore adjusts in task The task that during degree, user submits to need not be assigned to specific physical node to complete, and each task only need to be appointed according to suitable Business scheduling strategy selects suitable virtual machine can complete whole scheduling process.Additionally due to cloud computing adopts customer-centric " use on demand, according to quantity pay " commerce services pattern, cloud data center task scheduling needs to consider time overhead, meets and use Family to the demand of execution cost, ensure that the load of virtual machine in data center maintains the state of a relative equilibrium.How right Task is reasonably distributed the Important Problems becoming cloud service supplier urgent need to resolve, and unsuitable Task Assigned Policy is not only The execution time of all tasks can be increased, also can affect the stability of virtual machine.
Cloud computing task scheduling is a kind of NP-hard problem.Some approximate datas and heuritic approach is adopted to solve at present Problems.For example:Genetic algorithm, particle cluster algorithm, Immune Evolutionary Algorithm, clonal selection algorithm etc., the essence of this kind of algorithm It is to design a kind of efficient searching algorithm, there is the whole solution space of search and be unlikely to sink into the ability of local optimum.Random calculation Method has the advantages that global search, and adapts to wide, but is a lack of effective Local Search mechanism, and convergence rate is slow.Additionally, Most of algorithms not yet consider the difference of each virtual machine calculating performance in cloud data center at present, cause each void of user's lease Unbalanced situation in the load of plan machine, thus influencing whether the overall performance of virtual machine.
Content of the invention
The technical problem to be solved in the present invention is:A kind of cloud data center task tune based on improvement ant group algorithm is provided Degree method, realizes virtual machine is reasonably distributed, task is efficiently dispatched.
The technical solution adopted for the present invention to solve the technical problems is:In a kind of cloud data based on improvement ant group algorithm Heart method for scheduling task, comprises the steps:
Step 1:What input user submitted to treats traffic control stream set of tasks and the virtual machine set of user's lease;
Step 2:The scheduling problem assigning the task to virtual machine execution is expressed as the minima Solve problems of standard;
Step 3:With the ant colony optimization for solving cloud computing environment virtual machine Mission Scheduling based on Pheromone update.
Further, based on the cloud data center method for scheduling task improving ant group algorithm, described step 2 will for the present invention The scheduling problem that task distributes to virtual machine execution is expressed as the minima Solve problems of standard, and wherein optimization aim is scheduling plan In slightly, all tasks carryings finish minimizing overhead, that is, all tasks carryings finish cost time the shortest;
Constraints be task number be greater than lease virtual machine number, the task in set of tasks be all unit appoint Business, that is, each task can not be split as less subtask again, and each task is carried out using the virtual machine of arbitrary lease Calculate, but each virtual machine can only process a task in the same time, and task does not complete and do not allow to interrupt before calculating.
Further, the present invention based on the cloud data center method for scheduling task improving ant group algorithm, use by described step 3 One iterative process is comprised based on the ant colony optimization for solving cloud computing environment virtual machine Mission Scheduling of Pheromone update, including Following 8 sub-steps:
Step 3.1:Initialization;Basic parameter in this step initialization algorithm includes information heuristic factor α, expectation inspires Factor-beta, pheromone volatilization factor ρ, Formica fusca number m, maximum iteration time NCmax, pheromone τi,jAnd transfer expected degree ηi,j
Step 3.2:Algorithm iteration starts, if iterationses NC is less than maximum iteration time NCmaxWhen, NC=NC+1, enters Enter next step;When iterationses are more than or equal to maximum iteration time, iteration terminates;
Step 3.3:It is the selected probability of every virtual machine of each task computation that every Formica fusca shifts formula according to state;
Described state shifts formula:
Wherein, τi,jAnd ηi,jRepresent task T respectivelyiDistribute to VMjWhen pheromone and expected degree, Pi,jExpression will be appointed Business TiDistribute to virtual machine VMjProbability, n for user lease virtual machine number;
Step 3.4:By roulette algorithms selection virtual machine;Solve the advance transition probability of Formica fusca by roulette algorithm Problem, when Formica fusca starts as task choosing scheduling virtual machine, makes wheel disc rotate, pointer points to region and corresponds to when wheel disc stops Virtual machine then be kth Formica fusca be task choosing calculate node;Alternative virtual machine corresponding transition probability value is bigger, its The area occupying on wheel disc is bigger, selects it to calculate the probability of this task accordingly bigger;
Step 3.5:When the same layer task in Work flow model all selects same virtual machine, going to step 3.3 is to appoint Virtual machine is redistributed in business, otherwise goes to next step;
Step 3.6:Local information element updates:After a Formica fusca completes all of task distribution, to this Formica fusca dispatching party All virtual machines in case carry out Pheromone update;
Step 3.7:The renewal of global information element:After all Formica fuscas all complete once to travel through, find out in current iteration All virtual machines in this scheme are carried out Pheromone update, then go to step 3.2 by good scheduling scheme;
Step 3.8:Find optimal distributing scheme, the virtual machine in binding scheme and corresponding workflow task.
Further, the present invention is based on the cloud data center method for scheduling task improving ant group algorithm, described pheromone τi,jAnd transfer expected degree ηi,jAll represented with the computing capability of calculate node:
τi,ji,j=MIPSj/N
Wherein, MIPSjRepresent process task TiVirtual machine VMjProcessing speed, N is a constant.
Further, the present invention is based on the cloud data center method for scheduling task improving ant group algorithm, described in step 3.6 Local information element updates and specifically includes herein below:
A, residual risk are updated processing, using equation below:
τij(t+1)=(1- ρ) τij(t)+Δτij(t)
Wherein:τij(t+1) task T when representing the t+1 time iterationiSelect virtual machine VMjQuantity of information, 1- ρ represents information The element residual factor, in order to prevent the unlimited accumulation of information, the span of ρ is:ΔτijT () represents task TiChoosing Select virtual machine VMjExecution remains in virtual machine VMjOn quantity of information;
B, all virtual machines in this Formica fusca scheduling scheme are carried out with the renewal of pheromone:
Δτij(t)=D/clockij
Wherein D is a constant, clockijRepresenting Formica fusca in this circulation is task TiSelect virtual machine VMjExecution when Between;
Further, the present invention is based on the cloud data center method for scheduling task improving ant group algorithm, complete described in step 3.7 The renewal of office's pheromone is according to formula:Δτij(t)=D/bestclockijRow information is entered to all virtual machines in the program Element updates, wherein, bestclockijRepresent in optimal distributing scheme is task TiSelect virtual machine VMjWhen task TiComplete Time.
Further, the present invention is based on the cloud data center method for scheduling task improving ant group algorithm, described step 3.6 In also include defining a pheromone Dynamic gene PC, according to the virtual machine distribution condition of task, pheromone is adjusted.
Further, the present invention is based on the cloud data center method for scheduling task improving ant group algorithm, described pheromone The computing formula of Dynamic gene PC is:
Wherein, EjExecute virtual machine VM after all tasks for virtual machine in epicycle iterative processjThe time being spent.
Further, the present invention based on the cloud data center method for scheduling task improving ant group algorithm, appoint by described basis The virtual machine distribution condition of business is adjusted to pheromone, specially:
After local information element updates and global information element updates, then the pheromone after updating is adjusted according to the following formula,
τij(t+1)=((1- ρ) τij(t)+Δτij(t))*PC;
It is not yet assigned to task TiOther virtual machines then carry out the adjustment of pheromone according to below equation:
τix(t+1)=τix(t) * PC,
Wherein, τix(t+1) when representing the t+1 time iteration, task TiSelect to be not yet assigned to the virtual machine VM of taskxInformation Amount.
The technical solution used in the present invention compared with prior art, has following technique effect:
A kind of cloud data center method for scheduling task based on improvement ant group algorithm that the present invention provides, calculates in basic ant colony It is optimized on the basis of method, not only shorten the time overhead of task scheduling but also consider the load condition of each virtual machine Prevent virtual machine from the machine of delaying or light condition occurring, it is to avoid the problems such as the wasting of resources, improve the utilization rate of resource.
Brief description
Fig. 1 is based on the cloud computing environment virtual machine task scheduling algorithm flow chart improving ant group algorithm.
Fig. 2 is Work flow model.
Fig. 3 is roulette algorithm model.
The particular flow sheet that Fig. 4 carries out for roulette algorithm.
Fig. 5 is the deadline of each task in workflow under the scheduling of four kinds of algorithms in the present invention.
Fig. 6 is that in the present invention four kinds of algorithms each virtual machine in completing task scheduling Hou Yun data center is in an experiment Run time account for the ratio of all virtual machine deadline sums.
Specific embodiment
In order that those skilled in the art more fully understand technical problem in the application, technical scheme and technique effect, Cloud data center task scheduling side based on improvement ant group algorithm a kind of to the present invention with reference to the accompanying drawings and detailed description Method is described in further detail.
The present invention proposes a kind of cloud data center Load Balancing Task Scheduling algorithm (Load based on improvement ant group algorithm balancing task scheduling algorithm based on ant colony algorithm for cloud Datacenters, LACO), LACO algorithm not only shortens the time overhead of tasks carrying but also will rent during task scheduling The virtual machine rented maintains the state of load relative equilibrium.Further, it is contemplated that most researchers all focus on independence up till now The scheduling of task, and have ignored that user may submit to priority restrictions relation, be mutually related Work flow model, therefore The present invention carrys out the scheduling of research work stream using DAG (Directed Acyclic Graph, directed acyclic graph).Each by considering The constraint of the sequential between individual task or cause and effect comes for one optimal resource of task choosing, and coordinates the execution of each task To obtain final implementing result.
The present invention is used ClouSim as emulation platform, is simulated emulation experiment by it to LACO algorithm, and with FIFO (First In First Out, FIFO) scheduling strategy and ACO (Ant colony algorithm, basic ant colony Dispatching algorithm) contrasted, the superiority of checking LACO algorithm.
Proposed by the present invention based on improve ant group algorithm cloud data center task scheduling algorithm comprise the steps, flow process As shown in Figure 1:
Step 1:What input user submitted to treats the set of the virtual machine of scheduler task set and user's lease;
Step 2:The scheduling problem assigning the task to resource execution is expressed as the minima Solve problems of standard;
Some tasks submitted to for user there may be complementary relation, and the present invention is right as studying using workflow As to solve the associated task scheduling problem in cloud data center.Generally workflow all can be described as a directed acyclic graph G =(T, E), wherein:T is the set of DAG interior joint, represents n task in workflow, T={ T1,T2,T3,……,Tn};E It is set the E={ (T of directed edge in Work flow modeli,Tj)|Ti,Tj∈ T }, represent the restricting relation between two tasks.As Fruit task TiThere is sensing task TjDirected edge, then TiIt is referred to as TjFather's task, TjIt is referred to as TiSubtask, this In the case of TjOnly in TiAfter the completion of just can execute.Fig. 2 is the basic framework of one group of workflow, and containing ten needs to process Workflow task, label is respectively T0~T9, the length of these tasks is different.In fig. 2, T={ T1,T2,T4,T5, T6,T7,T8, T9, E={ (T0,T1),(T0,T2),(T1,T3),(T1,T4),(T2,T5),(T2,T6),(T3,T7),(T4,T7), (T5,T8),(T6,T8),(T7,T9),(T8,T9)}.
Present invention VM represents the virtual machine of user's lease, and m represents the number of virtual machine, VM={ VM1, VM2... ..., VMm, VMiProcessing speed MIPSiTo represent, MIPS represents million grades of machine language instruction numbers of process per second.
The present invention defines the communication matrix com, com={ c of a n × mi,j|ci,j>=0,1≤i≤n, 1≤j≤m }, its In:N represents the number of task, and m represents the virtual machine number of user's lease, ci,j(as shown in formula (1)) represents task TiDistribution To virtual machine VMjThe required call duration time of execution;In addition calculating matrix exe of a n × m, exe={ e are definedi,j|ei,j>=0, 1≤i≤n, 1≤j≤m }, wherein ei,j(as shown in formula (2)) represents task TiIn virtual machine VMjThe calculating time of upper execution.
cij=outputsizei/bandwidth (1)
eij=Lengthi/Mipsj(2)
Wherein:outputsizeiExpression task TiThe size of output file, bandwidth represents order wire between virtual machine The bandwidth on road;LengthiExpression task TiSize, MipsjRepresent process task TiVirtual machine VMjProcessing speed;If Former and later two tasks execute all on same virtual machine, there is not data transfer cost.
Virtual machine VMjThe time overhead of all tasks processing can use Ej(as shown in formula (3)) represents, and whole work Make the total cost time E flowingtotalAs in workflow, last task completes the moment.
Wherein:TaskjRepresent virtual machine VMjAll tasks of upper execution, Ftask represents virtual machine VMjUpper execution all (father's task is not in virtual machine VM for father's task of taskjUpper execution).
Step 3:Solve cloud computing environment with the task scheduling algorithm of the improvement ant group algorithm based on Pheromone update virtual Machine Mission Scheduling, is described in detail below:
Step 3.1:Initialization is based on the cloud data center Load Balancing Task Scheduling algorithm improving ant group algorithm;
This step initialization information heuristic factor α, expectation heuristic factor β, pheromone volatilization factor ρ, Formica fusca number m, Big iterationses, pheromone and transfer expected degree.
Ant group algorithm when solving some basic problems the pheromone between two nodes and transfer expected degree generally with away from From waiting, attribute is relevant.But the particularity due to cloud computing environment, the present invention is by pheromone τi,jAnd the expected degree of this node ηi,jAll represented with the computing capability of calculate node.
τi,ji,j=MIPSj/N (4)
In formula (4), τi,jAnd ηi,jRepresent task T respectivelyiDistribute to VMjWhen pheromone and expected degree, N is One constant (as cooperation index).
Step 3.2:Algorithm iteration starts, if iterationses NC is less than NCmax, NC=NC+1, enter next step;When repeatedly When generation number is more than or equal to maximum iteration time, iteration terminates.
Step 3.3:It is that every virtual machine of each task computation is selected general that every Formica fusca shifts formula (5) according to state Rate.
Formula (5) represents task TiDistribute to VMjProbability, n for user lease virtual machine number.
Step 3.4:By roulette algorithms selection virtual machine;
The present invention solves the problems, such as the advance transition probability of Formica fusca by roulette algorithm.Roulette algorithm (Roulette Algorithm) be the process of emulation wheel disc gambling it is assumed that there being a circular wheel disc, and it is different to be divided into m block area Sector region, this m block region represents that for Formica fusca k, one of task-set task to be assigned to every virtual machine corresponding respectively Probit.As shown in figure 3, assuming that alternative virtual machine has 4, respectively VM1、VM2、VM3、VM4, corresponding probit is respectively For:23%th, 52%, 6% and 19%.
When Formica fusca starts as task choosing scheduling virtual machine, wheel disc is made to rotate, the area that pointer points to when wheel disc stops The corresponding virtual machine in domain then for Formica fusca k be task choosing calculate node.Alternative virtual machine corresponding transition probability value is bigger, its The area occupying on wheel disc is bigger, corresponding select it to execute the probability of this task is bigger, the implementing of this algorithm Journey is as shown in Figure 4.
For each task in workflow, after determining the selected probit of every virtual machine, it will interval in [0,1] Interior random generation one number, this number probability selected with First virtual machine is subtracted each other, if difference is less than zero, then this is empty Plan machine is just selected, is otherwise further continued for deducting the selected probability of next virtual machine, the result after deducting is less than or equal to 0.The virtual machine corresponding to that probit when finally deducting is as the virtual machine of this task choosing.
Step 3.5:When the same layer task in Work flow model all selects same virtual machine, going to step 3.3 is to appoint Virtual machine is redistributed in business, otherwise goes to next step;
Due to the particularity of Work flow model, if the workflow task of same layer all distributes identical virtual machine, now During one task of execution, other tasks of same layer will enter long waiting period, and this results in other and has processed task Virtual machine is in idle condition thus leading to the wasting of resources.In order to solve this problem, this algorithm once detects same layer Workflow task all selects same virtual machine and is absorbed in then to reselect other according to formula (5) for it during waiting period and be in sky The virtual machine of not busy state.
Step 3.6:Local information element updates, after a Formica fusca completes all of task distribution, to this Formica fusca dispatching party All virtual machines in case carry out Pheromone update;
In order to avoid residual risk element excessively floods heuristic information, after therefore every Formica fusca completes all scheduling, need logical Cross formula (6) residual risk to be updated process.
τij(t+1)=(1- ρ) τij(t)+Δτij(t) (6)
Wherein:τij(t+1) task T when representing the t+1 time iterationiSelect virtual machine VMjQuantity of information, 1- ρ represents information The element residual factor, in order to prevent the unlimited accumulation of information, the span of ρ is:
The present invention utilizes the Ant-Cycle model in the Basic Ant Group of Algorithm model that M.Dorigo proposes, and this model utilizes Be the overall situation information.ΔτijT () represents task TiSelect virtual machine VMjExecution remains in virtual machine VMjOn quantity of information, just Begin moment Δ τij(0)=0, after a Formica fusca completes all of task scheduling, according to formula (7) in this Formica fusca scheduling scheme All virtual machines carry out the renewal of pheromone.
Δτij(t)=D/clockij(7)
Wherein D is a constant, clockijRepresenting Formica fusca in this circulation is task TiSelect virtual machine VMjExecution when Between.
Invention defines a pheromone Dynamic gene PC, according to the virtual machine distribution condition of task, pheromone is carried out Adjustment.
For the task of different layers in workflow, in order to prevent these tasks from all selecting the preferable virtual machine of computing capability, Lead to this virtual machine overload, the present invention defines a pheromone Dynamic gene PC, by formula (8) Suo Shi.Wherein EjDefinition Execute virtual machine VM after all tasks for virtual machine in epicycle iterative processjThe time being spent.Update in local information element Again the pheromone after updating is adjusted according to formula (9) after updating with global information element, be not yet assigned to task TiOther are virtual Machine then carries out the adjustment of pheromone according to formula (10).
τij(t+1)=((1- ρ) τij(t)+Δτij(t))*PC (9)
τix(t+1)=τix(t)*PC (10)
If virtual machine VMjOverload then E in upper wheel iterationjRelatively excessive, then the corresponding pheromone of this virtual machine Dynamic gene PC is then relatively small, is task T during next iterationiSelect virtual machine VMjProbability relatively low.Many The load relative equilibrium of each virtual machine can be ensured after secondary iteration, improve the execution efficiency of system.
Step 3.7:After all Formica fuscas all complete once to travel through, find out optimal scheduling scheme in current iteration, and press According to formula (11), Pheromone update is carried out to all virtual machines in the program.
Δτij(t)=D/bestclockij(11)
Wherein D is a constant, bestclockijRepresent in optimal distributing scheme is task TiSelect virtual machine VMjWhen Task TiDeadline.
Step 3.8:Find optimal distributing scheme, the virtual machine in binding scheme and corresponding workflow task.
Apply heuristic load-balancing algorithm proposed by the present invention to obtain the result of cloud data center task scheduling, first will Mission Scheduling is converted to standard and minimizes problem;Next carries out the initialization of method, and what input user submitted to waits to dispatch Set of tasks, the set of the virtual machine of user's lease;Pass through the cloud data center task scheduling based on improving ant group algorithm again to calculate Method carries out the scheduling process shown in step 3.1- step 3.8, finally obtains optimal solution.
In order to check this algorithm with respect to FIFO scheduling strategy, basic ant colony dispatching algorithm (ACO) and ant colony and wheel disc Whether the combination algorithm (RACO) of gambling has more superior scheduling performance and load balance ability, and the present invention is emulated using cloud computing Simulation tool CloudSim simulating the data center of a cloud computing, and rewritten DatacenterBroker therein, The classes such as Cloudlet are it is achieved that analog simulation to above four kinds of task scheduling algorithms.
In addition the present invention devises a kind of Work flow model for checking the effectiveness of LACO algorithm, in this Work flow model The parameter value of ten tasks is:
LACO algorithm parameter value is set to:α=0.7, β=0.7, ρ=0.3, Formica fusca number is 100, iterationses 50 times.
The present invention simulates a data center in CoudSim, and defines four virtual machines wherein, this four void The numbering of plan machine is respectively VM0、VM1、VM2、VM3It is assumed that the bandwidth of the communication line between all virtual machines all phases in the present invention Deng, the parameter value that this four virtual machines set as:
Virtual machine ID MIPS Bandwidth Memory capacity
0 420 1000 50GB
1 350 1000 120GB
2 508 1000 235GB
3 634 1000 450GB
The time that the task allocation result of four groups of algorithms and each tasks carrying corresponding complete is:
Wherein what ACO algorithm, RACO algorithm and LACO algorithm were all taken is the data of the solution of global optimum.Therefrom It can be seen that FIFO scheduling strategy simply distributes for task one by one according to the order of virtual machine, the efficiency of this method is very low , lead to that because it does not account for the process performance of each virtual machine larger bearing also is had on the low virtual machine of disposal ability Carry, thus leading to whole task scheduling process to need the deadline grown very much.ACO algorithm all tasks after successive ignition are all selected Select computing capability virtual machine VM the strongest3It is scheduling so that virtual machine VM3Upper overload, time overhead is also excessive.And In RACO algorithm, due to virtual machine VM2、VM3For other two virtual machines, process performance is higher, leads to substantial amounts of Business is all assigned on this two virtual machines, virtual machine VM1On there is no need execution task queue and be in idle condition, Thus causing the wasting of resources of data center.Finally under the scheduling of LACO algorithm, each virtual machine is according to its execution performance Obtain corresponding task, do not cause the waste of resource, improve system execution efficiency.
Fig. 5 shows the deadline of each task in workflow under the scheduling of four kinds of algorithms.As can be seen from the figure The time of FIFO and ACO each task of algorithm process is both greater than two kinds of algorithms of RACO and LACO.Before FIFO execution during several task Deadline is above ACO algorithm, and is executing T4The deadline of ACO algorithm is higher than gradually FIFO algorithm afterwards;RACO and The time of two kinds of each tasks of algorithm performs of LACO is very close to but being carried out LACO algorithm process time during last three tasks It is significantly less than RACO algorithm.
Fig. 6 is shown that these four algorithms complete the fortune in an experiment of each virtual machine in data center after task scheduling The row time accounts for the ratio of all virtual machine deadline sums.As can be seen from the figure all of virtual machine in FIFO scheduling strategy All it is assigned to task, but because it is that distribution results in virtual machine VM in order0、VM1On there is substantial amounts of task, compare and The stronger virtual machine VM of speech disposal ability2、VM3The percentage of execution time is less, when leading to whole task processes Between expend excessive.It is that all tasks all select the strong virtual machine VM of computing capability that ACO algorithm leads to Formica fusca after successive ignition3, Make VM3Upper overload, other virtual machines are all in idle condition.Virtual machine VM is can be seen that in RACO algorithm0、VM1On It is not allocated to task, even if virtual machine VM2、VM3Computing capability very strong, but excessive load can be caused thus also can make Runtime is elongated.Finally a kind of all virtual machines of LACO algorithm have been carried out task, and it can be seen that every virtual Percentage ratio shared by machine execution time is directly proportional to its computing capability, and the strong virtual machine of computing capability is used for executing more appointing Business, also makes the load of virtual machine reach equilibrium while guaranteed efficiency.
Obviously, it will be appreciated by those skilled in the art that to disclosed in the invention described above based on improve ant group algorithm cloud Data center's method for scheduling task, can also make various improvement on the basis of without departing from present invention.Therefore, the present invention Protection domain should by appending claims content determine.

Claims (5)

1. a kind of based on improve ant group algorithm cloud data center method for scheduling task it is characterised in that:Comprise the following steps:
Step 1:What input user submitted to treats traffic control stream set of tasks and the virtual machine set of user's lease;
Step 2:The scheduling problem assigning the task to virtual machine execution is expressed as the minima Solve problems of standard;
Step 3:With the ant colony optimization for solving cloud computing environment virtual machine Mission Scheduling based on Pheromone update, wherein comprise One iterative process, including following 8 sub-steps:
Step 3.1:Initialization;Basic parameter in this step initialization algorithm includes information heuristic factor α, expectation heuristic factor β, pheromone volatilization factor ρ, Formica fusca number m, maximum iteration time NCmax, pheromone τi,jAnd transfer expected degree ηi,j
Step 3.2:Algorithm iteration starts, if iterationses NC is less than maximum iteration time NCmaxWhen, NC=NC+1, under entrance One step;When iterationses are more than or equal to maximum iteration time, iteration terminates;
Step 3.3:It is the selected probability of every virtual machine of each task computation that every Formica fusca shifts formula according to state;
Described state shifts formula:
P i , j = [ τ i , j ] α [ η i , j ] β Σ x = 1 n [ τ i , x ] α [ η i , x ] β
Wherein, τi,jAnd ηi,jRepresent task T respectivelyiDistribute to VMjWhen pheromone and expected degree, Pi,jRepresent task Ti Distribute to virtual machine VMjProbability, n for user lease virtual machine number;
Step 3.4:By roulette algorithms selection virtual machine;Asked by the advance transition probability that roulette algorithm solves Formica fusca Topic, when Formica fusca starts as task choosing scheduling virtual machine, makes wheel disc rotate, and when wheel disc stops, pointer sensing region is corresponding Virtual machine is then the calculate node that kth Formica fusca is task choosing;Alternative virtual machine corresponding transition probability value is bigger, and it is in wheel The area occupying on disk is bigger, selects it to calculate the probability of this task accordingly bigger;
Step 3.5:When the same layer task in Work flow model all selects same virtual machine, going to step 3.3 is task weight New distribution virtual machine, otherwise goes to next step;
Step 3.6:Local information element updates:After a Formica fusca completes all of task distribution, in this Formica fusca scheduling scheme All virtual machines carry out Pheromone update;Also include defining a pheromone Dynamic gene PC, divided according to the virtual machine of task Situation of joining is adjusted to pheromone;The computing formula of described pheromone Dynamic gene PC is:
P C = 1 - ( E j / Σ j ⋐ V M E j )
Wherein, EjExecute virtual machine VM after all tasks for virtual machine in epicycle iterative processjThe time being spent;
Wherein said local information element updates and specifically includes herein below:
A, residual risk are updated processing, using equation below:
τij(t+1)=(1- ρ) τij(t)+Δτij(t)
Wherein:τij(t+1) task T when representing the t+1 time iterationiSelect virtual machine VMjQuantity of information, 1- ρ represent pheromone remain The factor, in order to prevent the unlimited accumulation of information, the span of ρ is:ΔτijT () represents task TiSelect virtual Machine VMjExecution remains in virtual machine VMjOn quantity of information;
B, all virtual machines in this Formica fusca scheduling scheme are carried out with the renewal of pheromone:
Δτij(t)=D/clockij
Wherein D is a constant, clockijRepresenting Formica fusca in this circulation is task TiSelect virtual machine VMjExecution time;
Step 3.7:The renewal of global information element:After all Formica fuscas all complete once to travel through, find out in current iteration and most preferably adjust All virtual machines in this scheme are carried out Pheromone update, then go to step 3.2 by degree scheme;
Step 3.8:Find optimal distributing scheme, the virtual machine in binding scheme and corresponding workflow task.
2. as claimed in claim 1 based on the cloud data center method for scheduling task improving ant group algorithm it is characterised in that:Institute The scheduling problem that the step 2 stated assigns the task to virtual machine execution is expressed as the minima Solve problems of standard, wherein optimizes Target be scheduling strategy in all tasks carryings finish minimizing overhead, that is, all tasks carryings finish cost time the shortest;
Constraints be task number be greater than lease virtual machine number, the task in set of tasks is all Meta task, It is that each task can not be split as less subtask again, and each task is counted using the virtual machine of arbitrary lease Calculate, but each virtual machine can only process a task in the same time, and task does not complete and do not allow to interrupt before calculating.
3. as claimed in claim 1 based on the cloud data center method for scheduling task improving ant group algorithm it is characterised in that:Institute The pheromone τ statingi,jAnd transfer expected degree ηi,jAll represented with the computing capability of calculate node:
τi,ji,j=MIPSj/N
Wherein, MIPSjRepresent process task TiVirtual machine VMjProcessing speed, N is a constant.
4. as claimed in claim 1 based on the cloud data center method for scheduling task improving ant group algorithm it is characterised in that:Step Described in rapid 3.7, the renewal of global information element is according to formula:Δτij(t)=D/bestclockijTo all void in the program Plan machine carries out Pheromone update, wherein, bestclockijRepresent in optimal distributing scheme is task TiSelect virtual machine VMjWhen Task TiDeadline.
5. as claimed in claim 1 based on the cloud data center method for scheduling task improving ant group algorithm it is characterised in that:Institute The virtual machine distribution condition according to task stated is adjusted to pheromone, specially:
After local information element updates and global information element updates, then the pheromone after updating is adjusted according to the following formula,
τij(t+1)=((1- ρ) τij(t)+Δτij(t))*PC;
It is not yet assigned to task TiOther virtual machines then carry out the adjustment of pheromone according to below equation:
τix(t+1)=τix(t) * PC,
Wherein, τix(t+1) when representing the t+1 time iteration, task TiSelect to be not yet assigned to the virtual machine VM of taskxQuantity of information.
CN201410168654.5A 2014-04-24 2014-04-24 A kind of cloud data center method for scheduling task based on improvement ant group algorithm Active CN103970609B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410168654.5A CN103970609B (en) 2014-04-24 2014-04-24 A kind of cloud data center method for scheduling task based on improvement ant group algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410168654.5A CN103970609B (en) 2014-04-24 2014-04-24 A kind of cloud data center method for scheduling task based on improvement ant group algorithm

Publications (2)

Publication Number Publication Date
CN103970609A CN103970609A (en) 2014-08-06
CN103970609B true CN103970609B (en) 2017-03-08

Family

ID=51240141

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410168654.5A Active CN103970609B (en) 2014-04-24 2014-04-24 A kind of cloud data center method for scheduling task based on improvement ant group algorithm

Country Status (1)

Country Link
CN (1) CN103970609B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107133088A (en) * 2017-04-19 2017-09-05 武汉科技大学 A kind of multiple nucleus system method for scheduling task based on particle cluster algorithm

Families Citing this family (39)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104965836B (en) * 2014-08-25 2018-10-30 腾讯科技(北京)有限公司 A kind of data processing method and device of internet
CN104158904B (en) * 2014-08-28 2017-07-28 重庆邮电大学 A kind of cloud auxiliary mobile P 2 P network collaboration method for down loading
CN104317293B (en) * 2014-09-19 2017-04-12 南京邮电大学 City rescue intelligent agent dynamic path planning method based on improved ant colony algorithm
CN104461739B (en) * 2014-12-15 2017-12-05 中山大学 A kind of virtual machine batch dispositions method based on cloudsim platforms
CN104536806B (en) * 2014-12-26 2017-11-03 东南大学 A kind of workflow application flexible resource Supply Method under cloud environment
CN104965755B (en) * 2015-05-04 2018-08-21 东南大学 Cloud service workflow schedule method based on budgetary restraints
CN104915557B (en) * 2015-06-04 2017-09-01 中山大学 A kind of cloud method for allocating tasks based on Bi-objective ant group algorithm
CN106095555A (en) * 2016-06-17 2016-11-09 河海大学常州校区 Executor's method for scheduling task in WSAN based on ant group algorithm
CN106095584A (en) * 2016-06-20 2016-11-09 中国人民解放军国防科学技术大学 The dispatching method of the security sensitive work stream that task based access control replicates in cloud computing
CN105912409A (en) * 2016-06-30 2016-08-31 天脉聚源(北京)传媒科技有限公司 Task scheduling method and device
CN106776008A (en) * 2016-11-23 2017-05-31 福建六壬网安股份有限公司 A kind of method and system that load balancing is realized based on zookeeper
CN106900064A (en) * 2017-03-06 2017-06-27 西安电子科技大学 Minimize the LTE downlink resource scheduling methods of compression losses
CN106951059A (en) * 2017-03-28 2017-07-14 中国石油大学(华东) Based on DVS and the cloud data center power-economizing method for improving ant group algorithm
CN107133095B (en) * 2017-04-07 2020-04-07 北京科技大学 Task scheduling method in cloud environment
CN107203871B (en) * 2017-05-25 2020-12-08 上海海洋大学 Marine equipment verification system based on Activiti and task scheduling optimization
US10122860B1 (en) * 2017-07-10 2018-11-06 Afiniti Europe Technologies Limited Techniques for estimating expected performance in a task assignment system
CN109783186A (en) * 2017-11-15 2019-05-21 中国电力科学研究院有限公司 A kind of method for scheduling task and system detecting cloud platform
CN107748693A (en) * 2017-11-30 2018-03-02 成都启力慧源科技有限公司 Group's virtual machine scheduling policy under cloud computing environment
CN108108225B (en) * 2017-12-14 2019-05-24 长春工程学院 A kind of method for scheduling task towards cloud computing platform
CN110555038A (en) * 2018-03-28 2019-12-10 阿里巴巴集团控股有限公司 Data processing system, method and device
CN108491273A (en) * 2018-03-30 2018-09-04 深圳汇通智能化科技有限公司 Air pollution data acquisition analysis system based on cloud computing
CN108762918B (en) * 2018-05-16 2021-09-07 深圳大学 Workflow resource allocation optimization method and system based on probability distribution
WO2019218169A1 (en) * 2018-05-16 2019-11-21 深圳大学 Workflow resource configuration optimization method and system employing probability distribution
CN109617939B (en) * 2018-10-15 2021-10-26 西安理工大学 WebIDE cloud server resource allocation method based on task pre-scheduling
CN109447231B (en) * 2018-10-25 2022-02-11 青岛大学 Method for solving multi-attribute bilateral matching problem under shared economic background by ant colony algorithm
CN109634742B (en) * 2018-11-15 2023-05-05 华南理工大学 Time constraint scientific workflow optimization method based on ant colony algorithm
CN111245717A (en) * 2018-11-28 2020-06-05 中国移动通信集团浙江有限公司 Cloud service route distribution method and device
CN109711526B (en) * 2018-12-20 2023-04-18 广东工业大学 Server cluster scheduling method based on SVM (support vector machine) and ant colony algorithm
CN109819032B (en) * 2019-01-24 2021-06-29 中山大学 Cloud robot task allocation method considering base station selection and computing migration in combined manner
CN109948848A (en) * 2019-03-19 2019-06-28 中国石油大学(华东) Research-on-research flows down the Cost Optimization dispatching method of deadline constraint in a kind of cloud
CN110086855B (en) * 2019-03-29 2021-11-05 江苏开拓信息与系统有限公司 Intelligent Spark task perception scheduling method based on ant colony algorithm
CN110111006A (en) * 2019-05-08 2019-08-09 中国石油大学(华东) Scientific workflow Cost Optimization dispatching method in a kind of cloud based on chaos Ant ColonySystem
CN110764912B (en) * 2019-10-25 2022-09-09 东北大学 Self-adaptive task scheduler and method
CN110851263A (en) * 2019-11-15 2020-02-28 西安石油大学 Green cloud task scheduling method for heterogeneous cloud data center
CN110888728B (en) * 2019-12-03 2022-06-28 中电工业互联网有限公司 Task scheduling method of button cluster server
CN111611080B (en) * 2020-05-22 2023-04-25 中国科学院自动化研究所 Cooperative scheduling method, system and device for edge computing tasks
CN112181620B (en) * 2020-09-27 2022-09-20 郑州轻工业大学 Big data workflow scheduling method for sensing service capability of virtual machine in cloud environment
CN113867960B (en) * 2021-09-30 2023-08-11 丝路信息港云计算科技有限公司 Cloud load balancing hybrid model based on file types
CN113986518B (en) * 2021-12-28 2022-05-24 华南理工大学 Real-time cloud task multi-objective optimization scheduling method based on ant colony algorithm

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477475A (en) * 2008-12-31 2009-07-08 中山大学 Method for optimizing dynamic grid work flow by employing ant colony algorithm
CN102932422A (en) * 2012-09-29 2013-02-13 南京邮电大学 Cloud environment task scheduling method based on improved ant colony algorithm
US8416869B2 (en) * 2010-05-05 2013-04-09 National Yunlin University Of Science And Technology Peak-to-average power ratio reduction method for orthogonal frequency division multiplexing systems based on path finding

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009080946A2 (en) * 2007-12-07 2009-07-02 France Telecom Method of managing a set of virtual environment control entities, device, and corresponding computer program product

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477475A (en) * 2008-12-31 2009-07-08 中山大学 Method for optimizing dynamic grid work flow by employing ant colony algorithm
US8416869B2 (en) * 2010-05-05 2013-04-09 National Yunlin University Of Science And Technology Peak-to-average power ratio reduction method for orthogonal frequency division multiplexing systems based on path finding
CN102932422A (en) * 2012-09-29 2013-02-13 南京邮电大学 Cloud environment task scheduling method based on improved ant colony algorithm

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于改进蚁群算法的云计算任务调度策略研究;王科;《中国优秀硕士学位论文全文数据库 信息科技辑》;20131215;I140-31正文第18-47页 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107133088A (en) * 2017-04-19 2017-09-05 武汉科技大学 A kind of multiple nucleus system method for scheduling task based on particle cluster algorithm

Also Published As

Publication number Publication date
CN103970609A (en) 2014-08-06

Similar Documents

Publication Publication Date Title
CN103970609B (en) A kind of cloud data center method for scheduling task based on improvement ant group algorithm
Kaur et al. Load balancing optimization based on hybrid Heuristic-Metaheuristic techniques in cloud environment
CN108182109B (en) Workflow scheduling and data distribution method in cloud environment
CN107659433B (en) Cloud resource scheduling method and equipment
Samadi et al. E-HEFT: enhancement heterogeneous earliest finish time algorithm for task scheduling based on load balancing in cloud computing
CN107193658A (en) Cloud computing resource scheduling method based on game theory
Xue et al. An ACO-LB Algorithm for Task Scheduling in the Cloud Environment.
Dhari et al. An efficient load balancing scheme for cloud computing
US11816509B2 (en) Workload placement for virtual GPU enabled systems
CN103729246B (en) Method and device for dispatching tasks
CN106991006B (en) Support the cloud workflow task clustering method relied on and the time balances
CN104793993B (en) The cloud computing method for scheduling task of artificial bee colony particle cluster algorithm based on Levy flights
CN103401939A (en) Load balancing method adopting mixing scheduling strategy
CN104023042B (en) Cloud platform resource scheduling method
CN106020933A (en) Ultra-lightweight virtual machine-based cloud computing dynamic resource scheduling system and method
Sun et al. Research and simulation of task scheduling algorithm in cloud computing
CN102708003A (en) Method for allocating resources under cloud platform
Li et al. An effective scheduling strategy based on hypergraph partition in geographically distributed datacenters
Arabnejad et al. Multi-QoS constrained and profit-aware scheduling approach for concurrent workflows on heterogeneous systems
Thaman et al. Green cloud environment by using robust planning algorithm
CN109240795A (en) A kind of resource regulating method of the cloud computing resources pool model suitable for super fusion IT infrastructure
CN104917839A (en) Load balancing method for use in cloud computing environment
Wang et al. Task scheduling algorithm based on improved Min-Min algorithm in cloud computing environment
CN115134371A (en) Scheduling method, system, equipment and medium containing edge network computing resources
CN115586961A (en) AI platform computing resource task scheduling method, device and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20181218

Address after: 430070 No. 88, Academy of Posts Road, Hongshan District, Wuhan City, Hubei Province

Patentee after: WUHAN FIBERHOME INFORMATION INTEGRATION TECHNOLOGIES Co.,Ltd.

Address before: 510640 2401, unit 371-1, Zhong Gong education building, five mountain road, Tianhe District, Guangzhou, Guangdong.

Patentee before: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

Effective date of registration: 20181218

Address after: 510640 2401, unit 371-1, Zhong Gong education building, five mountain road, Tianhe District, Guangzhou, Guangdong.

Patentee after: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

Address before: 210044 Ning six road, Pukou District, Nanjing, Jiangsu Province, No. 219

Patentee before: Nanjing University of Information Science and Technology

TR01 Transfer of patent right