SlideShare uma empresa Scribd logo
1 de 21
PRESENTATION BY,
VETRI DEEPIKA . K(13L249), III ECE ‘B’;
SAJITHA.S(13N125),III EIE ‘A’,
KARPAGAM COLLEGE OF ENGINEERING,CBE.
Contents…
 What is load balancing?
 Why do we go for load balancing?
 Goals of load balancing
 General approaches for load balancing
push migration
pull migration
 Types of load balancing
static load balancing
dynamic load balancing
 Round Robin DLB-Pseudocode
 Load balancing in life
What is load balancing ?
A computer methodology
to distribute workload across multiple computers
or a computer cluster , network links, central
processing units ,disk drives or other resources
networking
Why do we go for load balancing ?
 High Availability
 High Reliability
 High Scalability
 Ease of maintainance
 Resource sharing
Load Balancing attempts to keep the workload evenly distributed across all
processors in an SMP(symmetric multi-procesor system) system
It is necessary where each processor has its own private queue
Goals Of Load Balancing…
 Achieve optimal resource utilization
 Maximize throughput
 Minimize response time
 Avoid overload
 Avoid Crashing
Symmetric Multiprocessor System
 A symmetric multiprocessor system (SMP) is
a multiprocessor system with centralized shared
memory called main memory (MM) operating
under a single operating system with two or more
homogeneous processors executing different
programs and working on different data, with the
capability to share resources (memory, I/O device
etc.), and connected using a system bus.
 Usually each processor has an associated private
high-speed memory known as cache memory to
speed-up the MM data access and to reduce the
system bus traffic.
General Approaches to Load Balancing…
 Push migration
overloaded process in one CPU(processor) is PUSHED to another processor
for processing.
 Pull migration
the process which is overloaded is PULLED from a processor and its put
under another processor for processing.
General Approaches to Load Balancing…
Technically …
Push Migration
 A specific task periodically checks the load on each processor.
 If it finds an imbalance – it evenly distributes the load by moving (or pushing) processes from
overloaded to idle or less-busy processors.
Pull Migration
 It occurs when an idle processor pulls a waiting task from a busy processor.
Types of load balancing
 Static load balancing
 Dynamic load balancing
Types of load balancing:
STATIC LOAD BALANCING
It is the type of Load Balancing which is often referred to as the mapping
problem, the task is to map a static process graph onto a fixed hardware topology
in order to minimise dilation and process load differences.
DYNAMIC LOAD BALANCING
It is desirable in a distributed system to have the system load balanced
evenly among the nodes so that the mean job response time is minimized.
Algorithms for load balancing:
Sender-Initiated Algorithm
In sender-initiated algorithm, sender having high load tries to transfer task to
another processor (receiver) which have low load. So the node which is
congested tries to move some workload to the node which is not congested.
Receiver-Initiated Algorithm
An underloaded node (sender) tries to get a task to an overloaded node
(receiver)
ROUND ROBIN DYNAMIC LOAD BALANCING:
Pseudocode:
The weighted round-robin scheduling is designed to better handle servers with
different processing capacities. Each server can be assigned a weight, an integer value that
indicates the processing capacity. Servers with higher weights receive new connections first
than those with less weights, and servers with higher weights get more connections than those
with less weights and servers with equal weights get equal connections.
Suppose that there is a server set ''S'' = {S0, S1, …, Sn-1};
W(Si) indicates the weight of Si;
''i'' indicates the server selected last time, and ''i'' is initialized with -1;
''cw'' is the current weight in scheduling, and cw is initialized with zero;
max(S) is the maximum weight of all the servers in S;
gcd(S) is the greatest common divisor of all server weights in S;
while (true)
{
i = (i + 1) mod n;
if (i == 0) {
cw = cw - gcd(S);
if (cw <= 0) {
cw = max(S);
if (cw == 0)
return NULL;
}
}
if (W(Si) >= cw)
return Si;
}
Expected output:
For example, the real servers, A, B and C, have the weights, 4, 3, 2 respectively, a scheduling
sequence will be AABABCABC in a scheduling period (mod sum(Wi)).
Enter the no of processes : 3
Enter weight of P1 : 4
Enter weight of P2 : 3
Enter weight of P3 : 2
Scheduling sequence will be as follow
P1  P1  P2  P1  P2  P3  P1  P2  P3
Time slice will be allotted to each process and hence the processes will be processed with
respect to this time slice.
Unbalanced Life…
Life with load balancing…
A load balancer balances the workload among a multiprocessor system and increases
the efficiency of the system and network.
Likewise , when we balance the regular work in our life , we will be able to manage
everything and make our life an effective one
“IF YOU BALANCE YOUR CHORES , LIFE WILL BE CINCH”
Load Balancing In Life..!
Queries???

