LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Ultramonkey DR on Centos (RHEL4)

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Ultramonkey DR on Centos (RHEL4)
From: Brent Jensen <brent@xxxxxxxxxxx>
Date: Wed, 29 Mar 2006 10:05:52 -0700
Thanks for letting me banter for a bit...I discovered a problem w/ my lo:0 on the real servers. It is now working. I think the configurations below are just fine.


At 01:29 AM 3/29/2006 -0700, you wrote:
Here's some more detail on the LVS-DR configuration:

On the Director/Real Server:
/sbin/sysctl -p
net.ipv4.ip_forward = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.conf.eth0.arp_ignore = 1
net.ipv4.conf.eth0.arp_announce = 2
net.ipv4.conf.all.arp_ignore = 1
net.ipv4.conf.all.arp_announce = 2

On an external real server
/sbin/sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.conf.eth0.arp_ignore = 1
net.ipv4.conf.eth0.arp_announce = 2
net.ipv4.conf.all.arp_ignore = 1
net.ipv4.conf.all.arp_announce = 2

My ldirectord:
virtual = 10.0.1.21:3306
#real=10.0.1.13:3306 gate 1 "http://10.0.1.13:80/index.html"; "Connected" #real=10.0.1.15:3306 gate 1 "http://10.0.1.15:80/index.html"; "Connected" real=10.0.1.17:3306 gate 1 "http://10.0.1.17:80/index.html"; "Connected"
        fallback=127.0.0.1:3306 gate 1
        service=http
        checktype=negotiate (also doesn't work when 'on')
        protocol=tcp
        scheduler = wrr

haresources:
server3 IPaddr::10.0.1.20/24/eth0
server3 IPaddr::10.0.1.21/24/eth0
server3 ldirectord::ldirectord.cf      # LDirector

Real servers are added as expected (depending on the output of the web-script:
Restored real server: 10.0.1.17:3306 ( x 10.0.1.21:3306) (Weight set to 1)

Connecting to the real servers works fine. Connecting to the non-ldirector VIP works fine too. Just not the ldirector VIP. Telneting on port 3306 doesn't work either

What else am I missing? I've also rebooted the machines. No firewall (iptables) is running.

Thanks.


At 07:56 PM 3/28/2006 -0700, you wrote:
This may have been answered somewhere; however, I haven't yet found the right information (most examples I've seen are on older kernels). I'm trying to load balance an HA MySQL cluster using heartbeat (ultramonkey) on Centos 4.3 using the Direct Routing method. Ldirector is configured and working, but the routing is not. I'm played around w/ /etc/sysctl.conf, but I'm really not sure what I'm doing (I'm somewhat a neophyte, but have been running a NAT configuration for a few years now).

I have the following in my sysctl.conf file:

net.ipv4.ip_forward = 1
net.ipv4.conf.eth0.arp_ignore = 1
net.ipv4.conf.eth0.arp_announce = 2

What am I missing? Does anyone have a working configuration for direct routing on Centos (2.6.9-34.EL kernel).

Connections to don't work to the real servers at follows; however, it works to the fallback server (localhost):

 -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  10.0.1.21:3306 wrr
  -> 10.0.1.13:3306               Route   1      0          0


Thanks!




<Prev in Thread] Current Thread [Next in Thread>