-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Orhan,

On 12/3/12 8:10 AM, Orhan Karasakal wrote:
> If it is possible, then we set. Now  we are not using this design
> :) I think, it is not possible.

I disagree: the sane parts of your request are definitely possible.


requests from /wepapp1/* -> worker2,worker3
requests from /webapp2/* - > worker1, worker4, worker5

httpd.conf
JkMount /webapp1/* lb1
JkMount /webapp2/* lb2

workers.properties (seriously abridged)
worker.lb1.balance_workers=worker2,worker3
worker.lb2.balance_workers=worker1,worker4,worker5
worker.worker1.jvmroute=tomcat1
worker.worker2.jvmroute=tomcat2
worker.worker3.jvmroute=tomcat3
worker.worker4.jvmroute=tomcat4
worker.worker5.jvmroute=tomcat5

If you want to make a request that will definitely go to worker5, then
do this:

curl http://hostname/webapp2/server-status;jsessionid=.tomcat5

But you obviously cannot do this:

curl http://hostname/webapp1/server-status;jsessionid=.tomcat5

...because tomcat5/worker5 isn't in the lb pool for /webapp1.

- -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/

iEYEARECAAYFAlC8wzsACgkQ9CaO5/Lv0PCfLgCcCEkR68W5SuLLb5wdT+JrbW+l
aFcAnicJMYY0t7j77H20QIrZhdSIOoXg
=P5gU
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to