httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <bi...@antworte.me>
Subject [users@httpd] mod_proxy_ajp (apache 2.2
Date Thu, 22 Apr 2010 10:03:59 GMT

Hello list,

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.

If I have

ProxyPass /sample balancer://balancer/sample stickysession=JSESSIONID
nofailover=On

<Proxy balancer://balancer>
BalancerMember ajp://app1:8009 route=app1 loadfactor=1 status=D
BalancerMember ajp://app2:8009 route=app2 loadfactor=1 
</Proxy>

Then everything works OK.

If I change it to 

<Proxy balancer://balancer>
BalancerMember ajp://app1:8009 route=app1 loadfactor=1
BalancerMember ajp://app2:8009 route=app2 loadfactor=1 status=D 
</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.

Torsten.

My Server is

Server version: Apache/2.2.10 (Linux/SUSE)
Server built:   Oct 20 2009 16:38:38
Server's Module Magic Number: 20051115:18
Server loaded:  APR 1.3.3, APR-Util 1.3.4
Compiled using: APR 1.3.3, APR-Util 1.3.4
Architecture:   64-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)



---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message