Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help with using LVS (heartbeat, ldirectord) please?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
planet-admin
Apprentice
Apprentice


Joined: 27 Mar 2004
Posts: 213
Location: Boise, ID

PostPosted: Mon Jul 24, 2006 9:01 pm    Post subject: Help with using LVS (heartbeat, ldirectord) please? Reply with quote

I'm using heartbeat with the ldirectord useflag.

Here's the setup. I have 6 mongrel servers (for simplicity sake, I'll refer to them as apache servers).

They will be behind a two node heartbeat loadbalancer. (2 seperate machines purposed to be ha-lb machines)

I've emerged heartbeat, here are my config files.

I actually only have lvs2 running at the moment, and I'll clone it across to lvs1 once I have everything running.

ha.cf (actually, I only include here the uncommented lines, to save space)
Code:

logfacility     local0
bcast   eth1    # Linux
auto_failback on
node lvs1 lvs2


haresources
Code:

lvs2 192.168.1.94/24/eth0 ldirectord
lvs2 192.168.1.95/24/eth1 ldirectord


ldirectord.cf
Code:


# Global Directives
checktimeout=3
checkinterval=1
#fallback=192.168.1.82:80
autoreload=yes
#logfile="/var/log/ldirectord.log"
logfile="local0"
#quiescent=yes

# A sample virual with a fallback that will override the gobal setting
virtual = 192.168.1.84:80
#       real = 192.168.1.82:80 gate
#       real=192.168.1.83 masq 10
#       real=192.168.1.85 masq 10
#       real=192.168.1.86 masq 10
#       real=192.168.1.87 masq 10
        real=192.168.1.88 gate
        request="status.html"
        receive="it works"
        scheduler=wlc
        persistent=300
        protocol=tcp


Right now, I'm commenting out the other servers to see if I can just get one return.

Here's what I don't understand, first, are my config files correct?
This machine has 2 nic's, do I need to give the mongel cluster virtual ip to a second nic using ifconfig, or will this happen automatically?
Is IPtables necessary?

I'm completely stuck, let's pretend that I want to start from the very beginning, I have a set of webservers I want to loadbalance, and 2 machines I want to be lvs nodes, where do I go from there?

Many thanks,
Michael
_________________
Michael S. Moody
Sr. Systems Engineer
Global Systems Consulting
Web: http://www.GlobalSystemsConsulting.com
Back to top
View user's profile Send private message
Janne Pikkarainen
Veteran
Veteran


Joined: 29 Jul 2003
Posts: 1143
Location: Helsinki, Finland

PostPosted: Tue Jul 25, 2006 8:21 am    Post subject: Reply with quote

First things first: have you already read the LVS HOW-TO and the part about setting up a new LVS service?
_________________
Yes, I'm the man. Now it's your turn to decide if I meant "Yes, I'm the male." or "Yes, I am the Unix Manual Page.".
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum