Problem getting mod_cluster to recognize existing JSESSIONID's via stickysessions
john.miller Apr 21, 2011 5:14 PMWe are having a problem getting mod_cluster to recognize existing JSESSIONID's via stickysessions in EWS (apache only). Instead it is issuing new session ids and connecting to the incorrect node in the balancer during an established session. This is very similar to the issue found here in RedHat DOC-17273: https://access.redhat.com/kb/docs/DOC-17273 We have tried the fix suggested in DOC-17273 but this does not fix the issue. We believe the issue lies somewhere in the configuration of apache/mod_cluster as we are not seeing critical debug log output from the mod_cluster module. In particular, we should see something like the following when an existing session via JSESSIONID arrives into mod_cluster: --- [Mon Jan 24 11:42:26 2011] [debug] mod_proxy_cluster.c(1628): cluster: Found value pqMwwCnQX3wP0cRIpX0e1g__.node1 for stickysession JSESSIONID|jsessionid [Mon Jan 24 11:42:26 2011] [debug] mod_proxy_cluster.c(1956): cluster: Using route node1 [Mon Jan 24 11:42:26 2011] [debug] mod_proxy_cluster.c(943): get_balancer_by_node found context /application1 [Mon Jan 24 11:42:26 2011] [debug] mod_proxy.c(993): Running scheme balancer handler (attempt 0) [Mon Jan 24 11:42:26 2011] [debug] mod_proxy_ajp.c(644): proxy: AJP: serving URL ajp://192.168.0.10:8009/application1/ --- Instead we see: --- [Wed Apr 13 13:23:31 2011] [debug] mod_proxy_cluster.c(943): get_balancer_by_node found context /buttercup [Wed Apr 13 13:23:31 2011] [debug] mod_proxy_cluster.c(943): get_balancer_by_node found context /buttercup [Wed Apr 13 13:23:31 2011] [debug] mod_proxy_cluster.c(943): get_balancer_by_node found context /buttercup [Wed Apr 13 13:23:31 2011] [debug] mod_proxy_cluster.c(1134): proxy: byrequests balancer DONE (ajp://10.200.65.11:8009) [Wed Apr 13 13:23:31 2011] [debug] mod_proxy.c(993): Running scheme balancer handler (attempt 0) [Wed Apr 13 13:23:31 2011] [debug] mod_proxy_http.c(1930): proxy: HTTP: declining URL ajp://10.200.65.11:8009/ [Wed Apr 13 13:23:31 2011] [debug] mod_proxy_ajp.c(644): proxy: AJP: serving URL ajp://10.200.65.11:8009/ --- (Note: These two debug snippets are from two different sources; the first from a working Internet example and the latter from our own (not working) configuration.) The key here is that in our configuration we are not seeing the "cluster: Found value.." line AND the "cluster: Using route node1..." line. For some reason our apache/mod-clusterconfiguration is not able to find the JSESSIONID and route information. Do you have an idea why this is happening? I can provide any addtional configuration file that you need. Just let me know which ones are useful to you. Also, here are the versions and configurations that we are using: - RedHat EAP 5.1.0 - RedHat EWS 1.0.1 - RedHat ep native 5.1.0 - mod_cluster module 1.0.4 Note: we are using only apache in EWS as a frontend to a 2-node clustered (HAModCluster) EAP cluster.
-
server.xml 8.4 KB
-
httpd.conf.zip 11.9 KB
-
httpd.conf.new.zip 12.1 KB