Mais conteúdo relacionado

Mais procurados

SYNCHRONIZATION IN MULTIPROCESSING
SYNCHRONIZATION IN MULTIPROCESSINGSYNCHRONIZATION IN MULTIPROCESSING
SYNCHRONIZATION IN MULTIPROCESSINGAparna Bhadran
 
Load Balancing In Cloud Computing newppt
Load Balancing In Cloud Computing newpptLoad Balancing In Cloud Computing newppt
Load Balancing In Cloud Computing newpptUtshab Saha
 
Load Balancing in Cloud
Load Balancing in CloudLoad Balancing in Cloud
Load Balancing in CloudMphasis
 
Logical Clocks (Distributed computing)
Logical Clocks (Distributed computing)Logical Clocks (Distributed computing)
Logical Clocks (Distributed computing)Sri Prasanna
 
Applications of paralleL processing
Applications of paralleL processingApplications of paralleL processing
Applications of paralleL processingPage Maker
 
Types of Load distributing algorithm in Distributed System
Types of Load distributing algorithm in Distributed SystemTypes of Load distributing algorithm in Distributed System
Types of Load distributing algorithm in Distributed SystemDHIVYADEVAKI
 
Security issues in manet
Security issues in manetSecurity issues in manet
Security issues in manetflowerjaan
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memoryAshish Kumar
 
Introduction to Parallel and Distributed Computing
Introduction to Parallel and Distributed ComputingIntroduction to Parallel and Distributed Computing
Introduction to Parallel and Distributed ComputingSayed Chhattan Shah
 
Load Balancing In Distributed Computing
Load Balancing In Distributed ComputingLoad Balancing In Distributed Computing
Load Balancing In Distributed ComputingRicha Singh
 
management of distributed transactions
management of distributed transactionsmanagement of distributed transactions
management of distributed transactionsNilu Desai
 
Synchronization in distributed systems
Synchronization in distributed systems Synchronization in distributed systems
Synchronization in distributed systems SHATHAN
 
Destination Sequenced Distance Vector Routing (DSDV)
Destination Sequenced Distance Vector Routing (DSDV)Destination Sequenced Distance Vector Routing (DSDV)
Destination Sequenced Distance Vector Routing (DSDV)ArunChokkalingam
 
Implementation levels of virtualization
Implementation levels of virtualizationImplementation levels of virtualization
Implementation levels of virtualizationGokulnath S
 

Mais procurados (20)

SYNCHRONIZATION IN MULTIPROCESSING
SYNCHRONIZATION IN MULTIPROCESSINGSYNCHRONIZATION IN MULTIPROCESSING
SYNCHRONIZATION IN MULTIPROCESSING
 
Load Balancing In Cloud Computing newppt
Load Balancing In Cloud Computing newpptLoad Balancing In Cloud Computing newppt
Load Balancing In Cloud Computing newppt
 
Load Balancing in Cloud
Load Balancing in CloudLoad Balancing in Cloud
Load Balancing in Cloud
 
