[lvs-users] web servers on different ports

Pio pio at rdl.pl
Thu Feb 12 23:44:51 GMT 2009


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






More information about the lvs-users mailing list