LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: ldirectord.cf configuration quesion -- how to configure 50 ports...

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx, ultramonkey-users@xxxxxxxxxxxxxxx
Subject: Re: ldirectord.cf configuration quesion -- how to configure 50 ports...
From: Jiang <bearie66@xxxxxxxxx>
Date: Tue, 27 Jun 2006 21:59:26 +0800
Hi Joe

I have already tried out fwm for my application, so instead of
checking 50 ports, it now only checks one to verify if my application
is up and running, but the problem is that it seems all the
connections are always going to one real server although I have
already configured the rr sheduler. Hope you won't charge this
question.

attached is my ldirectord.cf configuration:

********************************
checktimeout=3
checkinterval=10
autoreload=yes
logfile="/var/log/ldirectord.log"
quiescent=yes

virtual=1
       real=10.226.193.189:0 gate
       real=10.226.193.190:0 gate
       service=none
       checkport=8070
       checktype=connect
       scheduler=rr
       protocol=fwm

virtual=10.226.193.230:9005
       real=10.226.193.189:9005 gate
       real=10.226.193.190:9005 gate
       checktype=connect
       service=none
       scheduler=rr
       protocol=tcp

virtual=10.226.193.230:9007
       real=10.226.193.189:9007 gate
       real=10.226.193.190:9007 gate
       checktype=connect
       service=none
       scheduler=rr
       protocol=tcp
********************************

and ipvsadm shows:

********************************
IP Virtual Server version 1.0.8 (size=65536)
Prot LocalAddress:Port Scheduler Flags
 -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  10.226.193.250:80 rr
 -> 10.226.193.190:80            Route   0      0          0
 -> 10.226.193.189:80            Local   1      0          0
TCP  10.226.193.230:9007 rr
 -> 10.226.193.189:9007          Local   1      0          0
 -> 10.226.193.190:9007          Route   0      0          0
TCP  10.226.193.230:9005 rr
 -> 10.226.193.189:9005          Local   1      0          0
 -> 10.226.193.190:9005          Route   0      0          0
FWM  1 rr
 -> 10.226.193.190:0             Route   1      0          0
 -> 10.226.193.189:0             Local   1      0          0
********************************

Any ideas or if I have overlooked sth?

Thanks!

- Jiang -


On 6/27/06, Jiang <bearie66@xxxxxxxxx> wrote:
Hi,

Sorry to bring up this issue again as I really don't hv time to read
the documents...

In short, our application need to listen to 50 ports, instead of
configuring them one by one in ldirectord.cf, is there a simple way to
configure them? Someone suggested me to use firewall mark, but I don't
understand how lvs monitor the services if they are online or offline?

Can I also have the sample configuration?

Thanks a lot!!

--
Regards,
Jiang



--
Regards,
Jiang Lei

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