tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: cluster deployment by context descriptors
Date Thu, 03 Dec 2009 21:11:57 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Paolo,

On 11/20/2009 5:36 AM, Paolo Santarsiero wrote:
> So I must configure vhost under apache for a specific webapp and then create
> context descriptor for specific tomcats under default host (ex. under tom1
> and tom2 and not under tom3). Or must I create vhost under specific tomcats
> too?

No, you just have to use different load-balancing configurations for
each set of webapps you want to deploy differently.

Let's say you have 2 webapps: A and B.
Let's say you have 6 app servers: 1, 2, 3, 4, 5, and 6.
Let's say you have the following deployments:

Server	Webapps
1	A
2	B
3	A
4	B
5	A, B
6       A, B

You will want to set up your workers to load balance webapp A separately
from webapp B, maybe like this:

workers.properties
- ------------------
worker.list=lbA, lbB

worker.lbA.type=lb
worker.lbA.balance_workers=server1, server3, server5, server6

worker.lbB.type=lb
worker.lbB.balance_workers=server2, server4, server5, server6

// now, configure the serverX workers in some obvious way

httpd.conf
- ----------

JkMount /webappA|/* lbA

JkMount /webappB|/* lbB

This should "protect" you from sending your requests to the wrong server.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksYKZwACgkQ9CaO5/Lv0PAptACgmd+CBgY6Ku0/X21q7TtepHTY
X24AoIEiPy6MvmJWNIUq1I/yjZ91qBSp
=73aU
-----END PGP SIGNATURE-----

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


Mime
View raw message