SlideShare a Scribd company logo
1 of 18
Load Balancing
Contents
What is load Balancing ?
 Goals of Load Balancing
Types of Load Balancing
 Static Load Balancing
Dynamic Load Balancing
Strategies of Load Balancing
Centralised
Distributed
Load-balancing
Load balancing is a computer
networking method to distribute workload
across multiple computers or a computer
cluster, network links, central processing
units, disk drives, or other resources.
Goals of Load-Balancing
Achieve optimal resource utilization
Maximize throughput
Minimize response time
Avoid overload
Avoid crashing
Why to Load-balance ?
 Ease of administration / maintenance
Easily and transparently remove physical servers
from rotation in order to perform any type of
maintenance on that server.
 Resource sharing
Can run multiple instances of an application /
service on a server, can load-balance to different port
based on data analyzed.
Types of Load Balancing
 Static Load Balancing
 Dynamic 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.
Load-Balancing Algorithms
 Least connections
 Round robin
 Round-robin (RR) is one of the simplest scheduling
algorithms for processes in an operating system. Time slices are
assigned to each process in equal portions and in circular order,
handling all processes without priority.
Server Load-balancing
What does a SLB do?
 Gets user to needed resource:
Server must be available
User’s “session” must not be broken
 If user must get to same resource over and over, the SLB device must
ensure that happens (ie, session persistence)
 In order to do work, SLB must:
Know servers – IP/port, availability
Understand details of some protocols (e.g., FTP, SIP, etc)
 Network Address Translation, NAT:
Packets are re-written as they pass through SLB device.
How SLB Devices Make Decisions
 The SLB device can make its load-balancing decisions
based on several factors.
Some of these factors can be obtained from the packet headers (i.e.,
IP address, port numbers, etc.).
Other factors are obtained by looking at the data beyond the
network headers. Examples:
 HTTP Cookies
 HTTP URLs
 SSL Client certificate
 The decisions can be based strictly on flow counts or they
can be based on knowledge of application.
SLB: Architectures
Centralised
SLB device sits between the Clients and the
Servers being load-balanced. The centralised
strategies are only useful for small distributed
systems.
Distributed
SLB device sits off to the side, and only receives
the packets it needs to based on flow setup and
tear down. It work well in large distributed
systems.
SLB: Centralised View with NAT
SLBClient
Server1
Server2
Server3
SLB: Centralised View without NAT
SLBClient
Server1
Server2
Server3
SLB: Distributed Architecture
Client
FE
FE
FE
Server
Server
Server
SLB
FE: Forwarding Engines, which are
responsible for forwarding packets.
They ask the SLB device where to
send the flow.
FE
SLB
Client
Distributed Architecture: Sample Flow
Server1
Server2
Server3
Server4
1: TCP SYN
2: FE asks where to send
flow.
3: Service Mgr tells it to use Server2.
4: flow goes to Server2.
Subsequent packets flow directly from Client to Server2 thru the FE.
The FE must notify the SLB device when the flow ends.
Thank you

More Related Content

What's hot

Fault tolerance in distributed systems
Fault tolerance in distributed systemsFault tolerance in distributed systems
Fault tolerance in distributed systems
sumitjain2013
 

What's hot (20)

Scheduling in Cloud Computing
Scheduling in Cloud ComputingScheduling in Cloud Computing
Scheduling in Cloud Computing
 
Load Balancing in Cloud
Load Balancing in CloudLoad Balancing in Cloud
Load Balancing in Cloud
 
Load balancing in cloud computing.pptx
Load balancing in cloud computing.pptxLoad balancing in cloud computing.pptx
Load balancing in cloud computing.pptx
 
WSN IN IOT
WSN IN IOTWSN IN IOT
WSN IN IOT
 
Cloud computing and service models
Cloud computing and service modelsCloud computing and service models
Cloud computing and service models
 
Cluster Computing
Cluster ComputingCluster Computing
Cluster Computing
 
OSI Model
OSI ModelOSI Model
OSI Model
 
Virtualization in cloud computing ppt
Virtualization in cloud computing pptVirtualization in cloud computing ppt
Virtualization in cloud computing ppt
 
Congestion control
Congestion controlCongestion control
Congestion control
 
Cloud computing security issues and challenges
Cloud computing security issues and challengesCloud computing security issues and challenges
Cloud computing security issues and challenges
 
Cloud Computing Security Challenges
Cloud Computing Security ChallengesCloud Computing Security Challenges
Cloud Computing Security Challenges
 
