-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Felix,
On 12/3/12 6:49 AM, Felix Schumacher wrote: > Am 03.12.2012 11:59, schrieb André Warnier: >> Mladen Turk wrote: >>> On 12/3/2012 11:18, Orhan Karasakal wrote: >>>> But firstly I want to send requests to loadbalancer and then >>>> according to url, sending the other nodes. >>> Session affinity should handle that. >> >> Session affinity should ensure that once a session is started >> with one application on a particular worker, follow-up requests >> by the same browser to the same application should continue to go >> to the same tomcat worker. >> >> But it does not allow one to control to which worker the *first* >> request to a particular application will go, or does it ? > You may want to add jsessionid=.[JVMRoute] to your url. That way > mod_jk will send your request to the right worker. +1 This is how you can, for instance, send a request to a specific backend but still use your load balancer. Note that it's the JVMroute, not the worker, that gets selected. So, if you have more than one worker with the same jvmroute, I'm not sure what will happen. That's probably not a valid configuration, anwyay. The other obvious solution is to just contact the back-end server directly. Since OP is using AJP, that's not entirely straightforward. If I were doing it, I would set up a separate URL space that went to specific back-end workers. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with undefined - http://www.enigmail.net/ iEYEARECAAYFAlC8wmQACgkQ9CaO5/Lv0PDadgCgrVdtOPb2JhZapUpV1+yWh8wO RdUAnjXCFJ1xrBVw+vqoBVdR3TcbfU0m =HPX2 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org