Cloud computing
Cloud computingCloud computing
Cloud computing
 
Logical Clocks (Distributed computing)
Logical Clocks (Distributed computing)Logical Clocks (Distributed computing)
Logical Clocks (Distributed computing)
 
6.distributed shared memory
6.distributed shared memory6.distributed shared memory
6.distributed shared memory
 
Distributed Operating System_4
Distributed Operating System_4Distributed Operating System_4
Distributed Operating System_4
 
Applications of paralleL processing
Applications of paralleL processingApplications of paralleL processing
Applications of paralleL processing
 
Types of Load distributing algorithm in Distributed System
Types of Load distributing algorithm in Distributed SystemTypes of Load distributing algorithm in Distributed System
Types of Load distributing algorithm in Distributed System
 
Security issues in manet
Security issues in manetSecurity issues in manet
Security issues in manet
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memory
 
Desktop and multiprocessor systems
Desktop and multiprocessor systemsDesktop and multiprocessor systems
Desktop and multiprocessor systems
 
Distributed Coordination-Based Systems
Distributed Coordination-Based SystemsDistributed Coordination-Based Systems
Distributed Coordination-Based Systems
 
Distributed Systems Naming
Distributed Systems NamingDistributed Systems Naming
Distributed Systems Naming
 
Introduction to Parallel and Distributed Computing
Introduction to Parallel and Distributed ComputingIntroduction to Parallel and Distributed Computing
Introduction to Parallel and Distributed Computing
 
Load Balancing In Distributed Computing
Load Balancing In Distributed ComputingLoad Balancing In Distributed Computing
Load Balancing In Distributed Computing
 
management of distributed transactions
management of distributed transactionsmanagement of distributed transactions
management of distributed transactions
 
Synchronization in distributed systems
Synchronization in distributed systems Synchronization in distributed systems
Synchronization in distributed systems
 
Destination Sequenced Distance Vector Routing (DSDV)
Destination Sequenced Distance Vector Routing (DSDV)Destination Sequenced Distance Vector Routing (DSDV)
Destination Sequenced Distance Vector Routing (DSDV)
 
Implementation levels of virtualization
Implementation levels of virtualizationImplementation levels of virtualization
Implementation levels of virtualization
 

Destaque

Leadership Inspiration and Motivation
Leadership Inspiration and MotivationLeadership Inspiration and Motivation
Leadership Inspiration and MotivationHeyday ApS
 
Leadership - An Inspiration from Good to Great
Leadership - An Inspiration from Good to GreatLeadership - An Inspiration from Good to Great
Leadership - An Inspiration from Good to GreatSyed Abdul Basit
 
Distributed Systems
Distributed SystemsDistributed Systems
Distributed Systemscfenoy
 
Leadership Inspiration Quote Show by TeamTRI
Leadership Inspiration Quote Show by TeamTRILeadership Inspiration Quote Show by TeamTRI
Leadership Inspiration Quote Show by TeamTRITRI Leadership Resources
 

Destaque (6)

Leadership Inspiration and Motivation
Leadership Inspiration and MotivationLeadership Inspiration and Motivation
Leadership Inspiration and Motivation
 
Leadership - An Inspiration from Good to Great
Leadership - An Inspiration from Good to GreatLeadership - An Inspiration from Good to Great
Leadership - An Inspiration from Good to Great
 
Distributed Systems
Distributed SystemsDistributed Systems
Distributed Systems
 
Leadership Inspiration Quote Show by TeamTRI
Leadership Inspiration Quote Show by TeamTRILeadership Inspiration Quote Show by TeamTRI
Leadership Inspiration Quote Show by TeamTRI
 
The Rise Of China
The Rise Of ChinaThe Rise Of China
The Rise Of China
 
The 2016 Economic Outlook in 17 Slides
The 2016 Economic Outlook in 17 SlidesThe 2016 Economic Outlook in 17 Slides
The 2016 Economic Outlook in 17 Slides
 

