You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2006/03/14 15:02:59 UTC
DO NOT REPLY [Bug 38962] New: - retry timeout not honored when configured in sticky mode
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38962>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38962
Summary: retry timeout not honored when configured in sticky mode
Product: Apache httpd-2
Version: 2.2.0
Platform: Other
OS/Version: AIX
Status: NEW
Severity: normal
Priority: P2
Component: mod_proxy_balancer
AssignedTo: bugs@httpd.apache.org
ReportedBy: cboitel@lfdj.com
Configure an Apache to use a balancer to redirect requests say to one tomcat
but without failover system (noFailover=on). On tomcat, configure it with a
jvmroute (appended to JSESSIONID) and deploy a sample test.jsp page that
simply displays "hello world !".
1/ Opens up your favourite browser and call the test jsp page: OK
2/ Stop your tomcat and call the test jsp page: you get the 503 error page and
your worker is flagged in error state
3/ don't close your browser, call again the page: you still get the 503 page
but in the error apache log, you get a "All workers are in error state for
route (xxxxx)"
4/ don't close your browser (to keep the session cookie)
5/ restart your tomcat and wait at least 90s (default retry timeout for a
worker is 60s and give a chance to your tomcat to complete its startup)
6/ call your test jsp page with your browser left opened in 4: still get a 503
error
7/ open a new browser, call the test jsp page: it works !
Pb in in mod_proxy_balancer.c inside find_session_route function: it finds the
worker associated with the route provided by the client but doesn't call the
ap_proxy_retry_worker to check if it is time to try the worker again.
Will attach the "diff -u" output as an attachment.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 38962] - retry timeout not honored when configured in sticky mode
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38962>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38962
rpluem@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From rpluem@apache.org 2007-05-31 05:43 -------
This should be fixed by the patch mentioned in comment #2. This fix is already
part of httpd 2.2.4. So please apply the patch mentioned above or upgrade to
2.2.4 to resolve your problem.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 38962] - retry timeout not honored when configured in sticky mode
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38962>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38962
------- Additional Comments From cboitel@lfdj.com 2006-03-14 14:04 -------
Created an attachment (id=17892)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=17892&action=view)
Unified diff for patch to apply to mod_proxy_balancer.c
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 38962] - retry timeout not honored when configured in sticky mode
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38962>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38962
------- Additional Comments From rpluem@apache.org 2006-08-23 19:32 -------
Thanks for the reminder. Proposed for backport as r434133
(http://svn.apache.org/viewvc?rev=434133&view=rev).
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 38962] - retry timeout not honored when configured in sticky mode
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38962>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38962
------- Additional Comments From rpluem@apache.org 2006-06-27 12:08 -------
Committed a slightly modified version to trunk as r417443
(http://svn.apache.org/viewvc?rev=417443&view=rev). Thanks.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 38962] - retry timeout not honored when configured in sticky mode
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38962>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38962
------- Additional Comments From Dale_Ogilvie@trimble.com 2007-05-30 20:42 -------
Looks like I'm seeing this bugs as well.
I am running Apache 2.2.3 on RedHat EL 5. I am trying to use Apache to load
balance between two local instances of tomcat in order to utilize the vast
quantities of RAM on our production server.
My httpd setup looks like this:
<Proxy balancer://tomcat>
BalancerMember ajp://localhost:8009 min=10 max=100 route=tomcat1
loadfactor=1 retry=120
BalancerMember ajp://localhost:8010 min=10 max=100 route=tomcat2
loadfactor=1 retry=120 </Proxy>
<Location /balancer-manager>
SetHandler balancer-manager
Order deny,allow
Deny from all
Allow from .trimblecorp.net
</Location>
ProxyPass /dscgi/ds.py/ balancer://tomcat/docushare/dsweb/
stickysession=JSESSIONID nofailover=On ProxyPass /docushare
balancer://tomcat/docushare stickysession=JSESSIONID nofailover=On ProxyPass
/docushare/ balancer://tomcat/docushare/ stickysession=JSESSIONID nofailover=On
The problem is that if one of the workers gets into error status, any client
with a JSESSIONID referencing that route is never able to receive a reply,
Apache *always* responds with a 503 � Temporarily unavailable, *until* another
request is successful. I expected with "retry=120" that after 120 seconds the
client would be able to use the errored out worker, but this is *not* the case.
Test case:
1. Start tomcats
2. Access /docushare, this succeeds and returns a JSESSIONID cookie referencing
the member e.g. JSESSIONID=BC90C156669FDF0194657FF27EC3AF99.tomcat2
3. Stop tomcats to simulate a backend failure
4. Access /docushare again in the same browser session, this fails with a 503
error (as expected). Balance-manager shows tomcat1 is OK, and tomcat2 is Err
Error_log shows: All workers are in error state for route (tomcat2)
5. Start tomcats again
6. Wait for 120+ seconds to allow retry=120 to take effect
7. Access /docushare *using the session with the tomcat2 cookie*, expect
success, get 503 error. I can repeat this step ad nauseam without ever getting a
successful response.
Error_log shows: All workers are in error state for route (tomcat2)
8. To resolve the issue, delete the JSESSIONID cookie from the client or open up
a new browser and access /docushare. Either of these seem to solve the problem
for the "cookied" browser session.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 38962] - retry timeout not honored when configured in sticky mode
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38962>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38962
------- Additional Comments From cboitel@lfdj.com 2006-08-23 07:06 -------
Is it possible to commit change in 2.2 branch ?
I was expecting the fix to appear in the recent 2.2.3 release.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 38962] - retry timeout not honored when configured in sticky mode
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38962>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38962
chuck.mcintyre@gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |chuck.mcintyre@gmail.com
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org