Parallel and Distributed lec 10
Parallel and Distributed lec 10
Computing
COMP3139
Contents
• Load Balancing
• Load Balancing Working
• Load Balancing Algorithms
• Types of Load Balancing
• Benefits of Load Balancing
• Challenges of Load Balancing
WHAT IS LOAD BALANCING?
3
WORKING OF LOAD BALANCING
4
WORKING OF LOAD BALANCING
5
LOAD BALANCING ALGORITHMS
1. Round-robin method
Servers have IP addresses that tell the client where to send requests.
The IP address is a long number that is difficult to remember.
6
ROUND-ROBIN METHOD
7
LOAD BALANCING ALGORITHMS
• Round-robin
method
• The name server returns
the IP addresses of different
servers in the server farm
turn by turn or in a round-
robin fashion.
8
LOAD BALANCING ALGORITHMS
3. IP hash method
In the IP hash method, the load balancer performs a mathematical computation, called
hashing, on the client IP address. It converts the client IP address to a number, which is
then mapped to individual servers.
9
LOAD BALANCING ALGORITHMS
10
LOAD BALANCING ALGORITHMS
11
LOAD BALANCING ALGORITHMS
4. Resource-based method
• In the resource-based method, load balancers distribute
traffic by analyzing the current server load.
• Specialized software called an agent runs on each server and
calculates usage of server resources, such as its computing
capacity and memory.
• Then, the load balancer checks the agent for sufficient free
resources before distributing traffic to that server.
13
TYPES OF LOAD BALANCING
14
TYPES OF LOAD BALANCING
15
TYPES OF LOAD BALANCING
1. Application availability
• Run application server maintenance or upgrades without
application downtime
• Provide automatic disaster recovery to backup sites
• Perform health checks and prevent issues that can cause
downtime
18
BENEFITS OF LOAD BALANCING
2. Application performance
• Distribute the load evenly between servers to improve
application performance
• Redirect client requests to a geographically closer server
to reduce latency
• Ensure the reliability and performance of physical and
virtual computing resources
19
BENEFITS OF LOAD BALANCING
3. Application security
• Monitor traffic and block malicious content
• Automatically redirect attack traffic to multiple backend
servers to minimize impact
• Route traffic through a group of network firewalls for
additional security
20
CHALLENGES IN LOAD BALANCING