You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tore Halset <ha...@pvv.ntnu.no> on 2004/09/09 14:19:30 UTC

tomcat as AJP frontend to other tomcats?

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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: tomcat as AJP frontend to other tomcats?

Posted by QM <qm...@brandxdev.net>.
On Thu, Sep 09, 2004 at 03:41:03PM +0200, Tore Halset wrote:
: Will the balancer webapp proxy or just redirect? We want to hide 
: multiple servers behind one frontend. The clients use https.

The Balancer docs will reveal the answers to this and other questions.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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


Re: tomcat as AJP frontend to other tomcats?

Posted by Tore Halset <ha...@pvv.ntnu.no>.
On Sep 9, 2004, at 15:24, QM wrote:

> On Thu, Sep 09, 2004 at 02:19:30PM +0200, Tore Halset wrote:
> : 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?
>
> I've never used it, but I understand the Tomcat "Balancer" webapp does
> this and more.

Will the balancer webapp proxy or just redirect? We want to hide 
multiple servers behind one frontend. The clients use https.

  - Tore.


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


Re: tomcat as AJP frontend to other tomcats?

Posted by QM <qm...@brandxdev.net>.
On Thu, Sep 09, 2004 at 02:19:30PM +0200, Tore Halset wrote:
: 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?

All 3 would work, but if you look around enough you're bound to find
precompiled Apache binaries for Windows.


: 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?

I've never used it, but I understand the Tomcat "Balancer" webapp does
this and more.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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


Re: tomcat as AJP frontend to other tomcats?

Posted by Matt Robinson <ma...@yahoo.com>.
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 <ha...@pvv.ntnu.no> 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:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 
> 



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

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