36
Utshab Saha, Avijit Podder, Hillol Dhar, Shubrahjoity Paul Under the guidance of: Prof. Santanu Dam GROUP NO.:- 5

Load Balancing In Cloud Computing newppt

Embed Size (px)

Citation preview

Page 1: Load Balancing In Cloud Computing newppt

Utshab Saha, Avijit Podder, Hillol Dhar, Shubrahjoity Paul

Under the guidance of: Prof. Santanu DamGROUP NO.:- 5

Page 2: Load Balancing In Cloud Computing newppt

Topics

Page 3: Load Balancing In Cloud Computing newppt

Introduction

Page 4: Load Balancing In Cloud Computing newppt

Introduction

• Principles followed by Cloud Computing.• Resource Pooling.• Virtualization.• Elasticity.• Automatic resource deployment.• Metered Billing.

Cloud

Actual

resources

utshab saha
Page 5: Load Balancing In Cloud Computing newppt

Background

Page 6: Load Balancing In Cloud Computing newppt

BackgroundCloud component

• Cloud client platforms.• Thick client.• Thin client.• Zero client.(Ultra thin)

Cloud server

Thin clientThin client

Intern

et

Thick clientThick clientInternet

Page 7: Load Balancing In Cloud Computing newppt

BackgroundCloud component

• Cloud Storage• Public cloud.• Private cloud.• Community cloud.• Hybrid cloud.

Public cloud

R1

R2

R3

Shared resourceShared resource

UB 1

UB 2

UB 3

UB 4

Private cloud

R1

R2

R3

UB 1/Org 1UB 2/Org 1

Private resourcePrivate resource

Page 8: Load Balancing In Cloud Computing newppt

BackgroundCloud component

utshab saha
Avijit end.
Page 9: Load Balancing In Cloud Computing newppt

• Cloud Network• High bandwidth(low latency).• Agile network.• Network security.

utshab saha
Kai start
Page 10: Load Balancing In Cloud Computing newppt

Background

Page 11: Load Balancing In Cloud Computing newppt

Background

• Deployment.• Public cloud.• Private cloud.• Community cloud.• Hybrid cloud.

Public

Page 12: Load Balancing In Cloud Computing newppt

Background

• Deployment.• Public cloud.• Private cloud.• Community cloud.• Hybrid cloud.

Private

Page 13: Load Balancing In Cloud Computing newppt

Background

• Deployment.• Public cloud.• Private cloud.• Community cloud.• Hybrid cloud.

Community

Page 14: Load Balancing In Cloud Computing newppt

Background

• Deployment.• Public cloud.• Private cloud.• Community cloud.• Hybrid cloud.

Hybrid

utshab saha
Kai end
Page 15: Load Balancing In Cloud Computing newppt

Background

• Load balancing.• Type of load balancing.• Static.• Dynamic.

• Need of load balancing.• Improving the performance.• Maintaining the system stability.• Quality of services.(QoS)• Building fault tolerance.

utshab saha
Hilol start
Page 16: Load Balancing In Cloud Computing newppt

Algorithm Survey from several Literature

• Proposed several load balancing algorithms• Scheduling algorithms.• Round Robin.• FCFS.

• Soft computing based algorithms.• Stochastic algorithm.[1]• Genetic algorithm.[2]• Ant colony optimization algorithm.[3]

Page 17: Load Balancing In Cloud Computing newppt

Algorithm Survey from several Literature

From: Dam santanu et. Al. 2015 C3IT

Page 18: Load Balancing In Cloud Computing newppt

Proposed work

• Our proposed algorithm.• VM allocation optimization using Simulated annealing.

• Host Side optimization.

• Target.• Balancing load of the virtual nodes and reducing Response Time(RT).

• Progress with the project.• Using Cloud Sim simulated Data Centers, Virtual Machines, Cloudlets.

• Virtually distributed the load.

Page 19: Load Balancing In Cloud Computing newppt

Proposed work

• Progress with project.

Page 20: Load Balancing In Cloud Computing newppt

Proposed work

• Our next move.• Migrating to Cloud Analyst and implementing our

proposed algorithm.

Page 21: Load Balancing In Cloud Computing newppt

OUR WORK

• The two algorithms implemented are 1) ROUND ROBIN. 2)FCFS. 3)SIMULATED ANNEALING

utshab saha
Hilol end
Page 22: Load Balancing In Cloud Computing newppt

