LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-08-2009, 03:33 AM   #1
RussP
LQ Newbie
 
Registered: Sep 2008
Posts: 5

Rep: Reputation: 0
ClusterIP and/or heartbeat on three boxes


We've got three Linux boxes that we're trying to get ClusterIP working on. We want to get to a situation where the three boxes are load balanced (they run exim, bind and squid), and if one or two die, the others will automatically take up the load.

We can get ClusterIP to load balance, but if one box goes down, the other two don't take over - any traffic for the down box simply gets dropped. We've tried heartbeat, and can get that to make sure that traffic always goes to a box that is up, but we can't get it to load balance.

Most of the examples etc that I've found assume that you've got two boxes, and many simply won't work with more than two.

We've thought about running a script on each box to constantly check the state of the other two boxes and re-configure ClusterIP according to which ones are up, but we'd rather use existing software if possible, rather than re-invent the wheel.

Does anything like this exist? Or are we going to have to bite the bullet and write the script?

Last edited by RussP; 04-08-2009 at 03:34 AM. Reason: Forgot to add that most examples talk about 2 boxes
 
Old 04-09-2009, 01:23 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
Right... already wrote a big reply, but the site choked when posting. So...

I'd not use clustering for any of these things at all. For bind, use multiple DNS entries, for exim, use multiple MX records within those bind servers and for squid, use a browser side configuration with a proxy.pac file.

Last edited by acid_kewpie; 04-09-2009 at 01:25 PM.
 
Old 04-10-2009, 03:16 PM   #3
rossonieri#1
Member
 
Registered: Jun 2007
Posts: 359

Rep: Reputation: 34
hi russ,

i have not tried that clusterIP/HA yet,
but i noticed on the website that it has this limitation for specific linux distro that has been successfully tested and worked - like SuSE and debian etch, red hat-based distro seem doesnt work.

anyway, as an alternative - have you try that LVS yet? or red hat piranha?
 
Old 04-10-2009, 03:39 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
a simple script like the one given here might be a good lo fi alternative... http://www.onlamp.com/pub/a/onlamp/2...inuxhacks.html
 
Old 04-14-2009, 05:09 AM   #5
RussP
LQ Newbie
 
Registered: Sep 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the responses. We've more-or-less got it working now, having found this page.
 
  


Reply

Tags
heartbeat


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
3 Ubuntu boxes with Samba - One finds all XP shares - Two UltraSparc64 boxes do not mwx Linux - Server 1 01-28-2009 06:03 AM
Heartbeat + ldirectord ptemmerman Linux - Server 1 10-23-2008 05:47 AM
If desktops are refered to as boxes do you also refer to laptops as boxes? dr_zayus69 General 14 12-24-2005 03:46 PM
win2000 boxes cannot map but winnt boxes can - same user! starbeetlechick Linux - Networking 0 07-24-2003 07:24 AM


All times are GMT -5. The time now is 07:45 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration