Re: mod_proxy_ajp (apache 2.2) config change not recognized by graceful

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Apr 24, 2010 at 2:08 PM,  <bitte@xxxxxxxxxxx> wrote:
>
> Hi all,
>
> it seems mod_proxy / mod_proxy_ajp does not realize config changes while
> doing a graceful restart.
>
> I need to connect to 2 ajp-services but only to one at one time, and need
> current sessions pointing
> to the appserver:18009, new sessions after graceful to appserver:28009.
>
> If I have
>
> ProxyPass /jeeapp balancer://balancer/jeeapp stickysession=JSESSIONID
> nofailover=On
>
> <Proxy balancer://balancer>
> BalancerMember ajp://appserver:18009 route=jvmroute1 loadfactor=1
> BalancerMember ajp://appserver:28009 route=jvmroute2 loadfactor=1 status=D
>
> </Proxy>
>
> Then everything works OK.
>
> If I change it to
>
> <Proxy balancer://balancer>
> BalancerMember ajp://appserver:18009 route=jvmroute1 loadfactor=1 status=D
> BalancerMember ajp://appserver:28009 route=jvmroute2 loadfactor=1
> </Proxy>
>
> And perform a apache -k graceful
>
> The /balancer-manager shows the old config.
> And the apache is not working like the new way but the above.
>
> If I perform a restart - all current sessions get be killed -
> and it works as it connects to the other balancer member.
>
> Why is graceful not enough? Or what can I do to get the config
> change in balancer without terminating current sessions?
> (If I do it with the balancer-manager via Web it works as well).
>
> Any hints appreciated.
>
> Tom
>

Yep, it sucks. See:

https://issues.apache.org/bugzilla/show_bug.cgi?id=45950
https://issues.apache.org/bugzilla/show_bug.cgi?id=39811
https://issues.apache.org/bugzilla/show_bug.cgi?id=44736
https://issues.apache.org/bugzilla/show_bug.cgi?id=42621

The one that really hit us is that if you have a config with 5
balancers set up in this order in the config - [ a, b, c, d, e ] - and
then introduce another 2 balancers into the configuration file so they
are in this order [ a, b, f, g, c, d, e ], and then do a graceful
restart, then the state of c and d get applied to f and g.

Plus, of course, if you do a full restart you fall back to whatever
configuration is in the config file, meaning if someone has manually
disabled/enabled any balancer members that info is lost.

The proxy balancer stuff certainly does not work as well as it could.

Cheers

tom

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux