Hi Brad,

according to the pound documentation you are facing the correct
behaviour. pound still directs Requests to the disabled backend, but
only if this client is still in the routing table of pound. So all new
Requests should be forwaded to the non-disabled backends.

Kind regards
David

Am 18.06.2013 19:21, schrieb Brad Allison:
> Okay.  Now using -1 for the listener I see the backend server is
> listed as status="DISABLED".  So that part worked.
>
> But I also see traffic is still being sent to that server and hostname
> keys are still pointed to that server.  I also see in the pound.log
> that it's still sending request to that "DISABLED" server.
>
> So if it's DISABLED in pound why would pound still continue to send
> traffic there?
>
> The data:
> [root@lalalqa-lb-01 ~]# /usr/sbin/poundctl -c /var/lib/pound/pound.cfg -X
> <pound>
> <listener index="0" protocol="HTTPS" address="0.0.0.0:443
> <http://0.0.0.0:443>" status="active">
> </listener>
> <service index="0">
> <backend index="0" address="10.0.2.21:443 <http://10.0.2.21:443>"
> avg="0.000" priority="5" alive="yes" status="DISABLED" />
> <backend index="1" address="10.0.3.22:443 <http://10.0.3.22:443>"
> avg="0.000" priority="5" alive="yes" status="active" />
> <session index="0" key="derm-auto.lalalqa.com
> <http://derm-auto.lalalqa.com>" backend="1" />
> <session index="1" key="demo.lalalqa.com <http://demo.lalalqa.com>"
> backend="1" />
> <session index="2" key="testing.myqa.com <http://testing.myqa.com>"
> backend="0" />
> <session index="3" key="ophth.lalalqa.com <http://ophth.lalalqa.com>"
> backend="0" />
> </service>
> </pound>
>
> From pound.log:
>
> Jun 18 17:15:38 lalalqa-pound-01 pound: testing.myqa.com
> <http://testing.myqa.com> 173.255.181.79 - - [18/Jun/2013:17:15:38
> +0000] "GET /static/images/layout/footer-tail-bg.gif HTTP/1.1" 200 49
> "https://testing.myqa.com/ema/static/css/ema.css?build=3.0.0.7.8&rev=34505";
> "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101
> Firefox/21.0" (- -> 10.0.2.21:443 <http://10.0.2.21:443>) 0.026 sec
> Jun 18 17:15:38 lalalqa-pound-01 pound: testing.myqa.com
> <http://testing.myqa.com> 173.255.181.79 - - [18/Jun/2013:17:15:38
> +0000] "GET /static/yui/2.9.0/build/assets/skins/sam/sprite.png
> HTTP/1.1" 200 3745
> "https://testing.myqa.com/ema/static/css/ema.css?build=3.0.0.7.8&rev=34505";
> "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101
> Firefox/21.0" (- -> 10.0.2.21:443 <http://10.0.2.21:443>) 0.028 sec
>
>
>
>
> On Tue, Jun 18, 2013 at 10:46 AM, Joe Gooch <mrwiz...@k12system.com
> <mailto:mrwiz...@k12system.com>> wrote:
>
>     Try using -1 as the listener.
>
>      
>
>     From your XML output it appears you use global services. (Services
>     not contained within the Listener block itself)
>
>      
>
>     Joe
>
>      
>
>      
>
>     *From:*Brad Allison [mailto:brad.alli...@gmail.com
>     <mailto:brad.alli...@gmail.com>]
>     *Sent:* Tuesday, June 18, 2013 9:37 AM
>     *To:* pound@apsis.ch <mailto:pound@apsis.ch>
>     *Subject:* [Pound Mailing List] poundctl command simply do not work
>
>      
>
>     I'm trying to use the -b option for poundctl to disable a backend.
>
>      
>
>     The command runs with the three fields listener service and
>     backend.  The command appears to work.
>
>      
>
>     But when I list out the -X option it says all backends are
>     enabled... even though I just disabled it.  So the options for
>     poundctl do not work.
>
>      
>
>     Notice how the status for the backend index=1 it still set to
>     "active" after I disabled it.
>
>      
>
>     [root@ ~]# /usr/sbin/poundctl  -c /var/lib/pound/pound.cfg -b 0 0 1
>
>      
>
>     [root@ ~]# /usr/sbin/poundctl  -c /var/lib/pound/pound.cfg -X
>
>     <pound>
>
>     <listener index="0" protocol="HTTPS" address="0.0.0.0:443
>     <http://0.0.0.0:443>" status="active">
>
>     </listener>
>
>     <service index="0">
>
>     <backend index="0" address="10.0.2.21:443 <http://10.0.2.21:443>"
>     avg="0.000" priority="5" alive="yes" status="active" />
>
>     <backend index="1" address="10.0.3.22:443 <http://10.0.3.22:443>"
>     avg="0.000" priority="5" alive="yes" status="active" />
>
>     <session index="0" key="demo.lalala.com <http://demo.lalala.com>"
>     backend="1" />
>
>     <session index="1" key="107.11.11.11" backend="1" />
>
>     </service>
>
>     </pound>
>
>      
>
>

Reply via email to