0% found this document useful (0 votes)
163 views30 pages

Pso PPT F

Uploaded by

Sasmita moharana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
163 views30 pages

Pso PPT F

Uploaded by

Sasmita moharana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 30

PSO For Scheduling and Load

Balancing
in Cloud Environment

Student Name : Sasmita Moharana


Roll no: 206117033
Overview
• Cloud Computing is a technology that facilitate on demand service
application and provisioning of Virtual Machines Dynamically which
incur huge data transmission and computation cost.
• There are so many Challenges faced by Cloud Provider .
• Provisioning of the Resources and Load Balancing as the
major challenge.
• Many algorithms are available for proper load balancing. Here the
work on particle swarm based optimization is focused.
• Aim is to develop an efficient Scheduling and Load Balancing
Algorithm to minimize Performance parameters.
Problem Addressed
• There are three important problem domains that are addressed:
optimizing makespan, Response time and performance from the system .
• The load on the cloud is increasing tremendously with the development
of new applications.
• The Load Balancing can be carved in two classes: static and dynamic.
• VMs are provisioned to service the workloads, each with different
requirements submitted by cloud users.
• Throughput of the cloud should be directly proportional to the
efficient utilization of cloud resources.
• Special focus is needed when these tasks change their demand
for resources .
• A scheduling problem is finding an optimal or near optimal solution .
Scope of the Project
• Scheduling using PSO algorithm for resource utilization in cloud computing is a vital
research area.
• Particle swarm optimization algorithmic rule has been accepted as a
global improvement algorithmic rule .
• It is claimed that the PSO has been showing stability and convergence in a
multidimensional complex space also.
• Huge capability for being channelized in complex problems for distributed
optimization and control, PSO is limited to initial set of particles.
• It is still in its infancy. Many research works have mentioned application of PSO in
task scheduling.
• PSO Task scheduling Load balancing is the most successful meta-heuristic for
generations of optimal scheduling solutions.
Summary of existing solution
• One of the successful model of swarm intelligence is the ACO model
which was first introduced by Dorigo in1992, used to solve discrete
optimization problems. It was inspired from the ant colonies.
• With several passes over the search space and updating local best
and global best solutions during each pass, PSO performed much
faster than ACO .
• Artificial Bee colony algorithm was proposed by Karaboga , in 1995
and was based on the foraging and social behavior of honey bees.
• Kokilavani presented a Min-min algorithm primarily for Load
balancing which enhances resource utilization and reduces makespan.
Summary of existing solution

• Genetic Algorithm was proposed by Holand , who was inspired from the biological
evolution in 1975. GA is based on the biological concept of population generation. PSO is
simpler and has a more effective memory capability than GA.
• PSO is more efficient in maintaining the diversity of the swarm, since all the particles use
the information related to the most successful particle in order to improve themselves.
• In Genetic algorithm, the worse solutions are discarded and only the new ones are
saved.
• Rana et al., had compared the optimization algorithms for resource scheduling in the
clouds, the most growing and used algorithms are: ABC, ACO,PSO, and GA, because of
the fact that they are easier to implement and because of their performance in finding a
solution.
• Wen et al. have combined ACO with PSO so that the algorithm should
not give early incomplete result into local optimal solution .
• Mathiyalagan et al. proposed a hybrid technique using ACO and IWD
algorithm, a recent population-based metaheuristic to upgrade
performance in terms of execution speed and quality of solution.
• Raju et al. combined ACO with Cuckoo Search to get the advantages
of both the algorithms.
• Min-min is a popular heuristic based scheduling algorithm that
assigns tasks to resources that executes them in the fastest possible
time.
PARTICLE SWARM OPTIMIZATION MODEL
Introduction
o Problem Formulation:
• The application is represented as a Directed Acyclic Graph (DAG).
• For each node in the DAG, a weight is assigned.
• A Directed Acyclic Graph (DAG) is represented by G= (V, E).
• The ‘average’ computation time of a task Tk on a compute resource for a certain size
of input is considered known.
• The cost of unit data access from a resource i to a resource j is also considered as
known .
• These costs are non-negative, symmetric, and satisfy the triangle inequality.
• The problem can be stated as: “Finding a task-resource mapping instance M, such that
estimating the total cost and the total time for each compute resource , the highest
cost and also highest time among all the compute resources is minimized and load
balance is achieved.”.
T1

