-
1. Re: multiple httpd segment faults in mod_proxy_cluster.c
jfclere Aug 21, 2013 8:44 AM (in response to marcodanti)Do you have something special in the configuration? How do you reproduce the issue?
What the application server? Tomcat, AS(n), EAP(n)?
-
2. Re: multiple httpd segment faults in mod_proxy_cluster.c
marcodanti Aug 21, 2013 3:28 PM (in response to jfclere)Sorry, I am using AS 7.2.0.Final. Attached are my config files and the test application.
the test app is to exercise the web session replication, and can be invoked as follows:
http://...../tses/session.jsp (to show which node replied and the session contents)
http://...../tses/session.jsp?param=value (to set/change the session contents)
On the system running httpd-2.4.6/mod_cluster-1.2.5-dev, the reproduction of the crash is systematic by just accessing the test app
On the system running httpd-2.2.24/mod_cluster-1.2.3.Final, the reproduction of the crash is systematic and automatic (you just have to run the httpd and it starts crashing)
-
info.zip 80.1 KB
-
-
3. Re: multiple httpd segment faults in mod_proxy_cluster.c
marcodanti Aug 23, 2013 8:22 AM (in response to marcodanti)Problem update: I noticed that if I remove the BalancerMember directives
<Proxy balancer://mycluster>
BalancerMember .........
BalancerMember .........
ProxySet lbmethod=byrequests
# ProxySet stickysession=JSESSIONID|jsessionid
</Proxy>
then HTTPD-2.4.6 does not crash anymore...I guess maybe using BalancerMember with mod_cluster is an error?
HTTPD-2.2.24 however keeps crashing, but I noticed that if I try to uncomment the "ProxySet stickysession..." line it stops crashing.
This last one looks more like a bug to me...
-
4. Re: multiple httpd segment faults in mod_proxy_cluster.c
jfclere Aug 23, 2013 9:49 AM (in response to marcodanti)Mixing BalancerMember created by mod_proxy and mod_cluster hasn't be tested...
I though it can't work as you can't have mod_balancer and mod_proxy_clsuter loaded togother in httpd.
-
5. Re: multiple httpd segment faults in mod_proxy_cluster.c
marcodanti Aug 24, 2013 5:19 AM (in response to jfclere)I am not sure I understand your reply....I do not have a module named mod_balancer; if you meant mod_proxy_balancer instead, I am not using that either.
What about the other issue, that if I do not put a "ProxySet stickysession..." directive in the configuration the httpd-2.2.24 crashes?
-
6. Re: multiple httpd segment faults in mod_proxy_cluster.c
jfclere Aug 26, 2013 5:40 AM (in response to marcodanti)In fact the problem is that the workers created BalancerMember aren't compatible with mod_proxy_cluster.
That is a bug and it needs to be fixed.
-
7. Re: multiple httpd segment faults in mod_proxy_cluster.c
marcodanti Aug 26, 2013 7:38 AM (in response to jfclere)should I open a JIRA about that?
-
8. Re: multiple httpd segment faults in mod_proxy_cluster.c
rhusar Aug 26, 2013 7:40 AM (in response to marcodanti)I don't see an open issue for it, so yes please :-)
-
10. Re: multiple httpd segment faults in mod_proxy_cluster.c
mbabacek Sep 13, 2013 9:29 AM (in response to marcodanti)Regarding:
HTTPD-2.2.24 however keeps crashing, but I noticed that if I try to uncomment the "ProxySet stickysession..." line it stops crashing.
This last one looks more like a bug to me...
Hmm, yes, it is https://issues.jboss.org/browse/MODCLUSTER-334
-
11. Re: Re: multiple httpd segment faults in mod_proxy_cluster.c
mbabacek Sep 13, 2013 6:25 PM (in response to marcodanti)This is so weird... I've failed to reproduce the crash. I worked with httpd 2.2.22 and mod_cluster 1.2.4 (OK, fair enough, different versions, and yet...). As to the configs, I found inspiration in your info.zip.
Configs: https://gist.github.com/Karm/c0e4bcca1230bcf204e1
Note that tses is actually an excluded context, because without it, mod_cluster had picked it up and it worked, IMHO bypassing the mod_proxy config.
- So, with this config, accessing the context directly on one of the worker nodes works (sanity check):
curl 999.1.88.9:8080/tses/session.jsp
- There are no errors in the error_log
- This returns correct HTTP 404 (it's a different VirtualHost):
curl 999.1.88.9:2080/tses/session.jsp
- Another context, being picked up by mod_cluster, works just fine:
curl 999.1.88.9:2080/clusterbench/jvmroute
- And finally, this request causes HTTP 503:
curl 999.1.88.9:2081/tses/session.jsp
- error_log on debug telling only:
[Fri Sep 13 18:15:26 2013] [debug] mod_proxy_cluster.c(2193): proxy: byrequests balancer FAILED [Fri Sep 13 18:15:26 2013] [error] proxy: CLUSTER: (balancer://qacluster). All workers are in error state
Hmm... byrequests is the default balancing method for mod_proxy balancer and I wonder where is it supposed to be coming from, since proxy_balancer_module is actually disabled due to mod_proxy_cluster...
@jfclere : Did you get the same behaviour as marcodanti ?
I'll try to replicate your configuration verbatim the next time and see what I can get...
- So, with this config, accessing the context directly on one of the worker nodes works (sanity check):