Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 16th September 2010, 12:24
enid enid is offline
Junior Member
 
Join Date: Sep 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Load balancing and high availability configuration

Hello to all,

I'm planning to implement a HA and LB system with Linux.
The idea is to have for example 2 dns servers (or maybe 2 mail servers), and they can be accessed from outside with a single virtual ip, so that the system can do the balancing of the load between the 2 servers and also the failover procedure , so that if one server (or the service running on it) goes down the system redirects the requests to the other server.

Can you recommend any package or sw on how to implement this scenario?

Thanks
Reply With Quote
Sponsored Links
  #2  
Old 17th September 2010, 01:04
matty matty is offline
Member
 
Join Date: Apr 2010
Location: Australia
Posts: 85
Thanks: 2
Thanked 12 Times in 11 Posts
Default

The two scenarios you mention, DNS and email, don't really need a special load balance or HA setup as they have it built in. Just build as many servers as you need and make them available via DNS entries.

That is, for DNS, when you put your glue records in at your registrar, make sure you put all your servers in. Also include them in the NS entries for all your zones. When other servers attempt to query your name servers, if one isn't available, they will try and query the other/s automatically.

For email, you can load balance by making your MX records have the same weight, which will create a round robin style system. If one of your servers becomes unavailable, SMTP is designed such that connecting servers will try all servers that have MX records defined for the domain. For an example of load balancing mail with DNS, have a look at the MX records for hotmail.com. They also take things further by having multiple IP addresses per A record.

If you are after HA and LB for other types of services, I believe there's some how-tos around here if you try a search.
Reply With Quote
  #3  
Old 17th September 2010, 12:48
enid enid is offline
Junior Member
 
Join Date: Sep 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi matty,
Thanks for you reply.

For the mail server the configuration is quite understandable and clear, doing the configuration at the application level, with the MX/CNAME records and multiple A records.

But what about the DNS servers, is there any way to do load balancing at the application level, because declaring only the NS at the registrar we achieve only the HA function, so when the primary NS is down the secondary resolves the records. How can LB be achieved for dns-server (e.g bind) the same way as the mail server round robin config with the multiple A records.

Also is there another way to achieve HA and LB not only on the application level, but at some lower abstraction (e.g ip level)?

Thanks again,
Enid
Reply With Quote
  #4  
Old 21st September 2010, 00:35
matty matty is offline
Member
 
Join Date: Apr 2010
Location: Australia
Posts: 85
Thanks: 2
Thanked 12 Times in 11 Posts
 
Default

Really, you won't need to load balance bind. If you have an additional bind instance that you want to load balance with, treat it like the others and make it directly available. Most people only use two nameservers because that's the minimum allowed in the RFC. You can use more if you want to.

The main thing with bind is to use server class hardware. Modern processors, a couple of gig of RAM, and a decent (ie. not Realtek) NIC will serve hundreds of zones at a very high rate of requests per second.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
High Availability (Load Balancing) behind a firewall geek.de.nz Server Operation 7 4th January 2011 13:58
High Availability Cluster Using Debian Lenny jbimmerle Installation/Configuration 0 4th September 2009 03:01
Load Balancing Question atjensen11 HOWTO-Related Questions 1 14th July 2009 13:20


All times are GMT +2. The time now is 01:41.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.