SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

Group Communication (Distributed computing)
Group Communication (Distributed computing)Group Communication (Distributed computing)
Group Communication (Distributed computing)Sri Prasanna
 
Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Ravindra Raju Kolahalam
 
Distributed system architecture
Distributed system architectureDistributed system architecture
Distributed system architectureYisal Khan
 
Eucalyptus, Nimbus & OpenNebula
Eucalyptus, Nimbus & OpenNebulaEucalyptus, Nimbus & OpenNebula
Eucalyptus, Nimbus & OpenNebulaAmar Myana
 
Distributed computing
Distributed computingDistributed computing
Distributed computingshivli0769
 
File models and file accessing models
File models and file accessing modelsFile models and file accessing models
File models and file accessing modelsishmecse13
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memoryAshish Kumar
 
LOAD BALANCING ALGORITHMS
LOAD BALANCING ALGORITHMSLOAD BALANCING ALGORITHMS
LOAD BALANCING ALGORITHMStanmayshah95
 
Issues in routing protocol
Issues in routing protocolIssues in routing protocol
Issues in routing protocolPradeep Kumar TS
 
Distributed Operating System,Network OS and Middle-ware.??
Distributed Operating System,Network OS and Middle-ware.??Distributed Operating System,Network OS and Middle-ware.??
Distributed Operating System,Network OS and Middle-ware.??Abdul Aslam
 
Communication primitives
Communication primitivesCommunication primitives
Communication primitivesStudent
 
Load Balancing in Cloud
Load Balancing in CloudLoad Balancing in Cloud
Load Balancing in CloudMphasis
 
Load balancing in cloud computing.pptx
Load balancing in cloud computing.pptxLoad balancing in cloud computing.pptx
Load balancing in cloud computing.pptxHitesh Mohapatra
 
Deployment Models of Cloud Computing.pptx
Deployment Models of Cloud Computing.pptxDeployment Models of Cloud Computing.pptx
Deployment Models of Cloud Computing.pptxJaya Silwal
 

Was ist angesagt? (20)

Group Communication (Distributed computing)
Group Communication (Distributed computing)Group Communication (Distributed computing)
Group Communication (Distributed computing)
 
Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]Inter Process Communication Presentation[1]
Inter Process Communication Presentation[1]
 
Distributed system architecture
Distributed system architectureDistributed system architecture
Distributed system architecture
 
Eucalyptus, Nimbus & OpenNebula
Eucalyptus, Nimbus & OpenNebulaEucalyptus, Nimbus & OpenNebula
Eucalyptus, Nimbus & OpenNebula
 
Distributed computing
Distributed computingDistributed computing
Distributed computing
 
File models and file accessing models
File models and file accessing modelsFile models and file accessing models
File models and file accessing models
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memory
 
LOAD BALANCING ALGORITHMS
LOAD BALANCING ALGORITHMSLOAD BALANCING ALGORITHMS
LOAD BALANCING ALGORITHMS
 
Issues in routing protocol
Issues in routing protocolIssues in routing protocol
Issues in routing protocol
 
Cloud Computing & Distributed Computing
Cloud Computing & Distributed ComputingCloud Computing & Distributed Computing
Cloud Computing & Distributed Computing
 
Distributed Operating System,Network OS and Middle-ware.??
Distributed Operating System,Network OS and Middle-ware.??Distributed Operating System,Network OS and Middle-ware.??
Distributed Operating System,Network OS and Middle-ware.??
 
Communication primitives
Communication primitivesCommunication primitives
Communication primitives
 
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
 
Mobile computing (Wireless) Medium Access Control (MAC)
Mobile computing (Wireless) Medium Access Control (MAC)Mobile computing (Wireless) Medium Access Control (MAC)
Mobile computing (Wireless) Medium Access Control (MAC)
 
Deployment Models of Cloud Computing.pptx
Deployment Models of Cloud Computing.pptxDeployment Models of Cloud Computing.pptx
Deployment Models of Cloud Computing.pptx
 
Trends in distributed systems
Trends in distributed systemsTrends in distributed systems
Trends in distributed systems
 
Message passing in Distributed Computing Systems
Message passing in Distributed Computing SystemsMessage passing in Distributed Computing Systems
Message passing in Distributed Computing Systems
 
Virtualization in cloud computing
Virtualization in cloud computingVirtualization in cloud computing
Virtualization in cloud computing
 
Naming in Distributed System
Naming in Distributed SystemNaming in Distributed System
Naming in Distributed System
 

Ähnlich wie Load Balancing Strategies and Types in 40 Characters

loadbalancingincloudcomputing-230214134106-94b39743.pptx
loadbalancingincloudcomputing-230214134106-94b39743.pptxloadbalancingincloudcomputing-230214134106-94b39743.pptx
loadbalancingincloudcomputing-230214134106-94b39743.pptxSufyanAhmed68
 
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 dataAbhishek Sharma
 
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...iosrjce
 
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 - PaperDavid Walker
 
ScalabilityAvailability
ScalabilityAvailabilityScalabilityAvailability
ScalabilityAvailabilitywebuploader
 
Case Study For Replication For PCMS
Case Study For Replication For PCMSCase Study For Replication For PCMS
Case Study For Replication For PCMSShahzad
 
Centralized vs distrbution system
Centralized vs distrbution systemCentralized vs distrbution system
Centralized vs distrbution systemzirram
 
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 appsDirecti Group
 
Server system architecture
Server system architectureServer system architecture
Server system architectureFaiza Hafeez
 
Handling Data in Mega Scale Systems
Handling Data in Mega Scale SystemsHandling Data in Mega Scale Systems
Handling Data in Mega Scale SystemsDirecti Group
 

Ähnlich wie Load Balancing Strategies and Types in 40 Characters (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
 

Mehr von 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
 

Kürzlich hochgeladen

Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
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 MenDelhi Call girls
 
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...Drew Madelung
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
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 MenDelhi Call girls
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
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 interpreternaman860154
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
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 MenDelhi Call girls
 
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 SolutionsEnterprise Knowledge
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
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 RobisonAnna Loughnan Colquhoun
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 

Kürzlich hochgeladen (20)

Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
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
 
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...
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
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
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
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
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
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
 
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
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
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
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 

Load Balancing Strategies and Types in 40 Characters

  • 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.