LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Keepalived: sorry_server on directors?

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Keepalived: sorry_server on directors?
From: Simon Young <simon-lvs@xxxxxxxxxxxxxxx>
Date: Tue, 7 Sep 2004 11:08:04 +0100
On Mon, Sep 06, 2004 at 07:01:33PM +0100, Easytrans Systems (Laurie Baker) 
wrote:
> 
> Take a look at Horms's
> http://www.ultramonkey.org/2.0.1/topologies/hc-ha-lb-eg.html
> 
> More specifically:
> http://www.ultramonkey.org/2.0.1/topologies/config/hc-ha-lb/non-fwmark/linux
> _director/ldirectord.cf
> for one example .... a snippet below .... "SEE FALLBACK" ... just be sure
> that your director has a webserver up and running and listening on port 80
> in this example ...

Thanks for that, but it's not *quite* what I'm looking for. I'm using
keepalived, rather than ldirectord, with a similar configuration
(webserver listening on 127.0.0.1:80):

virtual_server 192.168.2.50 80 {
    delay_loop 6
    lb_algo wrr
    lb_kind DR
    protocol TCP
    sorry_server 127.0.0.1 80
    (etc...)
}

The webserver is running fine, and the fallback server is successfully
added to the pool:

director2:~# ipvsadm -ln
IP Virtual Server version 1.0.4 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  192.168.2.50:80 wrr
  -> 127.0.0.1:80                 Local   1      0          0


Yet I'm still getting "connection refused" when trying to connect. I'm
sure I'm just missing one little thing...

Any ideas?

Thanks in advance,

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