Semelhante a Load balancing

Iaetsd appliances of harmonizing model in cloud
Iaetsd appliances of harmonizing model in cloudIaetsd appliances of harmonizing model in cloud
Iaetsd appliances of harmonizing model in cloudIaetsd Iaetsd
 
40414094210-phpapp01 (1).pdf
40414094210-phpapp01 (1).pdf40414094210-phpapp01 (1).pdf
40414094210-phpapp01 (1).pdfRebaMaheen
 
Modified Active Monitoring Load Balancing with Cloud Computing
Modified Active Monitoring Load Balancing with Cloud ComputingModified Active Monitoring Load Balancing with Cloud Computing
Modified Active Monitoring Load Balancing with Cloud Computingijsrd.com
 
Load Rebalancing for Distributed Hash Tables in Cloud Computing
Load Rebalancing for Distributed Hash Tables in Cloud ComputingLoad Rebalancing for Distributed Hash Tables in Cloud Computing
Load Rebalancing for Distributed Hash Tables in Cloud Computingiosrjce
 
Cloud Partitioning of Load Balancing Using Round Robin Model
Cloud Partitioning of Load Balancing Using Round Robin ModelCloud Partitioning of Load Balancing Using Round Robin Model
Cloud Partitioning of Load Balancing Using Round Robin ModelIJCERT
 
Load balancing in Distributed Systems
Load balancing in Distributed SystemsLoad balancing in Distributed Systems
Load balancing in Distributed SystemsRicha Singh
 
Iaetsd improved load balancing model based on
Iaetsd improved load balancing model based onIaetsd improved load balancing model based on
Iaetsd improved load balancing model based onIaetsd Iaetsd
 
An Adaptive Load Sharing Algorithm for Heterogeneous Distributed System
An Adaptive Load Sharing Algorithm for Heterogeneous Distributed SystemAn Adaptive Load Sharing Algorithm for Heterogeneous Distributed System
An Adaptive Load Sharing Algorithm for Heterogeneous Distributed SystemIJORCS
 
Simulation of BRKSS Architecture for Data Warehouse Employing Shared Nothing ...
Simulation of BRKSS Architecture for Data Warehouse Employing Shared Nothing ...Simulation of BRKSS Architecture for Data Warehouse Employing Shared Nothing ...
Simulation of BRKSS Architecture for Data Warehouse Employing Shared Nothing ...Dr. Amarjeet Singh
 
Comparative Study of Effects of Delay in Load Balancing Scheme for Highly Loa...
Comparative Study of Effects of Delay in Load Balancing Scheme for Highly Loa...Comparative Study of Effects of Delay in Load Balancing Scheme for Highly Loa...
Comparative Study of Effects of Delay in Load Balancing Scheme for Highly Loa...idescitation
 
load-balancing-method-for-embedded-rt-system-20120711-0940
load-balancing-method-for-embedded-rt-system-20120711-0940load-balancing-method-for-embedded-rt-system-20120711-0940
load-balancing-method-for-embedded-rt-system-20120711-0940Samsung Electronics
 

Semelhante a Load balancing (20)

Iaetsd appliances of harmonizing model in cloud
Iaetsd appliances of harmonizing model in cloudIaetsd appliances of harmonizing model in cloud
Iaetsd appliances of harmonizing model in cloud
 
Load Balancing.pptx
Load Balancing.pptxLoad Balancing.pptx
Load Balancing.pptx
 
40414094210-phpapp01 (1).pdf
40414094210-phpapp01 (1).pdf40414094210-phpapp01 (1).pdf
40414094210-phpapp01 (1).pdf
 
Modified Active Monitoring Load Balancing with Cloud Computing
Modified Active Monitoring Load Balancing with Cloud ComputingModified Active Monitoring Load Balancing with Cloud Computing
Modified Active Monitoring Load Balancing with Cloud Computing
 
