Howto load balancing

Hi

Using Dell 2U servers running FreeBSD 6, we are very exciting to get some new Xserve for our web needs.

We plan to buy 2 XServe for sharing performances for a huge website and a Xserve RAID.

As MySQL can be master-master replicated on its own, we only want to balance network load coming from the internet. What do you suggest to buy in front of the 2 Xserve ? How to sync files between the 2 Xserve but with manual rsyncs ?

Thank you for your tips





PowerBook 12" + MacBook rev1 Mac OS X (10.4.8) Airport Express / 23" Cinema Display / Freebox

Posted on Nov 26, 2006 8:10 AM

Reply
1 reply

Nov 26, 2006 11:55 AM in response to Jérôme L

What kind of traffic levels are you planning for?

There are various load balancing techniques around ranging from the free to the very expensive, and the inefficient to the highly effective.

At the lowest end of the scale is simple round-robin DNS. You configure your site's address with two IP addresses and the DNS server alternates between the answers. This gives you a crude load balancing option - there's no direct control over which server gets the traffic, levels may be uneven and, worst of all, there's no redundancy in case one server is down - the DNS server will continue to hand out it's IP address. Its advantage, though, is that it's free.

Moving up the scale a little there are various Linux based solutions that can do simple load balancing through its IPTables (or ipchains in older distributions).
I've never used them, so I don't know how effective they are.

At the top end of the scale are load balancing appliances such as those from F5, Cisco, NetScaler and others.

These move up the price chain a fair way but offer far more features, server health monitoring (to make sure the server is able to service the request), advanced load balancing rules to decide which server should handle the request, and multi-gigabit per second throughput.

If you just have a couple of servers, the appliance path may be overkill, although if you expect to grow then it may be something worth considering.

As for the replication question, there are many ways of doing that. At its simplest level, rsync can replicate a directory or filesystem using an efficient protocol that just transfers the differences. It's included in Mac OS X and the man page gives examples of its use.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Howto load balancing

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.