Server Load Balancing: Algorithms
Published: Monday, May 17, 2004
Types of load balancing
Load balancing of servers by an IP sprayer can be implemented in different ways. These methods of load balancing can be set up in the load balancer based on available load balancing types. There are various algorithms used to distribute the load among the available servers. - 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. Pros: Simple to implement.
Cons: Can lead to overloading of one server while under-utilization of others.
- 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: 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.
- Weighted Round-Robin Allocation
Weighted Round-Robin is an advanced version of the round-robin that eliminates the deficiencies of the plain round robin algorithm. In case of a weighted round-robin, one can assign a weight to each server in the group so that if one server is capable of handling twice as much load as the other, the powerful server gets a weight of 2. In such cases, the IP sprayer will assign two requests to the powerful server for each request assigned to the weaker one. Pros: Takes care of the capacity of the servers in the group. Cons: Does not consider the advanced load balancing requirements such as processing times for each individual request.
The configuration of a load balancing software or hardware should be decided on the particular requirement. For example, if the website wants to load balance servers for static HTML pages or light database driven dynamic webpages, round robin will be sufficient. However, if some of the requests take longer than the others to process, then advanced load balancing algorithms are used. The load balancer should be able to provide intelligent monitoring to distribute the load, directing them to the servers that are capable of handling them better than the others in the cluster of server.
|
 |
|
 |
|
|
|
RELATED NEWS
|
 |
Robin Autopilot and Lawn Buddy Launch New Solution Allowing Landscapers to Deploy Robotic Mowers Faster and More Efficiently
MCKINNEY, Texas, May 10, 2022 /PRNewswire/ -- Robin Autopilot, a leader in robotic mowing technology and robots-as-a-service...
|
 |
Robin Joffe Appointed as Partner-Managing Director of Frost & Sullivan Middle East, Africa, and South Asia
DUBAI, UAE, May 10, 2022 /PRNewswire/ -- With an aim to better serve an increasingly strategic customer segment, Frost &...
|
 |
ViewSonic Announces the Ten Winners of the United by Play Awards in Celebration of All Types of Gamers
BREA, Calif., May 11, 2022 /PRNewswire/ -- ViewSonic Corp. , a leading global provider of visual solutions, kickstarted this...
|
 |
Global Automotive Balance Shaft Market (2022 to 2027) - Industry Trends, Share, Size, Growth, Opportunity and Forecasts
DUBLIN, May 10, 2022 /PRNewswire/ -- The "Automotive Balance Shaft Market: Global Industry Trends, Share, Size, Growth,...
|
 |
IRIS.TV Announces Partnership with Publica to Integrate Video-Level Contextual Data in Leading CTV Ad Server
New partnership allows publishers to use IRIS-enabled video-level data to target direct deals from the ad server for the firs...
|
|
Submit News |
View More News
|
|
|
|
|
|
|
|