LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: ldirectord v 1.88 2004/05/27 05:29:05 fallback problems again

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: ldirectord v 1.88 2004/05/27 05:29:05 fallback problems again
Cc: Tuomo Soini <tis@xxxxxxxxx>
From: Horms <horms@xxxxxxxxxxxx>
Date: Wed, 2 Jun 2004 16:26:06 +0900
On Wed, Jun 02, 2004 at 10:00:58AM +1000, Jonathan Trott wrote:
> I'm still having problems getting the fallback feature working 
> properly. Now I'm getting the fallback server added on half of my 
> server pools but not the other half. At least I'm not getting the 
> fallback server added to pools with live servers in them, but I'm not 
> getting the extected behaviour either.
> Any ideas?

Hi Jonathan,

thanks for the detailed bug report. It seems that
there is indeed a problem that is only exhibited with quiescent=no.
I also suspect there might be some other related bugs to do with
reloading the config and toggling quiescent. I hope to have a fix
available shortly.

-- 
Horms

> *** Configuration file ldirectord.cf
> 
> checktimeout=6
> checkinterval=2
> autoreload=yes
> logfile="local0"
> quiescent=no
> 
> virtual=192.168.100.1:80
>         real=192.168.11.11:80 masq
>         real=192.168.11.12:80 masq
>         real=192.168.11.13:80 masq
>         real=192.168.11.14:80 masq
>         fallback=127.0.0.1:80
>         service=http
>         request="/serverstate/"
>         receive="server up"
>         scheduler=rr
>         persistent=5
>         protocol=tcp
> 
> virtual=192.168.0.1:80
>         real=192.168.11.11:80 masq
>         real=192.168.11.12:80 masq
>         real=192.168.11.13:80 masq
>         real=192.168.11.14:80 masq
>         fallback=127.0.0.1:80
>         service=http
>         request="/serverstate/"
>         receive="server up"
>         scheduler=rr
>         persistent=5
>         protocol=tcp
> 
> virtual=192.168.100.1:443
>         real=192.168.11.11:443 masq
>         real=192.168.11.12:443 masq
>         real=192.168.11.13:443 masq
>         real=192.168.11.14:443 masq
>         fallback=127.0.0.1:443
>         service=https
>         request="/serverstate/"
>         receive="server up"
>         scheduler=rr
>         persistent=5
>         protocol=tcp
> 
> virtual=192.168.0.1:443
>         real=192.168.11.11:443 masq
>         real=192.168.11.12:443 masq
>         real=192.168.11.13:443 masq
>         real=192.168.11.14:443 masq
>         fallback=127.0.0.1:443
>         service=https
>         request="/serverstate/"
>         receive="server up"
>         scheduler=rr
>         persistent=5
>         protocol=tcp
> 
> 
> *** Initial server pools
> 
> IP Virtual Server version 1.0.11 (size=4096)
> Prot LocalAddress:Port Scheduler Flags
>   -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
> TCP  192.168.0.1:80 rr persistent 5
>   -> 192.168.11.13:80             Masq    1      2          1
>   -> 192.168.11.11:80             Masq    1      0          0
> TCP  192.168.100.1:80 rr persistent 5
>   -> 192.168.11.13:80             Masq    1      0          0
>   -> 192.168.11.11:80             Masq    1      2          13
> TCP  192.168.0.1:443 rr persistent 5
>   -> 192.168.11.13:443            Masq    1      0          2
>   -> 192.168.11.11:443            Masq    1      0          0
> TCP  192.168.100.1:443 rr persistent 5
>   -> 192.168.11.13:443            Masq    1      0          0
>   -> 192.168.11.11:443            Masq    1      0          6
> 
> *** Took offline both servers
> 
> Jun  2 09:35:59 osacon2 ldirectord[24802]: Deleted real server: 
> 192.168.11.13:80 (1 x 192.168.100.1:80)
> Jun  2 09:35:59 osacon2 ldirectord[24802]: Deleted real server: 
> 192.168.11.13:80 (3 x 192.168.0.1:80)
> Jun  2 09:36:05 osacon2 ldirectord[24802]: Deleted real server: 
> 192.168.11.13:443 (1 x 192.168.100.1:443)
> Jun  2 09:36:05 osacon2 ldirectord[24802]: Deleted real server: 
> 192.168.11.13:443 (3 x 192.168.0.1:443)
> Jun  2 09:36:10 osacon2 ldirectord[24802]: Deleted real server: 
> 192.168.11.11:80 (0 x 192.168.100.1:80)
> Jun  2 09:36:10 osacon2 ldirectord[24802]: Added fallback server: 
> 127.0.0.1:80 (0 x 192.168.100.1:80) (Weight set to 1)
> Jun  2 09:36:10 osacon2 ldirectord[24802]: Deleted real server: 
> 192.168.11.11:80 (2 x 192.168.0.1:80)
> Jun  2 09:36:16 osacon2 ldirectord[24802]: Deleted real server: 
> 192.168.11.11:443 (0 x 192.168.100.1:443)
> Jun  2 09:36:16 osacon2 ldirectord[24802]: Added fallback server: 
> 127.0.0.1:443 (0 x 192.168.100.1:443) (Weight set to 1)
> Jun  2 09:36:16 osacon2 ldirectord[24802]: Deleted real server: 
> 192.168.11.11:443 (2 x 192.168.0.1:443)
> 
> *** Resultant server pools
> 
> IP Virtual Server version 1.0.11 (size=4096)
> Prot LocalAddress:Port Scheduler Flags
>   -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
> TCP  192.168.0.1:80 rr persistent 60
> TCP  192.168.100.1:80 rr persistent 60
>   -> 127.0.0.1:80                 Local   1      0          0
> TCP  192.168.0.1:443 rr persistent 60
> TCP  192.168.100.1:443 rr persistent 60
>   -> 127.0.0.1:443                Local   1      0          0
> 
> *** Bring online one server
> 
> Jun  2 09:38:22 osacon2 ldirectord[24802]: Added real server: 
> 192.168.11.11:443 (1 x 192.168.100.1:443) (Weight set to 1)
> Jun  2 09:38:22 osacon2 ldirectord[24802]: Deleted fallback server: 
> 127.0.0.1:443 (1 x 192.168.100.1:443)
> Jun  2 09:38:22 osacon2 ldirectord[24802]: Added real server: 
> 192.168.11.11:443 (3 x 192.168.0.1:443) (Weight set to 1)
> Jun  2 09:38:30 osacon2 ldirectord[24802]: Added real server: 
> 192.168.11.11:80 (1 x 192.168.100.1:80) (Weight set to 1)
> Jun  2 09:38:30 osacon2 ldirectord[24802]: Deleted fallback server: 
> 127.0.0.1:80 (1 x 192.168.100.1:80)
> Jun  2 09:38:30 osacon2 ldirectord[24802]: Added real server: 
> 192.168.11.11:80 (3 x 192.168.0.1:80) (Weight set to 1)
> 
> *** Resultant server pools
> 
> IP Virtual Server version 1.0.11 (size=4096)
> Prot LocalAddress:Port Scheduler Flags
>   -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
> TCP  192.168.0.1:80 rr persistent 5
>   -> 192.168.11.11:80             Masq    1      0          0
> TCP  192.168.100.1:80 rr persistent 5
>   -> 192.168.11.11:80             Masq    1      0          0
> TCP  192.168.0.1:443 rr persistent 5
>   -> 192.168.11.11:443            Masq    1      0          0
> TCP  192.168.100.1:443 rr persistent 5
>   -> 192.168.11.11:443            Masq    1      0          0
> 
> *** Took offline online server
> 
> Jun  2 09:38:44 osacon2 ldirectord[24802]: Deleted real server: 
> 192.168.11.11:80 (0 x 192.168.100.1:80)
> Jun  2 09:38:44 osacon2 ldirectord[24802]: Added fallback server: 
> 127.0.0.1:80 (0 x 192.168.100.1:80) (Weight set to 1)
> Jun  2 09:38:44 osacon2 ldirectord[24802]: Deleted real server: 
> 192.168.11.11:80 (2 x 192.168.0.1:80)
> Jun  2 09:38:50 osacon2 ldirectord[24802]: Deleted real server: 
> 192.168.11.11:443 (0 x 192.168.100.1:443)
> Jun  2 09:38:50 osacon2 ldirectord[24802]: Added fallback server: 
> 127.0.0.1:443 (0 x 192.168.100.1:443) (Weight set to 1)
> Jun  2 09:38:50 osacon2 ldirectord[24802]: Deleted real server: 
> 192.168.11.11:443 (2 x 192.168.0.1:443)
> 
> *** Resultant server pools
> 
> IP Virtual Server version 1.0.11 (size=4096)
> Prot LocalAddress:Port Scheduler Flags
>   -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
> TCP  192.168.0.1:80 rr persistent 60
> TCP  192.168.100.1:80 rr persistent 60
>   -> 127.0.0.1:80                 Local   1      0          0
> TCP  192.168.0.1:443 rr persistent 60
> TCP  192.168.100.1:443 rr persistent 60
>   -> 127.0.0.1:443                Local   1      0          0
> 
> *** Bring online both servers
> 
> Jun  2 09:41:08 osacon2 ldirectord[24802]: Added real server: 
> 192.168.11.13:80 (1 x 192.168.100.1:80) (Weight set to 1)
> Jun  2 09:41:08 osacon2 ldirectord[24802]: Deleted fallback server: 
> 127.0.0.1:80 (1 x 192.168.100.1:80)
> Jun  2 09:41:08 osacon2 ldirectord[24802]: Added real server: 
> 192.168.11.13:80 (3 x 192.168.0.1:80) (Weight set to 1)
> Jun  2 09:41:11 osacon2 ldirectord[24802]: Added real server: 
> 192.168.11.11:443 (1 x 192.168.100.1:443) (Weight set to 1)
> Jun  2 09:41:11 osacon2 ldirectord[24802]: Deleted fallback server: 
> 127.0.0.1:443 (1 x 192.168.100.1:443)
> Jun  2 09:41:11 osacon2 ldirectord[24802]: Added real server: 
> 192.168.11.11:443 (3 x 192.168.0.1:443) (Weight set to 1)
> Jun  2 09:41:14 osacon2 ldirectord[24802]: Added real server: 
> 192.168.11.13:443 (2 x 192.168.100.1:443) (Weight set to 1)
> Jun  2 09:41:14 osacon2 ldirectord[24802]: Added real server: 
> 192.168.11.13:443 (4 x 192.168.0.1:443) (Weight set to 1)
> Jun  2 09:41:19 osacon2 ldirectord[24802]: Added real server: 
> 192.168.11.11:80 (2 x 192.168.100.1:80) (Weight set to 1)
> Jun  2 09:41:19 osacon2 ldirectord[24802]: Added real server: 
> 192.168.11.11:80 (4 x 192.168.0.1:80) (Weight set to 1)
> 
> *** Resultant server pools
> 
> IP Virtual Server version 1.0.11 (size=4096)
> Prot LocalAddress:Port Scheduler Flags
>   -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
> TCP  192.168.0.1:80 rr persistent 5
>   -> 192.168.11.13:80             Masq    1      0          0
>   -> 192.168.11.11:80             Masq    1      0          0
> TCP  192.168.100.1:80 rr persistent 5
>   -> 192.168.11.13:80             Masq    1      0          0
>   -> 192.168.11.11:80             Masq    1      0          0
> TCP  192.168.0.1:443 rr persistent 5
>   -> 192.168.11.13:443            Masq    1      0          0
>   -> 192.168.11.11:443            Masq    1      0          0
> TCP  192.168.100.1:443 rr persistent 5
>   -> 192.168.11.13:443            Masq    1      0          0
>   -> 192.168.11.11:443            Masq    1      0          0
<Prev in Thread] Current Thread [Next in Thread>