NOV19
NOV19
Introduction
Why is load balancing of servers needed?
If there is only one web server responding to all the incoming
HTTP requests for your website, the capacity of the web
server may not be able to handle high volumes of incoming
traffic once the website becomes popular.
The website's pages will load slowly as some of the users
will have to wait until the web server is free to process their
requests.
The increase in traffic and connections to your website can
lead to a point where upgrading the server hardware will no
longer be cost effective.
IP sprayer
TCP/IP load balancing is also called
Network Dispatch, or IP |spraying.
Random Allocation
In a random allocation, the HTTP requests are
assigned to any server picked randomly among
the group of servers.
In such a case, one of the servers may be
assigned many more requests to process, while
the other servers are sitting idle.
However, on average, each server gets its share
of the load due to the random selection.
Round-Robin Allocation
In a round-robin algorithm, the IP sprayer assigns the
requests to a list of the servers on a rotating basis.
The first request is allocated to a server picked randomly
from the group, so that if more than one IP sprayer is
involved, not all the first requests go to the same server.
For the subsequent requests, the IP sprayer follows the
circular order to redirect the request.
Once a server is assigned a request, the server is moved
to the end of the list. This keeps the servers equally
assigned.
Pros:
Uses circuit level network gateway to
route
traffic
Cons:
Higher costs compared to software
versions.
Failover
Summary
Pros: Better than random allocation because the
requests are equally divided among the
available servers in an orderly fashion.
Cons: Round robin algorithm is not enough for
load balancing based on processing overhead
required and if the server specifications are not
identical to each other in the server group.