Building a stable infrastructure for growth

Daily Newsletters

Sign up to ZDNet UK's daily newsletter.

A mapping algorithm keeps track of which client requests are sent to which servers to be processed. If necessary, particular clients' requests can always be sent to the same server node; this is called affinity.

There are several different load balancing algorithms, including:

  • Round robin: distributes the load to all the cluster nodes equally; works best if all the servers have the same hardware resources. A variation is the weighted round robin algorithm, which allows you to designate a "weight" or metric for each server indicating its performance capabilities.
  • Load based: distributes the load according to each server's current workload, giving new requests to servers with the lightest load.
  • Algorithms will also take into account, when distributing the requests, such factors as affinity, port rules, and host priorities.

To provide failover (the ability of a member of the cluster to take over if the other goes offline), the nodes communicate with one another using a "heartbeat" message (that basically says to the other node, "I'm alive"). If this heartbeat message isn't received, the node knows that the other node has failed and it takes over the workload of the failed node.

Implementing load balancing as your network grows
To implement load balancing, you will need at least two servers to act as members of the load balancing cluster. They don't have to have identical hardware, but it's preferred, especially if you're using a round-robin algorithm.

Each node should also have a second network interface card installed, so one adapter can be configured with the virtual IP address and will handle the traffic that's destined for the cluster and the other is configured with the dedicated IP address and is used for communications between the cluster members and for management of the individual machine. Although load balancing can function with single NICs, the dual NIC setup provides better performance.

Load balancing software is included in all editions of Windows Server 2003, even the low-cost Web Edition (it wasn't included in the Standard edition of Windows 2000 Server). It's called Network Load Balancing (NLB) and is installed as a Windows component. The Network Load Balancing Manager administrative tool is used to manage the cluster from one of the nodes. Here's a more detailed discussion of using Server 2003's NLB for Web farming.

There are also many third-party load balancing software packages available, such as NetBalancer from Allot Communications, which lets you define policies for distributing the load and define load balancing conditions and actions. Load balancing appliances are available from such companies as Radware, and there are also load balancing solutions available for Linux servers, such as Red Hat's Cluster Suite.

In choosing a load balancing solution, it's important to look ahead and anticipate your network's future expansion. You'll want a solution that makes it easy to add servers to or remove them from the load balancing cluster, and one that allows you to manage cluster members centrally and remotely.

As your organisation grows, load balancing becomes less of a luxury and more of a necessity. Building a scalable load balancing infrastructure will ensure that network performance and availability don't decrease as the size of your network increases.

Post your comment

In order to post a comment you need to be registered and logged in.

You can also log in with Facebook. Log in or create your ZDNet UK account below

  • Login

Will not be displayed with your comment

By signing up for this service, you indicate that you agree to our Terms and Conditions and have read and understood our Privacy Policy. Questions about membership? Find the answers in the Community FAQ

Get ZDNet UK's daily newsletter

Enter your email address to sign up

ZDNet UK Live

tinycg

Don't forget to check out apps like GoodReader or SlideShark either, they're indispensible for people on the go in presentation situations. Best...

26 minutes ago by tinycg on Four top iPad apps for people on the move
TerryRK

Well it seems there is something a number of us agree on. Why is the Ubuntu Unity launcher so ugly? I thought perhaps it was something to do with...

5 hours ago by TerryRK on A tale of two distros: Ubuntu and Linux Mint
Freebies202

Duplicate comments are not made intentionally. Its very good to know that now you are keeping check on this problem because sometimes a commenter...

15 hours ago by Freebies202 on Microsoft fixes blog comments, speeds up blogs with open source
kevinmchapman

"the very significant number of users" and "many (most) of us" - you have no evidence for these statements. It is a fact that most users are saying...

23 hours ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
Marg Menzies Harrison

Another grammar faux pas is the improper use of "you". When sitting down down in a restaurant, for example, I get cringe when the waitress...

1 day ago by Marg Menzies Harrison via Facebook on 10 flagrant grammar mistakes that make you look stupid
zdnetukuser

And NOW, folks, for Canonical's next trick... Kubuntu is late. Here's a pencil. Draw your own conclusions. cf.:...

1 day ago by zdnetukuser on Linux Minterface
Moley

@kevinmchapman. The discussion here reflects the very significant number of users who really do like the traditional menu system and who wish to...

1 day ago by Moley on A tale of two distros: Ubuntu and Linux Mint
kevinmchapman

Er, no... It is an efficient means of finding the application/file/setting you need in one place. The icons are a simply a fallback for when you...

1 day ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
TerryRK

Isn't the provision of a text based search an admission by the developers that the mass of icons approach does not work? I don't need to use a...

1 day ago by TerryRK on A tale of two distros: Ubuntu and Linux Mint
kevinmchapman

"Unity and GNOME 3 both abandon the old text-based cascading menus in favour of a graphical icon-driven system." Point truly missed. Both use a...

1 day ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
TerryRK

whs001 - Thank you, I'm glad you liked the article. I absolutely agree with you on your first point. I should perhaps have made it clearer that...

1 day ago by TerryRK on A tale of two distros: Ubuntu and Linux Mint
Dennis Nilsson

If we allow corporate interest to dictate the way our government circumvents due process against foreign entities then we should accept the same...

1 day ago by Dennis Nilsson via Facebook on ACTA stumbles in Germany
GHar123

I totally dislike pirating of works, I fear that artists will be deterred from creating works if they think that they are going to get ripped off....

1 day ago by GHar123 on ACTA stumbles in Germany
JCB33

How dare film makers, artists or anybody that invests in creativity stop us pirating their works for free. I want to be able to walk into my local...

2 days ago by JCB33 on ACTA stumbles in Germany
Moley

@GrueMaster. I prefer horses for courses rather than one size fits all. I, and I suspect most other computer users, do not really wish to have...

2 days ago by Moley on A tale of two distros: Ubuntu and Linux Mint
greycynic

The product that scares me every time I have to use it is the Office 2007 version of Excel. The first bug that I found was applying the median...

2 days ago by greycynic on Ten flawed products that derail productivity
GrueMaster

Nice review and very informative. One thing I'd like to add (in reply to whs001's 1st question), the main reason to have the same interface from...

2 days ago by GrueMaster on A tale of two distros: Ubuntu and Linux Mint
Frederick Wrigley

I'be been using Mint 12 since the RC came out, and I am far more happy with the Cinnamon, the Mate, and, yes (with extensions), theGnome 3...

2 days ago by Frederick Wrigley via Facebook on A tale of two distros: Ubuntu and Linux Mint
bdantas

Excellent article. One small correction, though--although a fresh installation of Linux Mint 12 will, indeed, provide the user with a version of...

2 days ago by bdantas on A tale of two distros: Ubuntu and Linux Mint
Alan Ralph

In related news, the ISPs club together to get the members of the Home Affairs Select Committee (ya goofed on that part, ZDNet UK) copies of "The...

2 days ago by Alan Ralph via Facebook on MPs urge ISPs to take down terrorist material