LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: setting up ldirectord.cf : subnet for real servers

To: Vijay K <vijay_k@xxxxxxxxxxxxx>
Subject: Re: setting up ldirectord.cf : subnet for real servers
Cc: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
From: Horms <horms@xxxxxxxxxxxx>
Date: Tue, 23 Aug 2005 11:25:09 +0900
On Mon, Aug 22, 2005 at 08:03:06PM +0530, Vijay K wrote:
> 
> Hi
> I have setup a configuration with two ldirectors and two real servers
> the virtual services for http and https are configured in ldirectord.cf
> 
> i) Is there a way i can specify a set of realservers(a subnet say from
> ipconfig range : 10.10.30.35 to 10.10.30.55) so that as and when a system
> with an ip address of the given range is added to teh network it becomes
> part of teh configuration.

Yes, just add them to the ldirectord.cf file, either individually
or as a range, and if they are available, then ldirectord
will tell LVS to include them in the load-balancing pool.

> ii)Earlier i was configuring the real servers using ipvsadm. now ldirectord
> if working and teh ipvsadm command gives the following output.
> 
> [root@dir1 ssh]# /sbin/ipvsadm
> IP Virtual Server version 1.2.1 (size=4096)
> Prot LocalAddress:Port Scheduler Flags
>   -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
> TCP  10.10.30.30:http rr persistent 600
>   -> localhost.localdomain:http   Local   1      0          0
>   -> 10.10.33.11:http             Masq    0      0          0
>   -> 10.10.33.12:http             Masq    0      0          0
> TCP  10.10.30.30:https rr persistent 600
>   -> localhost.localdomain:https  Local   1      0          0
>   -> 10.10.33.11:https            Masq    0      0          0
>   -> 10.10.33.12:https            Masq    0      0          0
> 
> There doesnt seem to be any act or inactive conn and i am not able to access
> teh real servers which i used to while i was manually adding teh real
> servers on cammdn line using ipvsadm. My log file /var/log/ldirectord.log is
> empty and i am presuming that ldirectord is working fine. Does the above
> output mean that the two real servers are down?
> 
> Please let me know
> And forgive me if i am wierd but i would be thanbkful if somebody can direct
> me to procure for setting up ldirectord an dteh cases it might go wrong, how
> to jknow if its working

The weight of both your real servers is 0. This means
that ldirectord things that they are unavailable for some reason.
Please check your request and recieve strings and make sure
these match what your real servers are returning. Running ldirectord 
with the -d flag should show you a little more detail about
what ldirectord things is going on.

-- 
Horms

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