• Round robin is the scheduling algorithm used by the CPU during execution of the process.• All processes in this algorithm are kept in the circular

queue also known as ready queue.• By using this algorithm, CPU makes sure, time slices

( any natural number ) are assigned  to each process in equal portions and in circular order

utshab saha
Utshab start
Page 23: Load Balancing In Cloud Computing newppt

IMPLEMENTING ROUND ROBIN

public int getNextAvailableVm(){        currVm++;                if (currVm >= vmStatesList.size()){            currVm = 0;        }                allocatedVm(currVm);                return currVm;            }

Page 24: Load Balancing In Cloud Computing newppt

RESULT OF ROUND ROBIN ALGORITHM

Page 25: Load Balancing In Cloud Computing newppt

RESULT OF ROUND ROBIN ALGORITHM

Page 26: Load Balancing In Cloud Computing newppt

First Come First Serve

• First come, first served (FCFS) is an operating system process scheduling algorithm and a network routing management mechanism.•With first come, first served, what comes first is handled

first.• The next request in line will be executed once the one

before it is complete.

Page 27: Load Balancing In Cloud Computing newppt

IMPLEMENTING FCFS

public int getNextAvailableVm() {                int temp=-1;        if(vmStatesList.size()>0) {            for (Iterator<Integer> itr = vmStatesList.keySet().iterator(); itr.hasNext();) {                                temp = itr.next();                VirtualMachineState state = vmStatesList.get(temp);                if(state.equals(VirtualMachineState.AVAILABLE)){                    allocatedVm(temp);                    break;                }            }        }        return temp;            }

Page 28: Load Balancing In Cloud Computing newppt

RESULT OF FCFS ALGORITM

Page 29: Load Balancing In Cloud Computing newppt

RESULT OF FCFS ALGORITM

Page 30: Load Balancing In Cloud Computing newppt

Simulated Annealing

• Simulated annealing (SA) is a probabilistic technique.• VMs are assigned to have probability which tells availability of

VMs.• Then using function call we checked highest probability and

selected the VM.• Accordingly decremented the probability.

Page 31: Load Balancing In Cloud Computing newppt

Implementation of Simulated Annealing

•Probability Data Structure static float[][] anArrayOfFloats = new float[2][999999]; //probability array

•Implementationprivate float getHighProbability(){

float high_probability = anArrayOfFloats[1][0];for(int i = 1; i<vmStatesList.size(); i++) {if(high_probability<anArrayOfFloats[1][i])

high_probability = anArrayOfFloats[1][i];}return high_probability;

}

Page 32: Load Balancing In Cloud Computing newppt

Result of Simulated Annealing

Page 33: Load Balancing In Cloud Computing newppt

COMPARISON STUDY

Algorithms

Over All Response Time Data Center Processing Time

Avg(ms) Min(ms) Max(ms) Avg(ms) Min(ms) Max(ms)Round Robin

300.06 237.06 369.12 0.34 0.02 0.61

FCFS 300.09 237.06 369.12 0.38 0.08 4.5Simulated Annealing

297.87 271.61 346.62 0.48 0.10 0.61

Page 34: Load Balancing In Cloud Computing newppt

Checks best Host

according to

Fitness

VM requested for Host

VM queueHost 1Host 2

.

.

.Host n

Host Side Optimization

Data center

Host information

Request for Host Info

Best Host

Request for Host

Request for Host

Best Host

Our proposed algorithm to optimize Host selection is Genetic Algorithm

Page 35: Load Balancing In Cloud Computing newppt

References

[1] Avani Kansara, Ronak Patel et al. “A Various Load Balancing Techniques and Challenges in Cloud Computing – Survey ” International Journal for Scientific Research & Development Vol. 2, Issue 10, 2014 ISSN (online): 2321-0613 [2] Dasgupta, Kousik et al. "A Genetic Algorithm (GA) Based Load Balancing Strategy For Cloud Computing". Procedia Technology 10 (2013): 340-347. Web.[3] Santanu Dam 1, Gopa Mandal2, Kousik Dasgupta3, Paramartha Dutta4 et al. “An Ant Colony Based Load Balancing Strategy in Cloud Computing “. Advanced Computing, Networking and Informatics  Volume 2 Smart Innovation, Systems and Technologies Volume 28, 2014, pp 403 413

Page 36: Load Balancing In Cloud Computing newppt