L09
L09L09
L09
 
Load Rebalancing for Distributed Hash Tables in Cloud Computing
Load Rebalancing for Distributed Hash Tables in Cloud ComputingLoad Rebalancing for Distributed Hash Tables in Cloud Computing
Load Rebalancing for Distributed Hash Tables in Cloud Computing
 
C017311316
C017311316C017311316
C017311316
 
Cloud Partitioning of Load Balancing Using Round Robin Model
Cloud Partitioning of Load Balancing Using Round Robin ModelCloud Partitioning of Load Balancing Using Round Robin Model
Cloud Partitioning of Load Balancing Using Round Robin Model
 
Load balancing in Distributed Systems
Load balancing in Distributed SystemsLoad balancing in Distributed Systems
Load balancing in Distributed Systems
 
Iaetsd improved load balancing model based on
Iaetsd improved load balancing model based onIaetsd improved load balancing model based on
Iaetsd improved load balancing model based on
 
An Adaptive Load Sharing Algorithm for Heterogeneous Distributed System
An Adaptive Load Sharing Algorithm for Heterogeneous Distributed SystemAn Adaptive Load Sharing Algorithm for Heterogeneous Distributed System
An Adaptive Load Sharing Algorithm for Heterogeneous Distributed System
 
Aggarwal Draft
Aggarwal DraftAggarwal Draft
Aggarwal Draft
 
Simulation of BRKSS Architecture for Data Warehouse Employing Shared Nothing ...
Simulation of BRKSS Architecture for Data Warehouse Employing Shared Nothing ...Simulation of BRKSS Architecture for Data Warehouse Employing Shared Nothing ...
Simulation of BRKSS Architecture for Data Warehouse Employing Shared Nothing ...
 
B1804010610
B1804010610B1804010610
B1804010610
 
Srushti_M.E_PPT.ppt
Srushti_M.E_PPT.pptSrushti_M.E_PPT.ppt
Srushti_M.E_PPT.ppt
 
20211CSG0035 (2).pptx
20211CSG0035 (2).pptx20211CSG0035 (2).pptx
20211CSG0035 (2).pptx
 
J0210053057
J0210053057J0210053057
J0210053057
 
Comparative Study of Effects of Delay in Load Balancing Scheme for Highly Loa...
Comparative Study of Effects of Delay in Load Balancing Scheme for Highly Loa...Comparative Study of Effects of Delay in Load Balancing Scheme for Highly Loa...
Comparative Study of Effects of Delay in Load Balancing Scheme for Highly Loa...
 
37
3737
37
 
load-balancing-method-for-embedded-rt-system-20120711-0940
load-balancing-method-for-embedded-rt-system-20120711-0940load-balancing-method-for-embedded-rt-system-20120711-0940
load-balancing-method-for-embedded-rt-system-20120711-0940
 

Último

Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfrs7054576148
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptMsecMca
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfRagavanV2
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 

Último (20)

Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdf
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 

