LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: ipvsadm and kernel 2.2.22 and apache load balancing

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: ipvsadm and kernel 2.2.22 and apache load balancing
From: Romeo Benzoni <rb@xxxxxx>
Date: Thu, 24 Oct 2002 11:45:22 +0200
hi

Marc-Christian Petersen wrote:
hi there,

so, now went back to 2.2.19 vanilla + ipvs patch for 2.2.19, compiled the right ipvsadm again, and the minimal LVS is still _not_ working.

should also work with 2.4.x


Say, can anyone of you really help me to get this LVS running?

I propose the following setup:

    __________________________
   |                          |
   | Client  192.168.0.1/24   |
   |__________________________|
              |
              |
              |
              |
        192.168.0.2/24
    __________________________
   |                          |
   | Director with LVS NAT    |
   |__________________________|

        172.16.0.1/24
              |
              |
              |
              |
    __________________________
   |                          |
   | RealServer 172.16.0.2/24 |
   |__________________________|

      Default gw: 172.16.0.1



setup of client and realserver should be obvious.

on the director the commands (for telnet) would be:

# ipvsadm -A -t 192.168.0.2:23 -s rr
# ipvsadm -a -t 192.168.0.2:23 -r 172.16.0.2 -m
# echo "1" >/proc/sys/net/ipv4/ip_forward


while having two separted ethernet segment you don't have to worry about send/accept icmp redirect like in the mini HOWTO setup.

If you don't have enough hardware you could even do such a setup using user-mode-linux.

hope that helps



Don't tell me to read those Howto/Mini-Howto because I read it yesterdays evening the _4th time_ ...

where is this "wrong IP" in the mini HOWTO exactly? let us know!

cu

romeo



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