Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot get tomcat 4 cluster working with sticky sessions

Status
Not open for further replies.

Yefym

Programmer
Aug 27, 2003
6
DE
I have Apache/2.0.45 running on the server A
And two tomcat workers are running on B and C

The problem is that I cannot get Tomcat cluster load
balanced with sticky sessions support. Playing around with workers.properties on
Apache gave me two different situations.
1.if I have local_worker parameter equal to 1, then
I have no lost sessions but also no loadbalancing . But
cluster is still fail safe, if one tomcat dies - another
one gets all incoming requests.
2. if I have local_worker=0 then I have a simple round-
robin balancer without session affinity. So my session got lost.


configuration example workers.properties:
worker.list=tomcat-worker-01,tomcat-worker-02,router
worker.tomcat-worker-02.port=4007
worker.tomcat-worker-02.host=xxx.xx.x.12
worker.tomcat-worker-02.type=ajp13
worker.tomcat-worker-02.lbfactor=50
worker.tomcat-worker-02.cachesize=10
worker.tomcat-worker-02.cache_timeout=600
worker.tomcat-worker-02.socket_timeout=300
worker.tomcat-worker-02.local_worker=1
worker.tomcat-worker-01.port=5007
worker.tomcat-worker-01.host=xxx.xx.x.20
worker.tomcat-worker-01.type=ajp13
worker.tomcat-worker-01.lbfactor=50
worker.tomcat-worker-01.cachesize=10
worker.tomcat-worker-01.cache_timeout=600
worker.tomcat-worker-01.socket_timeout=300
worker.tomcat-worker-01.local_worker=1
worker.router.type=lb
worker.router.balanced_workers=tomcat-worker-01,tomcat-worker-02
worker.router.sticky_session =1
worker.router.local_worker_only=1


SOS! any helpful hints would be useful.
Yefym Dmukh

 
Hi , some additional information .
I've got with mozilla LiveHTTPHeaders that my session cookie doesn't recieve Jvmroute parameter , so apache doesn't know anything about load-balancing .
Cookie: JSESSIONID=5387242C819757A9BC12B2FAF1AF2AD8;


Does anybody have any suggestion or idea?

P.S.
No errors or exceptions in mod_jk.log were found.
 

Hi people, I still have no any progress , I've installed the newest version of tomcat 4.1.27 and build mod_jk from the sources.
Still the same : all requests are sent to one tomcat , but if I shutdown it apache redirects the work to another one
No error messages, in mod_jk.log I see that two balanced workers were found.
Lots of web links say that load-balancing work , but in reallity they all point to one from Pascal Forget.

I even cannot view anything added by tomcat to my session cookie.



There are some conf files bellow.

Any help or suggestion would be highly appreciated.


P.S. My topic is still not in tomcat-users list. So what are criterias to put it there?
----------------------------------------------------------------------------------
Yefym
developer



MOD_JK.LOG