Load balancing

  • 1. PRESENTATION BY, VETRI DEEPIKA . K(13L249), III ECE ‘B’; SAJITHA.S(13N125),III EIE ‘A’, KARPAGAM COLLEGE OF ENGINEERING,CBE.
  • 2.
  • 3. Contents…  What is load balancing?  Why do we go for load balancing?  Goals of load balancing  General approaches for load balancing push migration pull migration  Types of load balancing static load balancing dynamic load balancing  Round Robin DLB-Pseudocode  Load balancing in life
  • 4. What is load balancing ? A computer methodology to distribute workload across multiple computers or a computer cluster , network links, central processing units ,disk drives or other resources networking
  • 5. Why do we go for load balancing ?  High Availability  High Reliability  High Scalability  Ease of maintainance  Resource sharing Load Balancing attempts to keep the workload evenly distributed across all processors in an SMP(symmetric multi-procesor system) system It is necessary where each processor has its own private queue
  • 6. Goals Of Load Balancing…  Achieve optimal resource utilization  Maximize throughput  Minimize response time  Avoid overload  Avoid Crashing
  • 7. Symmetric Multiprocessor System  A symmetric multiprocessor system (SMP) is a multiprocessor system with centralized shared memory called main memory (MM) operating under a single operating system with two or more homogeneous processors executing different programs and working on different data, with the capability to share resources (memory, I/O device etc.), and connected using a system bus.  Usually each processor has an associated private high-speed memory known as cache memory to speed-up the MM data access and to reduce the system bus traffic.
  • 8. General Approaches to Load Balancing…  Push migration overloaded process in one CPU(processor) is PUSHED to another processor for processing.  Pull migration the process which is overloaded is PULLED from a processor and its put under another processor for processing.
  • 9. General Approaches to Load Balancing… Technically … Push Migration  A specific task periodically checks the load on each processor.  If it finds an imbalance – it evenly distributes the load by moving (or pushing) processes from overloaded to idle or less-busy processors. Pull Migration  It occurs when an idle processor pulls a waiting task from a busy processor.
  • 10. Types of load balancing  Static load balancing  Dynamic load balancing
  • 11. Types of load balancing: STATIC LOAD BALANCING It is the type of Load Balancing which is often referred to as the mapping problem, the task is to map a static process graph onto a fixed hardware topology in order to minimise dilation and process load differences. DYNAMIC LOAD BALANCING It is desirable in a distributed system to have the system load balanced evenly among the nodes so that the mean job response time is minimized.
  • 12. Algorithms for load balancing: Sender-Initiated Algorithm In sender-initiated algorithm, sender having high load tries to transfer task to another processor (receiver) which have low load. So the node which is congested tries to move some workload to the node which is not congested. Receiver-Initiated Algorithm An underloaded node (sender) tries to get a task to an overloaded node (receiver)
  • 13. ROUND ROBIN DYNAMIC LOAD BALANCING: Pseudocode: The weighted round-robin scheduling is designed to better handle servers with different processing capacities. Each server can be assigned a weight, an integer value that indicates the processing capacity. Servers with higher weights receive new connections first than those with less weights, and servers with higher weights get more connections than those with less weights and servers with equal weights get equal connections. Suppose that there is a server set ''S'' = {S0, S1, …, Sn-1}; W(Si) indicates the weight of Si; ''i'' indicates the server selected last time, and ''i'' is initialized with -1; ''cw'' is the current weight in scheduling, and cw is initialized with zero; max(S) is the maximum weight of all the servers in S; gcd(S) is the greatest common divisor of all server weights in S;
  • 14. while (true) { i = (i + 1) mod n; if (i == 0) { cw = cw - gcd(S); if (cw <= 0) { cw = max(S); if (cw == 0) return NULL; } } if (W(Si) >= cw) return Si; }
  • 15. Expected output: For example, the real servers, A, B and C, have the weights, 4, 3, 2 respectively, a scheduling sequence will be AABABCABC in a scheduling period (mod sum(Wi)). Enter the no of processes : 3 Enter weight of P1 : 4 Enter weight of P2 : 3 Enter weight of P3 : 2 Scheduling sequence will be as follow P1  P1  P2  P1  P2  P3  P1  P2  P3 Time slice will be allotted to each process and hence the processes will be processed with respect to this time slice.
  • 16.
  • 18. Life with load balancing… A load balancer balances the workload among a multiprocessor system and increases the efficiency of the system and network. Likewise , when we balance the regular work in our life , we will be able to manage everything and make our life an effective one “IF YOU BALANCE YOUR CHORES , LIFE WILL BE CINCH”
  • 19. Load Balancing In Life..!
  • 20.

Notas do Editor

  1. THROUGHPUT: It is the measure of how many units of information/data a system can process in a given amount of time.