Psychz - Girish
Votes: 0Posted On: Jun 06, 2017 07:28:35
There are various load balancing techniques that you can deploy to balance web servers. Web servers can be both hardware or software based. Hardware load balancers some with propriety hardware along with software. Software load balancers can be installed on your server.
These are some of the techniques that you can deploy on your load balancer.
Round Robin
When multiple servers are connected in a cluster, the requests are sent sequentially to the servers. A single domain name is assigned to the servers connected to each other. Each of these servers is provided a unique IP address. The DNS has the list of all the IP addresses associated with the domain name. When a request for the domain name is incident on the load balancer, the load balancer sends the request to the cluster of servers in a sequential order.
Weighted Round Robin
It is the same as Round Robin. The only difference is that the servers in the cluster are provided a weighted rating and the packets are forwarded in accordance with the ratings.
Least Connections
A server handles multiple network connections simultaneously. In this method of load balancing, the load balancer forwards the HTTP request to the server handling the least connections in the cluster. This is determined by taking the computing capacity and load of each server.
IP Harsh
In this type of load balancing, the IP address is the determining factor of forwarding requests. With the help of an algorithm, the load balancer uses the source and destination IP address to generate a unique hash key. This key is used to establish a unique connection between a client and server. If the user is disconnected, the user can reconnect to the same session on the server using the key. It is generally used when the user needs to connect to the same session after getting disconnected abruptly.
Weighted Response Time
In this method of load balancing, response time is the parameter for forwarding requests. The response time is calculated for each server and the server having the least response time at that time is selected to forward requests.