Tore,

We have a somewhat similar configuration. By
configuring workers in your main Tomcat, you can
redirect your "client1", "client2",... "clientN"
contexts to other tomcat servers via AJP13.

The Tomcat documentation has some decent examples of
how to configure this (at least in 3.2.4 which is what
we are using).

We started out with a worker for each client but this
is not scalable as your # of clients grows. The first
problem is that when you configure a new worker you
need to restart your main Apache/Tomcat server to
recognize the new worker -- this means that your
entire system is down, at least momentarily. More
importantly, if you are directing each context to a
single instance of Tomcat (i.e. you have a separate
instance of Tomcat for each customer) this quickly
becomes an inefficient use of resources. We ended up
having over 50 workers redirecting to an equal # of
Tomcat instances spread across 10 machines; this was
not at all scalable.

We ended up redesigning our system and in the process
converted it to a shared model in which an arbitrary
number of customers share use of the same tomcat
instances. Now we are only using 4 workers to redirect
to 4 tomcat servers for 60 multi-user customers.

-Matt

--- Tore Halset <[EMAIL PROTECTED]> wrote:

> Hello!
> 
> We are using jboss+tomcat on some servers. As we are
> growing and need 
> more servers we want to introduce a frontend server.
> One solution would 
> be to use Apache httpd with mod_jk to route trafic
> to the correct 
> jboss+tomcat server.
> 
> https://www.company.com/client1 -> jboss+tomcat
> server 1 via AJP
> https://www.company.com/client2 -> jboss+tomcat
> server 1 via AJP
> https://www.company.com/client3 -> jboss+tomcat
> server 2 via AJP
> 
> This are easy to configure under Linux, but this is
> a windows company.. 
> Should we look for a precompiled Apache httpd with
> matching mod_jk and 
> mod_ssl? Or compile it myself? Or should we use IIS?
> 
> Is it possible to run tomcat on the frontend server
> and act as a Apache 
> httpd + mod_jk + mod_ssl? Are there any other
> options we should take a 
> look at?
> 
> Regards,
>   - Tore.
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



                
_______________________________
Do you Yahoo!?
Shop for Back-to-School deals on Yahoo! Shopping.
http://shopping.yahoo.com/backtoschool

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to