LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] web servers on different ports

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: [lvs-users] web servers on different ports
From: Pio <pio@xxxxxx>
Date: Fri, 13 Feb 2009 00:44:51 +0100
Hello There !

I have web servers (apache and lighttpd) binding on two real servers but on
different port.One is on port 81 and second on 8080

My configuration of ldirectord

checktimeout=2
checkinterval=5
logfile="local0"
autoreload=yes
quiescent=yes
virtual = IP_VIP:80
        service=http
        real=IP_REAL1:81 gate 75
        real=IP_REAL2:8080 gate 25
        fallback=127.0.0.1:80 gate
        request="test.php"
        receive="OK"
        scheduler=rr
        protocol=tcp
        persistent = 5
        checktype = 4
        negotiatetimeout=5

Also I want set up 75% traffic to frist server and 25% to second

My settings are not working correctly
TCP  IP_VIP:80 rr persistent 5
  -> IP_REAL1:8           Route   0     0          0
  -> IP_REAL2:80           Route   0      0          0

So any chance to get running this on different ports ?

Regards,
Piotr


________________________________________________
Message sent using UebiMiau 2.7.10



_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

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