Il 18/11/2011 16:09, Christopher Schultz ha scritto:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
a. on node01, jvmroute="istance01_node01" and "instance02_node01"
for instance01 and istance02, respectively; b. on node01,
jvmroute="istance01_node02" and "instance02_node02" for instance01
and istance02, respectively.
I see a lot of typos "istance" instead of "instance". Are you sure you
have everything spelled correctly in your configuration?
Yes, "instances" reported here were just for an example. "istance" were
a missplelled...
So my Apache configuration for stickysession is as follow:
----- ProxyPass /myApp/ balancer://balance-this/myApp/
<Proxy balancer://balance-this> BalancerMember ajp://node01:10505
route=instance01_node01 BalancerMember ajp://node01:10505
route=instance02_node01 BalancerMember ajp://node02:10505
route=instance01_node02 BalancerMember ajp://node02:10505
route=instance02_node02
ProxySet stickysession=JSESSIONID nofailover=On</Proxy> -----
And this works fine!
Good.
BUT, if I have jvmroute parameter configured with the same value
for all my tomcat instance (e.g. jvmroute="myRoute") and so apache
configured as follow
[...]
it still works!!! I do not lose my session! Why??? Have to jvmroute
be unique or not???
That's probably because you are only being directed to a single Tomcat
backend. mod_proxy_ajp probably picks the first worker that matches
the jvmRoute and it doesn't care that they are all the same. If you
run a load test against the cluster, I suspect that you'll end up with
100% of the load going to a single Tomcat backend.
Exactly, I ran more load test and all end up on the first tomcat
instance....
Thanks for the reply.
Francesco.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk7GdREACgkQ9CaO5/Lv0PBALQCeO3zJLwIYGo9E9zxkCPlt52ld
QwMAn2O4DKFQqtflvsWZPoa4XnLybJsO
=7T22
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
--
------------------------------------------------------
Francesco Sordillo
CINECA - System and Technologies Department
e-mail: f.sordi...@cineca.it
phone: (0039) 051 6171 874
-------------------------------------------------
CINECA - Inter University Computing Center
via Magnanelli 6/3
Casalecchio di Reno - 40033 - (BO)
www.cineca.it
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org