Fault tolerance in distributed systems
Fault tolerance in distributed systemsFault tolerance in distributed systems
Fault tolerance in distributed systems
 
Apache ppt
Apache pptApache ppt
Apache ppt
 
cloud computing ppt
cloud computing pptcloud computing ppt
cloud computing ppt
 
Application layer protocols
Application layer protocolsApplication layer protocols
Application layer protocols
 
Concurrency control
Concurrency controlConcurrency control
Concurrency control
 
Security in distributed systems
Security in distributed systems Security in distributed systems
Security in distributed systems
 
Cloud security Presentation
Cloud security PresentationCloud security Presentation
Cloud security Presentation
 
Distributed System ppt
Distributed System pptDistributed System ppt
Distributed System ppt
 
Introduction to Parallel and Distributed Computing
Introduction to Parallel and Distributed ComputingIntroduction to Parallel and Distributed Computing
Introduction to Parallel and Distributed Computing
 

Similar to Load balancing

loadbalancingincloudcomputing-230214134106-94b39743.pptx
loadbalancingincloudcomputing-230214134106-94b39743.pptxloadbalancingincloudcomputing-230214134106-94b39743.pptx
loadbalancingincloudcomputing-230214134106-94b39743.pptx
SufyanAhmed68
 
EOUG95 - Client Server Very Large Databases - Paper
EOUG95 - Client Server Very Large Databases - PaperEOUG95 - Client Server Very Large Databases - Paper
EOUG95 - Client Server Very Large Databases - Paper
David Walker
 
ScalabilityAvailability
ScalabilityAvailabilityScalabilityAvailability
ScalabilityAvailability
webuploader
 
Centralized vs distrbution system
Centralized vs distrbution systemCentralized vs distrbution system
Centralized vs distrbution system
zirram
 

Similar to Load balancing (20)

Csc concepts
Csc conceptsCsc concepts
Csc concepts
 
Chapter 3-Processes.ppt
Chapter 3-Processes.pptChapter 3-Processes.ppt
Chapter 3-Processes.ppt
 
loadbalancingincloudcomputing-230214134106-94b39743.pptx
loadbalancingincloudcomputing-230214134106-94b39743.pptxloadbalancingincloudcomputing-230214134106-94b39743.pptx
loadbalancingincloudcomputing-230214134106-94b39743.pptx
 
Document 22.pdf
Document 22.pdfDocument 22.pdf
Document 22.pdf
 
Database System Architectures
Database System ArchitecturesDatabase System Architectures
Database System Architectures
 
SOFTWARE COMPUTING
SOFTWARE COMPUTINGSOFTWARE COMPUTING
SOFTWARE COMPUTING
 
ACE - Comcore
ACE - ComcoreACE - Comcore
ACE - Comcore
 
Parallel processing in data warehousing and big data
Parallel processing in data warehousing and big dataParallel processing in data warehousing and big data
Parallel processing in data warehousing and big data
 
The Grouping of Files in Allocation of Job Using Server Scheduling In Load Ba...
The Grouping of Files in Allocation of Job Using Server Scheduling In Load Ba...The Grouping of Files in Allocation of Job Using Server Scheduling In Load Ba...
The Grouping of Files in Allocation of Job Using Server Scheduling In Load Ba...
 
J017367075
J017367075J017367075
J017367075
 
EOUG95 - Client Server Very Large Databases - Paper
EOUG95 - Client Server Very Large Databases - PaperEOUG95 - Client Server Very Large Databases - Paper
EOUG95 - Client Server Very Large Databases - Paper
 
Sql Server
Sql ServerSql Server
Sql Server
 
ScalabilityAvailability
ScalabilityAvailabilityScalabilityAvailability
ScalabilityAvailability
 
Case Study For Replication For PCMS
Case Study For Replication For PCMSCase Study For Replication For PCMS
Case Study For Replication For PCMS
 
Centralized vs distrbution system
Centralized vs distrbution systemCentralized vs distrbution system
Centralized vs distrbution system
 
Building a Scalable Architecture for web apps
Building a Scalable Architecture for web appsBuilding a Scalable Architecture for web apps
Building a Scalable Architecture for web apps
 
Server system architecture
Server system architectureServer system architecture
Server system architecture
 
cluster computing
cluster computingcluster computing
cluster computing
 
Handling Data in Mega Scale Systems
Handling Data in Mega Scale SystemsHandling Data in Mega Scale Systems
Handling Data in Mega Scale Systems
 
