WebsiteGear Logo Log In
New User? Sign Up
About | Contact | FAQ
  Home Content Web Hosting Sunday, March 24, 2019 
Print| Email| Save| Discuss| Feeds


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.
Previous Article Server Load Balancing: Introduction Server Load Balancing Methods Next Article
Print| Email| Save| Discuss| Feeds
RELATED ARTICLES
Nav Introduction To Server Load Balancing
Load balancing applies to all types of servers (application server, database server), however, we will be devoting this section for load balancing of web servers (HTTP server) .
Nav SubDomain - The Third Level Domain
A subdomain is the part of the website address before the domain name. Learn about using subdomain names.
Nav Server Side Includes - Centralize Common Content
Use server side includes to centralize the common web site content.
Nav Breadcrumb Navigation
A breadcrumb trail provides a quick way for the user to know what section or branch this webpage is in. A good example will be a directory such as Yahoo or DMOZ.
Nav Website Navigation Tips
An effective website navigation is very important for your website. Learn tips and tricks.
RELATED NEWS
News Post Teachers Follow Issues Like the College Admission Scandal Closely, Have Surprising Views on Security, and Prioritize Concerns on Issues that Impact Them
K-12 Teachers Online Research Report from global insights provider OvationMR who conducted 407 interviews from March 14-17, 2019 with U.S. K-12 teachers about topics including current events, budgets, security, pay, student advocacy, administrative and government support. This report reveals insights broken out by schools with teachers of affluent students versus those who teach in non-affluent areas and also looks at opinions through the political affiliation lens.
News Post CancerIQ and AliveAndKickn Collaborate to Advance Lynch Syndrome Screening, Education and Research
Partnership to better help providers and patients take preventative measures against hereditary cancer
News Post Take a Quick Contest and Win the Women's Day Scholarship
JanBask Training launched a women's only contest on the eve of International Women's day 2019 that fetches its winners' prizes worth up to 100% Scholarship on the world's most trending online training courses. All you have to do is to answer a few questions. Come on, give it a shot. Who knows you may be one of the lucky winners
News Post Devolutions Recognized as a 2019 Gartner Peer Insights Customers' Choice for Privileged Access Management
Devolutions earned an average ranking of 4.8 stars, which was the highest of all recognized vendors with at least 50 published reviews.
News Post Salesforce Grants Equity Awards to Griddable Employees Under Its Inducement Equity Incentive Plan
SAN FRANCISCO, March 22, 2019 /PRNewswire/ -- Salesforce (NYSE: CRM), the global leader in CRM, today announced it has grante...
Submit News | View More NewsView more news
RELATED CLASSIFIED ADS
Classified Ad Where you can get dedicated server in India?
If you are looking for a dedicated server hosting in India that is managed as well as affordable, Ho ...
Classified Ad Get a VPS server India just for Rs. 1250/month
Now you can avail most secure and managed vps server in india. HostRightNow.in offers you vps server ...
Classified Ad Dedicated Email Marketing Server
• Send upto 10 Million Emails every day • Full CAN-SPAM Compliance • Dedicated IPs upto 200 ...
Classified Ad E3-1240v3, 16GB RAM Dedicated server at $52.5/mnth
HostMyBytes was born out of necessity. It was necessary for us to have reliable and affordable web h ...
Classified Ad Online Training for .NET, SQL Server, MSBI, Cloud
End2search provides corporate / online training by real time experts for the courses java, .net, SQL ...
Post Free Ad | View More View more classifieds
RELATED FORUM POSTS
Forum Post example of Server.Transfer and Context Handler
This is an example of Server.Transfer and Context Handler. Through this we can get the multiple val ...
Forum Post Configuring BIND on windows 2003 server VPS
Hi Guys, I have a Windows 2003 Virtual Private Server and I'm trying to configure it with a BIND ...
Forum Post Most effective ways to get traffic to your site
Hi everyone! Traffic, Traffic, Traffic! How do we get it? There are lots of possible ways to ...
Forum Post Need help with DNS/Zone File
Cause I'm a freaking idiot when it comes to DNS and getting it right, I need some help. I&s ...
Forum Post 8 Steps to Choosing the Right Web Host
Here is an article I wrote a while ago but figured I would share this with other people for their co ...
Add New Post | View More View more forum posts
POPULAR ARTICLES
Nav How To Sell A Website
Nav Subdomain Configuration - How To Setup A Sub Domain
Nav Domain Configuration - How To Setup A Domain Name
Nav Website Layout - Tips & Tricks
Nav Round Robin DNS Load Balancing
Nav Introduction To Server Load Balancing
Nav Website Traffic & Revenue
Nav Tips On Using SubDomain
FEATURED NEWS | POPULAR NEWS