LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

help on ldirectord

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: help on ldirectord
From: sipieter nicolas <niko_2501@xxxxxxxxxxx>
Date: Wed, 19 Oct 2005 14:14:49 +0900 (JST)
hi there, i have LVS working, it's great..
now i'd like to have some health check performed by
ldirectord, this is where i get confused:

here's what i need to be done
i need my.server.net url to be checked for the presence of
either: 10.html or 20.html or 30.html.
deoending which file is found by the url check (only 1 can
be found)
i would like to change LVS weight and server order..
so let's say if my.server.net url is test and
my.server.net/20.html exist (other like 10.html and
30.html will not) then make 192.168.0.10 my principal
backend and the other ready as fail over or something..



here's my config file in /etc/ha.d/ldirectord.cf
checktimeout=3
checkinterval=1
fallback=127.0.0.1:80
autoreload=yes
quiescent=yes
real=192.168.0.10:80 masq 1 "http://my.server.net/10.html";
PPOW10"
real=192.168.0.20:80 masq 1 "http://my.server.net/20.html";
PPOW20"
real=192.168.0.30:80 masq 1 "http://my.server.net/30.html";
PPOW30"

that's all
i started it with /etc/init.d/ldirectord start
now what? when i type in a term "ipvsadm" nothing change i
alway get this:

kanzume niko # ipvsadm
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port           Forward Weight ActiveConn
InActConn
TCP  192.168.123.1:http rr
-> 192.168.0.10:http             Masq    1      0         
0         
-> 192.168.0.20:http             Masq    2      0         
0         
kanzume niko # 

could you tell me what i did wrong?
nothing get changed, nothing happen..

thanks for your time.

--------------------------------------
Know more about Breast Cancer
http://pr.mail.yahoo.co.jp/pinkribbon/


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