Client server
Client serverClient server
Client server
 

More from ankur bhalla (20)

Data preprocessing
Data preprocessingData preprocessing
Data preprocessing
 
Languages
LanguagesLanguages
Languages
 
E branding
E brandingE branding
E branding
 
Crt
CrtCrt
Crt
 
Johari window
Johari windowJohari window
Johari window
 
Generation of computer
Generation of computerGeneration of computer
Generation of computer
 
Dont mix religion and politics
Dont mix religion and politicsDont mix religion and politics
Dont mix religion and politics
 
Windows 7
Windows 7Windows 7
Windows 7
 
Effective leadership
Effective leadershipEffective leadership
Effective leadership
 
Random and raster scan
Random and raster scanRandom and raster scan
Random and raster scan
 
Flat panel
Flat panelFlat panel
Flat panel
 
Softwares
SoftwaresSoftwares
Softwares
 
Animation in bollywood
Animation in bollywoodAnimation in bollywood
Animation in bollywood
 
Cad
CadCad
Cad
 
5d cinemas
5d cinemas5d cinemas
5d cinemas
 
Animation
AnimationAnimation
Animation
 
Walt disney
Walt disneyWalt disney
Walt disney
 
Olympics
OlympicsOlympics
Olympics
 
Apple.paas2010
Apple.paas2010Apple.paas2010
Apple.paas2010
 
Certifications in IT fields
Certifications in IT fieldsCertifications in IT fields
Certifications in IT fields
 

Recently uploaded

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Recently uploaded (20)

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 

Load balancing

  • 2. Contents What is load Balancing ?  Goals of Load Balancing Types of Load Balancing  Static Load Balancing Dynamic Load Balancing Strategies of Load Balancing Centralised Distributed
  • 3. Load-balancing Load balancing is a computer networking method to distribute workload across multiple computers or a computer cluster, network links, central processing units, disk drives, or other resources.
  • 4. Goals of Load-Balancing Achieve optimal resource utilization Maximize throughput Minimize response time Avoid overload Avoid crashing
  • 5. Why to Load-balance ?  Ease of administration / maintenance Easily and transparently remove physical servers from rotation in order to perform any type of maintenance on that server.  Resource sharing Can run multiple instances of an application / service on a server, can load-balance to different port based on data analyzed.
  • 6. Types of Load Balancing  Static Load Balancing  Dynamic Load Balancing
  • 7. 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.
  • 8. 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.
  • 9. Load-Balancing Algorithms  Least connections  Round robin  Round-robin (RR) is one of the simplest scheduling algorithms for processes in an operating system. Time slices are assigned to each process in equal portions and in circular order, handling all processes without priority.
  • 11. What does a SLB do?  Gets user to needed resource: Server must be available User’s “session” must not be broken  If user must get to same resource over and over, the SLB device must ensure that happens (ie, session persistence)  In order to do work, SLB must: Know servers – IP/port, availability Understand details of some protocols (e.g., FTP, SIP, etc)  Network Address Translation, NAT: Packets are re-written as they pass through SLB device.
  • 12. How SLB Devices Make Decisions  The SLB device can make its load-balancing decisions based on several factors. Some of these factors can be obtained from the packet headers (i.e., IP address, port numbers, etc.). Other factors are obtained by looking at the data beyond the network headers. Examples:  HTTP Cookies  HTTP URLs  SSL Client certificate  The decisions can be based strictly on flow counts or they can be based on knowledge of application.
  • 13. SLB: Architectures Centralised SLB device sits between the Clients and the Servers being load-balanced. The centralised strategies are only useful for small distributed systems. Distributed SLB device sits off to the side, and only receives the packets it needs to based on flow setup and tear down. It work well in large distributed systems.
  • 14. SLB: Centralised View with NAT SLBClient Server1 Server2 Server3
  • 15. SLB: Centralised View without NAT SLBClient Server1 Server2 Server3
  • 16. SLB: Distributed Architecture Client FE FE FE Server Server Server SLB FE: Forwarding Engines, which are responsible for forwarding packets. They ask the SLB device where to send the flow.
  • 17. FE SLB Client Distributed Architecture: Sample Flow Server1 Server2 Server3 Server4 1: TCP SYN 2: FE asks where to send flow. 3: Service Mgr tells it to use Server2. 4: flow goes to Server2. Subsequent packets flow directly from Client to Server2 thru the FE. The FE must notify the SLB device when the flow ends.