f12 f14
f13
T2 T3 T4

f35
f25 f45
T5

f5.out

DAG of an application's Tasks


Implementation
Cost Minimization Problem
• The goal is to assign the tasks to the available compute resources to
minimize the total cost of computation and total time of completion of an
application.
• The cost is determined using the following equations.
• Cexe(M)j =
• Ctx(M)j =
• Ctotal(M)j= Cexe(M)j + Ctx(M)
• Cost(M)= max(Ctotal(M)j)
• Minimize (Cost(M) )
Time Minimization Problem
• The aim of this problem is to assign tasks to the compute resources such that the
time of computation is minimized. The time is determined with the following
equations:
• Cdata(M)j = + CFT(M)j

• CST(M)j = max (Cdata(M)j, CFT(M)j)


• CFT(M)j = Cst (M)j + Cexe(M)j
• Time(M)=max(CFT(M)j)
• Minimize (Time(M))
Algorithm Design
• Particle swarm optimization (PSO) is a population-based global search swarm intelligence
metaheuristic, introduced by Kennedy and Eberhart [28] in 1995.
• It is inspired by social behavior of organisms such as bird flocking and fish schooling. Particles are
similar to individuals.
• In PSO algorithm, the swarm of particles is stochastically generated initially, and every particle
position represents a possible solution to the problem.
• Each particle is represented by a velocity, a location in the search space and has a memory which
helps it in recalling its previous best position.
• In each iteration, each particle adjusts its velocity based on its best position and the position of
the best particle of the entire population.
• Particles move around in the search space based on the particles’ updated position and velocity
to get an optimized/enhanced solution.
• PSO combines local search methods with global search methods attempting to balance the
exploration and exploitation.
• In PSO, each particle has a position represented by a position vector, and a velocity
represented by a velocity-vector .
• At each iteration, each particle alters its searching direction.
• each particle updates its velocity and position according the equations respectively:
o Vik+1= W Vik + c1 rand1*(pbestki-Xik)+c2 rand2*(gbestk-Xik)
o Xik+1= Xik+ Vi k+1
• where w is called the inertia weight .

• r1 and r2 and are two random numbers ranging between 0 and 1

• c1 and c2 are two positive constants called acceleration coefficients.

• Overall, in the particle swarm model, the particle searches the solutions in the problem space

• In order to keep the particles from flying out of the problem space, each component of must be kept within range.
Encoding Mechanism
• The first step of applying PSO to scheduling problem in the cloud is to encode the
problem.
• In the PSO-based job scheduling scenario presented here, the dimension of the
particles is the number of jobs that need to be allocated and each position of a
particle indicates a mapping between the virtual machines and submitted jobs.
• In particular, each particle is encoded as a vector of integers and the vector length
is set to (number of jobs). In addition, each element in particle delegates a job.
• This element is an integer value between 1 and (number of VMs), which
represents the number of a computing resource (VM index).
• Moreover, the real values (if any) in the particles’ positions resulting from
updating particles velocities and positions are rounded off to the nearest integer.
Fitness Evaluation
• The objective of this study is to minimize the makespan encountered by the job
scheduling, subject to the resource constraints.
• As mentioned before, each particle corresponds to a candidate solution of the
underlying problem.
• In other words, each particle represents a mapping of VM to a job.
• The evaluation of each particle is performed by a fitness function, which allows the
comparison of the efficiency of one schedule to another, based on the objective,
makespan.
• Thus, the fitness value of each schedule solution can be estimated using the time
minimization equation.
• The particle with minimum fitness value is considered as the best solution among
the others.
Algorithm 1 Scheduling Heuristics
1. Calculate average computation cost of all tasks to all resources
2. Calculate average access cost (communication cost/ data size)
3. Compute PSO algorithm
4. For all ready tasks do
5. Assign tasks to resources according to PSO
6. If resource(processor) exceed limit determined for number of tasks
7. Map task to next resource with minimum cost
8. End if
9. End for
10. Update ready tasks list
11. Update communication cost between resources according to current network load
12. Compute PSO
13. Until there are unscheduled tasks
Algorithm 2 PSO Algorithm
1. Set particle dimension as equal to the size of ready tasksin {ti} # T
2. Initialize particles position randomly from PC =1, ..., j and velocity vi randomly.
3. For each particle, calculate its fitness value with respect to Time Minimization
equation presented .
4. If the fitness value is better than the previous best pbest,set the current fitness
value as the new pbest.
5. After Steps 3 and 4 for all particles, select the best particle as gbest.
6. For all particles, calculate velocity and update their positions using the
equations.
7. If the stopping criteria or maximum iteration is not satisfied, repeat from
Step3.
Setting parameters w,c1,c2