[Fri Aug 29 08:21:47 2003] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /ping/servlet/=loadbalancer was added
[Fri Aug 29 08:21:47 2003] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /ping/.jsp=loadbalancer was added
[Fri Aug 29 08:21:47 2003] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /ping/.do=loadbalancer was added
[Fri Aug 29 08:21:47 2003] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 33 rules
[Fri Aug 29 08:21:47 2003] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done
[Fri Aug 29 08:21:47 2003] [jk_worker.c (88)]: Into wc_open
[Fri Aug 29 08:21:47 2003] [jk_worker.c (222)]: Into build_worker_map, creating 3 workers
[Fri Aug 29 08:21:47 2003] [jk_worker.c (228)]: build_worker_map, creating worker tomcat-worker-01
[Fri Aug 29 08:21:47 2003] [jk_worker.c (148)]: Into wc_create_worker
[Fri Aug 29 08:21:47 2003] [jk_worker.c (162)]: wc_create_worker, about to create instance tomcat-worker-01 of ajp13
[Fri Aug 29 08:21:47 2003] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory
[Fri Aug 29 08:21:47 2003] [jk_worker.c (171)]: wc_create_worker, about to validate and init tomcat-worker-01
[Fri Aug 29 08:21:47 2003] [jk_ajp_common.c (1219)]: Into jk_worker_t::validate
[Fri Aug 29 08:21:47 2003] [jk_ajp_common.c (1239)]: In jk_worker_t::validate for worker tomcat-worker-01 contact is 172.31.7.20:5007
[Fri Aug 29 08:21:47 2003] [jk_ajp_common.c (1267)]: Into jk_worker_t::init
[Fri Aug 29 08:21:47 2003] [jk_ajp_common.c (1287)]: In jk_worker_t::init, setting socket timeout to 300
[Fri Aug 29 08:21:47 2003] [jk_worker.c (187)]: wc_create_worker, done
[Fri Aug 29 08:21:47 2003] [jk_worker.c (238)]: build_worker_map, removing old tomcat-worker-01 worker
[Fri Aug 29 08:21:47 2003] [jk_worker.c (228)]: build_worker_map, creating worker tomcat-worker-02
[Fri Aug 29 08:21:47 2003] [jk_worker.c (148)]: Into wc_create_worker
[Fri Aug 29 08:21:47 2003] [jk_worker.c (162)]: wc_create_worker, about to create instance tomcat-worker-02 of ajp13
[Fri Aug 29 08:21:47 2003] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory
[Fri Aug 29 08:21:47 2003] [jk_worker.c (171)]: wc_create_worker, about to validate and init tomcat-worker-02
[Fri Aug 29 08:21:47 2003] [jk_ajp_common.c (1219)]: Into jk_worker_t::validate
[Fri Aug 29 08:21:47 2003] [jk_ajp_common.c (1239)]: In jk_worker_t::validate for worker tomcat-worker-02 contact is 172.31.7.12:6007
[Fri Aug 29 08:21:47 2003] [jk_ajp_common.c (1267)]: Into jk_worker_t::init
[Fri Aug 29 08:21:47 2003] [jk_ajp_common.c (1287)]: In jk_worker_t::init, setting socket timeout to 300
[Fri Aug 29 08:21:47 2003] [jk_worker.c (187)]: wc_create_worker, done
[Fri Aug 29 08:21:47 2003] [jk_worker.c (238)]: build_worker_map, removing old tomcat-worker-02 worker
[Fri Aug 29 08:21:47 2003] [jk_worker.c (228)]: build_worker_map, creating worker loadbalancer
[Fri Aug 29 08:21:47 2003] [jk_worker.c (148)]: Into wc_create_worker
[Fri Aug 29 08:21:47 2003] [jk_worker.c (162)]: wc_create_worker, about to create instance loadbalancer of lb
[Fri Aug 29 08:21:47 2003] [jk_lb_worker.c (586)]: Into lb_worker_factory
[Fri Aug 29 08:21:47 2003] [jk_worker.c (171)]: wc_create_worker, about to validate and init loadbalancer
[Fri Aug 29 08:21:47 2003] [jk_lb_worker.c (420)]: Into jk_worker_t::validate
[Fri Aug 29 08:21:47 2003] [jk_worker.c (148)]: Into wc_create_worker
[Fri Aug 29 08:21:47 2003] [jk_worker.c (162)]: wc_create_worker, about to create instance tomcat-worker-01 of ajp13
[Fri Aug 29 08:21:47 2003] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory
[Fri Aug 29 08:21:47 2003] [jk_worker.c (171)]: wc_create_worker, about to validate and init tomcat-worker-01
[Fri Aug 29 08:21:47 2003] [jk_ajp_common.c (1219)]: Into jk_worker_t::validate
[Fri Aug 29 08:21:47 2003] [jk_ajp_common.c (1239)]: In jk_worker_t::validate for worker tomcat-worker-01 contact is 172.31.7.20:5007
[Fri Aug 29 08:21:47 2003] [jk_ajp_common.c (1267)]: Into jk_worker_t::init
[Fri Aug 29 08:21:47 2003] [jk_ajp_common.c (1287)]: In jk_worker_t::init, setting socket timeout to 300
[Fri Aug 29 08:21:47 2003] [jk_worker.c (187)]: wc_create_worker, done
[Fri Aug 29 08:21:47 2003] [jk_worker.c (148)]: Into wc_create_worker
[Fri Aug 29 08:21:47 2003] [jk_worker.c (162)]: wc_create_worker, about to create instance tomcat-worker-02 of ajp13
[Fri Aug 29 08:21:47 2003] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory
[Fri Aug 29 08:21:47 2003] [jk_worker.c (171)]: wc_create_worker, about to validate and init tomcat-worker-02
[Fri Aug 29 08:21:47 2003] [jk_ajp_common.c (1219)]: Into jk_worker_t::validate
[Fri Aug 29 08:21:47 2003] [jk_ajp_common.c (1239)]: In jk_worker_t::validate for worker tomcat-worker-02 contact is 172.31.7.12:6007
[Fri Aug 29 08:21:47 2003] [jk_ajp_common.c (1267)]: Into jk_worker_t::init
[Fri Aug 29 08:21:47 2003] [jk_ajp_common.c (1287)]: In jk_worker_t::init, setting socket timeout to 300
[Fri Aug 29 08:21:47 2003] [jk_worker.c (187)]: wc_create_worker, done
[Fri Aug 29 08:21:47 2003] [jk_lb_worker.c (498)]: Balanced worker 0 has name tomcat-worker-01
[Fri Aug 29 08:21:47 2003] [jk_lb_worker.c (498)]: Balanced worker 1 has name tomcat-worker-02
[Fri Aug 29 08:21:47 2003] [jk_lb_worker.c (502)]: in_local_worker_mode: true
[Fri Aug 29 08:21:47 2003] [jk_lb_worker.c (505)]: local_worker_only: true
[Fri Aug 29 08:21:47 2003] [jk_worker.c (187)]: wc_create_worker, done
[Fri Aug 29 08:21:47 2003] [jk_worker.c (238)]: build_worker_map, removing old loadbalancer worker
[Fri Aug 29 08:21:47 2003] [jk_worker.c (250)]: build_worker_map, done
[Fri Aug 29 08:21:47 2003] [jk_worker.c (111)]: wc_open, done 3
[Fri Aug 29 08:22:26 2003] [jk_connect.c (165)]: jk_open_socket, try to connect socket = 12
[Fri Aug 29 08:22:26 2003] [jk_connect.c (174)]: jk_open_socket, after connect ret = 0
[Fri Aug 29 08:22:26 2003] [jk_connect.c (183)]: jk_open_socket, set TCP_NODELAY to on
[Fri Aug 29 08:22:26 2003] [jk_connect.c (200)]: jk_open_socket, return, sd = 12
[Fri Aug 29 08:22:26 2003] [jk_ajp_common.c (614)]: In jk_endpoint_t::ajp_connect_to_endpoint, connected sd = 12
[Fri Aug 29 08:22:26 2003] [jk_ajp_common.c (642)]: sending to ajp13 #422
[Fri Aug 29 08:22:26 2003] [jk_ajp_common.c (884)]: ajp_send_request 2: request body to send 0 - request body to resend 0
[Fri Aug 29 08:22:26 2003] [jk_ajp_common.c (729)]: received from ajp13 #103
[Fri Aug 29 08:22:26 2003] [jk_ajp_common.c (483)]: ajp_unmarshal_response: status = 200
[Fri Aug 29 08:22:26 2003] [jk_ajp_common.c (488)]: ajp_unmarshal_response: Number of headers is = 2
[Fri Aug 29 08:22:26 2003] [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[0] [Content-Type] = [text/html;charset=ISO-8859-1]
[Fri Aug 29 08:22:26 2003] [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[1] [Set-Cookie] = [JSESSIONID=0A4FF4B6DFFC675F5A3AC28B24D330FC; Path=/ping]
[Fri Aug 29 08:22:26 2003] [jk_ajp_common.c (729)]: received from ajp13 #242
[Fri Aug 29 08:22:26 2003] [mod_jk.c (395)]: writing 238 (238) out of 238
[Fri Aug 29 08:22:26 2003] [jk_ajp_common.c (729)]: received from ajp13 #2
[Fri Aug 29 08:22:26 2003] [jk_ajp_common.c (1382)]: Into jk_endpoint_t::done, recycling connection
[Fri Aug 29 08:22:26 2003] [jk_lb_worker.c (394)]: Into jk_endpoint_t::done
[Fri Aug 29 08:26:52 2003] [jk_uri_worker_map.c (485)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Fri Aug 29 08:26:52 2003] [jk_uri_worker_map.c (501)]: Attempting to map URI '/ping/ping.jsp'
[Fri Aug 29 08:26:52 2003] [jk_uri_worker_map.c (582)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match loadbalancer -> *.jsp
[Fri Aug 29 08:26:52 2003] [jk_uri_worker_map.c (582)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match loadbalancer -> *.jsp
[Fri Aug 29 08:26:52 2003] [mod_jk.c (1708)]: Into handler r->proxyreq=0 r->handler=jakarta-servlet r->notes=136186728 worker=loadbalancer
[Fri Aug 29 08:26:52 2003] [jk_worker.c (132)]: Into wc_get_worker_for_name loadbalancer
[Fri Aug 29 08:26:52 2003] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker
[Fri Aug 29 08:26:52 2003] [mod_jk.c (494)]: agsp=80 agsn=base03.perf.intercomponentware.com hostn=base03.perf.intercomponentware.com shostn=base03.perf.intercomponentware.com cbsport=0 sport=0
[Fri Aug 29 08:26:52 2003] [jk_lb_worker.c (533)]: Into jk_worker_t::get_endpoint
[Fri Aug 29 08:26:52 2003] [jk_lb_worker.c (315)]: Into jk_endpoint_t::service
[Fri Aug 29 08:26:52 2003] [jk_ajp_common.c (1404)]: Into jk_worker_t::get_endpoint
[Fri Aug 29 08:26:52 2003] [jk_ajp_common.c (1448)]: In jk_endpoint_t::ajp_get_endpoint, time elapsed since last request = 266 seconds
[Fri Aug 29 08:26:52 2003] [jk_ajp_common.c (1116)]: Into jk_endpoint_t::service
[Fri Aug 29 08:26:52 2003] [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb
[Fri Aug 29 08:26:52 2003] [jk_ajp_common.c (432)]: ajp_marshal_into_msgb - Done
[Fri Aug 29 08:26:52 2003] [jk_ajp_common.c (642)]: sending to ajp13 #309
[Fri Aug 29 08:26:52 2003] [jk_ajp_common.c (884)]: ajp_send_request 2: request body to send 0 - request body to resend 0
[Fri Aug 29 08:26:53 2003] [jk_ajp_common.c (729)]: received from ajp13 #43
[Fri Aug 29 08:26:53 2003] [jk_ajp_common.c (483)]: ajp_unmarshal_response: status = 200
[Fri Aug 29 08:26:53 2003] [jk_ajp_common.c (488)]: ajp_unmarshal_response: Number of headers is = 1
[Fri Aug 29 08:26:53 2003] [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[0] [Content-Type] = [text/html;charset=ISO-8859-1]
[Fri Aug 29 08:26:53 2003] [jk_ajp_common.c (729)]: received from ajp13 #242
[Fri Aug 29 08:26:53 2003] [mod_jk.c (395)]: writing 238 (238) out of 238
[Fri Aug 29 08:26:53 2003] [jk_ajp_common.c (729)]: received from ajp13 #2
[Fri Aug 29 08:26:53 2003] [jk_ajp_common.c (1382)]: Into jk_endpoint_t::done, recycling connection
[Fri Aug 29 08:26:53 2003] [jk_lb_worker.c (394)]: Into jk_endpoint_t::done
[Fri Aug 29 08:26:54 2003] [jk_uri_worker_map.c (485)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Fri Aug 29 08:26:54 2003] [jk_uri_worker_map.c (501)]: Attempting to map URI '/ping/ping.jsp'
[Fri Aug 29 08:26:54 2003] [jk_uri_worker_map.c (582)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match loadbalancer -> *.jsp
[Fri Aug 29 08:26:54 2003] [jk_uri_worker_map.c (582)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match loadbalancer -> *.jsp
[Fri Aug 29 08:26:54 2003] [mod_jk.c (1708)]: Into handler r->proxyreq=0 r->handler=jakarta-servlet r->notes=136186728 worker=loadbalancer
[Fri Aug 29 08:26:54 2003] [jk_worker.c (132)]: Into wc_get_worker_for_name loadbalancer
[Fri Aug 29 08:26:54 2003] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker
[Fri Aug 29 08:26:54 2003] [mod_jk.c (494)]: agsp=80 agsn=base03.perf.intercomponentware.com hostn=base03.perf.intercomponentware.com shostn=base03.perf.intercomponentware.com cbsport=0 sport=0
[Fri Aug 29 08:26:54 2003] [jk_lb_worker.c (533)]: Into jk_worker_t::get_endpoint
[Fri Aug 29 08:26:54 2003] [jk_lb_worker.c (315)]: Into jk_endpoint_t::service
[Fri Aug 29 08:26:54 2003] [jk_ajp_common.c (1404)]: Into jk_worker_t::get_endpoint
[Fri Aug 29 08:26:54 2003] [jk_ajp_common.c (1448)]: In jk_endpoint_t::ajp_get_endpoint, time elapsed since last request = 2 seconds
[Fri Aug 29 08:26:54 2003] [jk_ajp_common.c (1116)]: Into jk_endpoint_t::service
[Fri Aug 29 08:26:54 2003] [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb
[Fri Aug 29 08:26:54 2003] [jk_ajp_common.c (432)]: ajp_marshal_into_msgb - Done
[Fri Aug 29 08:26:54 2003] [jk_ajp_common.c (642)]: sending to ajp13 #309
[Fri Aug 29 08:26:54 2003] [jk_ajp_common.c (884)]: ajp_send_request 2: request body to send 0 - request body to resend 0
[Fri Aug 29 08:26:54 2003] [jk_ajp_common.c (729)]: received from ajp13 #43
[Fri Aug 29 08:26:54 2003] [jk_ajp_common.c (483)]: ajp_unmarshal_response: status = 200
[Fri Aug 29 08:26:54 2003] [jk_ajp_common.c (488)]: ajp_unmarshal_response: Number of headers is = 1
[Fri Aug 29 08:26:54 2003] [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[0] [Content-Type] = [text/html;charset=ISO-8859-1]
[Fri Aug 29 08:26:54 2003] [jk_ajp_common.c (729)]: received from ajp13 #241
[Fri Aug 29 08:26:54 2003] [mod_jk.c (395)]: writing 237 (237) out of 237
[Fri Aug 29 08:26:54 2003] [jk_ajp_common.c (729)]: received from ajp13 #2
[Fri Aug 29 08:26:54 2003] [jk_ajp_common.c (1382)]: Into jk_endpoint_t::done, recycling connection
[Fri Aug 29 08:26:54 2003] [jk_lb_worker.c (394)]: Into jk_e


WORKERS.PROPERTIES


#
#
workers.tomcat_home=/usr/local/tomcat


#
workers.java_home=/usr/local/java

#
ps=/

worker.list=tomcat-worker-01,tomcat-worker-02,loadbalancer

worker.tomcat-worker-02.port=6007
worker.tomcat-worker-02.host=172.31.7.12
worker.tomcat-worker-02.type=ajp13
worker.tomcat-worker-02.lbfactor=50
worker.tomcat-worker-02.cachesize=10
worker.tomcat-worker-02.cache_timeout=600
worker.tomcat-worker-02.socket_timeout=300
worker.tomcat-worker-02.local_worker=1


worker.tomcat-worker-01.port=5007
worker.tomcat-worker-01.host=172.31.7.20
worker.tomcat-worker-01.type=ajp13
worker.tomcat-worker-01.lbfactor=50
worker.tomcat-worker-01.cachesize=10
worker.tomcat-worker-01.cache_timeout=600
worker.tomcat-worker-01.socket_timeout=300
worker.tomcat-worker-01.local_worker=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat-worker-01,tomcat-worker-02
worker.loadbalancer.sticky_session =1
worker.loadbalancer.local_worker_only=1

#
# Defining a worker named inprocess and of type jni
# Note that the name and the type do not have to match.
#
worker.inprocess.type=jni


#
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar

# Setting the command line for tomcat.
# Note: The cmd_line string may not contain spaces.
#
worker.inprocess.cmd_line=start

#
# Setting the place for the stdout and stderr of tomcat
#
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr




server.xml has these lines related to apache-tomcat interaction:
<Engine jmvRoute=&quot;tomcat-worker-01&quot; name=&quot;Standalone&quot; defaultHost=&quot;172.31.7.20&quot; debug=&quot;1&quot;>
<Connector className=&quot;org.apache.ajp.tomcat4.Ajp13Connector&quot;
port=&quot;5007&quot; acceptCount=&quot;10&quot; debug=&quot;0&quot;/>
 
Hi Yefym,

Hmm still having problems eh!

Take a look at the following and work through a simplified workers configuration .....
I know its Apache 1.3.23 but the concept is the same I think.

We have had no problems using sticky and loadbalance with the ajp solution, also have a look at the following thread where I steered another lost soul through the same process -> thread877-564269 me know how you get on?

Good Luck,
Laurie.
 
How many &quot;test client machines&quot; are you using?

You will not see any load balance if you are only using one test client.

Are you sure you understand that a secession (once attached with sticky) will remain with that cluster node for the duration of that secession? (So no loadbalance required after that point) the next client will (maybe) hook onto another cluster node (for the duration of that secession) and so on ........

You will not loadbalance a sticky connection over many cluster nodes.

Hope this helps,
Laurie
 
Hi tarn. I'm using several load generators (hosts) for the test.


The problem is that the same session distributed through several tomcat nodes, instead of be forwarded to the same one.

this behaviour U can see in the logfiles which I posted to the tomcat_users forum, here is the most interesting part :

&quot;So the result is that the same session processed by both tomcats but with right worker specified :

tomcat1:
2003-08-29 16:49:26 RequestDumperValve[Standalone]:
cookie=JSESSIONID=19E9FD015AF34C5181322F3FEF37B0D6.tomcat-worker-01




tomcat2:
003-08-29 16:50:10 RequestDumperValve[Standalone]:
header=cookie=JSESSIONID=19E9FD015AF34C5181322F3FEF37B0D6.tomcat-worker-01;




this could work if session is replicated on all tomcat servers but not in
a current state.
&quot;

SESSIONID is the same... worker is the same , but it processed by both tomcat using round-robin algorithm.


Do U have any idea ?


here is the link to tomcat forum thread:
 
Ok more information here:(but read on >>)


You have a TYPO in your posting earlyer >>
server.xml has these lines related to apache-tomcat interaction:
<Engine
jmvRoute=&quot;tomcat-worker-01&quot; name=&quot;Standalone&quot; defaultHost=&quot;172.31.7.20&quot; debug=&quot;1&quot;>
<Connector className=&quot;org.apache.ajp.tomcat4.Ajp13Connector&quot;
port=&quot;5007&quot; acceptCount=&quot;10&quot; debug=&quot;0&quot;/>


It should be jvmRoute!!! and must be unique across ALL tomcats in the cluster ..... see information at above link.

I hope its just that??

Good Luck,
Laurie.
 
Hi Laurie , unfortunetly U are not copletely right )))

If U check tomcat-users forum &quot;
, searching for &quot;Yefym&quot; - U will get detailes )))

The summary is that JvmRoute was fixed ))) , so I got worker added to the sessionID. But the same session still distributed to the several hosts.

Any idea?


thnx for your help.
 
Correction I was right! You did have a typo and there is nothing here in this forum posting to say you had resolved it, unfortunately I don’t have time to subscribe to other forums so I would have not seen your postings else ware.

I have not seen your httpd.conf so can I assume that you have the correct configuration for load balance?

My example: ......

# mod_jk directives
LoadModule dir_module modules/mod_dir.so
LoadModule jk_module modules/mod_jk.so
AddModule mod_jk.c
#
# Configure mod_jk
#
JkWorkersFile conf/workers.properties
JKLogFile logs/mod_jk.log
JkLogLevel info
#JkLogLevel debug
JkMount / loadbalancer
JkMount /* loadbalancer


If so then I can only repeat that you should study the information and if your configuration is absolutely correct and you still cannot resolve your problem, then you should contact the apache developers directly?

Sorry but again hope this helps.
Laurie.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top