Ultra Monkey load balancing configuration problems -- please help.

"Roxana Diaconescu" <[email protected]>
Newsgroups gmane.linux.highavailability.ultramonkey
Message-ID <[email protected]>
Hi,

I am trying to set-up a configuration similar to:
http://www.ultramonkey.org/3/topologies/lb-eg.html

The only difference in my set-up is that I use only one NIC and all
machines are VMware boxes. Here is my set-up:

Director:
VIP: 192.168.141.150
DIP: 192.168.141.130

Real servers:

RIP1: 192.168.141.131
RIP2: 192.168.141.132

Service: my own httpd running on port 8000.

Director ifconfig output:

eth0      Link encap:Ethernet  HWaddr 00:0C:29:95:B5:17
          inet addr:192.168.141.130  Bcast:192.168.141.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe95:b517/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:594518 errors:0 dropped:0 overruns:0 frame:0
          TX packets:590465 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:41020866 (39.1 MiB)  TX bytes:43111091 (41.1 MiB)
          Interrupt:10 Base address:0x1400

eth0:0    Link encap:Ethernet  HWaddr 00:0C:29:95:B5:17
          inet addr:192.168.141.150  Bcast:192.168.141.150  Mask:255.255.255.255
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:10 Base address:0x1400

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1027 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1027 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:100155 (97.8 KiB)  TX bytes:100155 (97.8 KiB)

Director netstat -rn output:

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.141.150 0.0.0.0         255.255.255.255 UH        0 0          0 eth0
192.168.141.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
0.0.0.0         192.168.141.2   0.0.0.0         UG        0 0          0 eth0

Real server 1 ifconfig:

eth0      Link encap:Ethernet  HWaddr 00:0C:29:4E:52:AF
          inet addr:192.168.141.131  Bcast:192.168.141.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe4e:52af/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:311960 errors:0 dropped:0 overruns:0 frame:0
          TX packets:302738 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:25523184 (24.3 MiB)  TX bytes:17012809 (16.2 MiB)
          Interrupt:10 Base address:0x1400

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:658 errors:0 dropped:0 overruns:0 frame:0
          TX packets:658 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:160982 (157.2 KiB)  TX bytes:160982 (157.2 KiB)

lo:0      Link encap:Local Loopback
          inet addr:192.168.141.150  Mask:255.255.255.255
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

Real server 1 netstat -rn:

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.141.150 0.0.0.0         255.255.255.255 UH        0 0          0 lo
192.168.141.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
0.0.0.0         192.168.141.254 0.0.0.0         UG        0 0          0 eth0
0.0.0.0         192.168.141.2   0.0.0.0         UG        0 0          0 eth0


Real server 2 ifconfig:

eth0      Link encap:Ethernet  HWaddr 00:0C:29:73:62:B3
          inet addr:192.168.141.132  Bcast:192.168.141.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe73:62b3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:311619 errors:0 dropped:0 overruns:0 frame:0
          TX packets:302311 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:25496712 (24.3 MiB)  TX bytes:16923264 (16.1 MiB)
          Interrupt:10 Base address:0x1400

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:726 errors:0 dropped:0 overruns:0 frame:0
          TX packets:726 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:179638 (175.4 KiB)  TX bytes:179638 (175.4 KiB)

lo:0      Link encap:Local Loopback
          inet addr:192.168.141.150  Mask:255.255.255.255
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

Real server 2 netstat -rn:

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.141.150 0.0.0.0         255.255.255.255 UH        0 0          0 lo
192.168.141.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
0.0.0.0         192.168.141.254 0.0.0.0         UG        0 0          0 eth0
0.0.0.0         192.168.141.2   0.0.0.0         UG        0 0          0 eth0

Please find attached ldirectord.cf and the output of ipvsadm.

The problems are:

1) The weights of the services on real servers are always 0, no matter
what I set in the configuration file; I can edit them by hand, but
this seems to defeat the purpose of a configuration file.

2) I cannot start my service on the real servers -- they get killed by
some ldirectord side-effect.

Note: I tried the exact same with LVS NAT (by hand) and it worked.

Can anyone tell me if there is something obviously wrong with my configuration?

Thanks,
Roxana.
ldirectord.cf (application/octet-stream, 5.6 KB) - not displayed
adm_out (application/octet-stream, 395 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.