Randomly generated
particles x (tasks)

Evaluate fitness for each Update


particle position
FLOW DIAGRAM OF
PSO Algorithm NO
Fitness x < pbest

YES
Update
Pbest = x
velocity

NO
Fitness pbest <
gbest
YES
Gbest=pbest
Untill max iteration reached
Cloudlet VM VM Cloud
Scheduler Scheduler Allocation DC Broker Information
Service

Cloudlet

VM Host Datacenter

BLOCK DIAGRAM 1
Experimental set up:
• The Proposed model is simulated using CloudSim 3.0.3.
• It can run on Linux or windows system.
• CloudSim provides the necessary classes that are needed for scheduling
and provisioning.
• Different parameters such as datacenters, cloudlets, VMs are used in
the Experiment.
• The performance analysis of the proposed model is discussed.
• The experiment setup and the result as Screenshots are presented.
Some heuristic algorithms are implemented such as FCFS, RR .
• PSO is better to both FCFS and Round Robin algorithm.
Results

• Experiment 1
• Experiment 2
• Experiment 3
• Visualization result window with cloud Analyst
Userbase hourly average Userbase hourly average
response time (RR) response time (PSO)
VM Allocation and DC Loading
Summary
o In the proposed methodology the Scheduling and load balancing algorithm is better
compared to other heuristic and meta heuristic approaches.
o As its simple to implement and it does not have complex computation, has few
parameters to adjust.
o Ability to perform parallelly with faster convergence with no overlapping, mutation.
o Efficient with short computational time.
o Additionally, it also balanced the load on compute resources.
o Despite it has certain drawbacks such as can converge prematurely and get trapped with
complex problems.
o In Future Pre-emptive Virtual Machine scheduler can be designed and PSO based
heuristic and its hybrid model can be integrated with workflows of different
applications.
References
• Rajwinder Kaur, and Pawan Luthra, "Load Balancing in cloud computing ", Association of Computer
electronics and electrical engineer, 2014
• Chaczko,zenon and Mahadevan, Vanktesh and AslanZadeh,Sharzad and Mcdermid,christoper,
"Availability and load balancing in cloud computing ", International conference onncomputer and
software modeling,singapore
• http://www.swarmintelligence.org/tutorials.php
• Jigna Acharya and Chirag patel, "Artificial Bee colony-based load balancing in cloud computing ",
National conference In-novative and Emerging Technologies, June 2016.
• J. Kennedy and R. Eberhart, "Particle Swarm Optimization in IEEE conference on Neural Networks",
1995.
• R.N.calheiros , R.Ranjan, A.Beloglazov, C.A.De Rose and R.Buyya, " CloudSim: toolkit for modeling and
simulation of cloud computing environments and evaluation of resource provisioning algorithms"
• Jigan Acharya and Chirag Patel "A Review on Load balancing Technique in cloud
computing,"International Journal of Engineering development and research, december 2015
Thankyou!

You might also like