As André wrote, there is a lot of documentation around.

But for a starting point, some informations:

1. You can install multiple Tomcats in a single OS by defining the uses
TCP/IP ports through the server.xml
2. To make this clear to the outside world (your users), use an Apache with
mod_jk and AJP13 protocol for load balancing.

Example configuration server.xml:
Server1:
 <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
Server2:
 <Connector port="9009" protocol="AJP/1.3" redirectPort="8443" />

Example configuration Apache:
worker.properties:
workers.tomcat_home=/usr/local/apache-tomcat-6.0.18
workers.java_home=/usr/local/jdk1.6.0_07

worker.list=lb, server1, server2,

worker.lb.type=lb
worker.lb.balance_workers=server1, server2
worker.lb.sticky_session=true
worker.lb.method=S

worker.server1.port=8009
worker.server1.host=10.0.0.1
worker.server1.type=ajp13
worker.server1.lbfactor=1

worker.server2.port=9009
worker.server2.host=10.0.02
worker.server2.type=ajp13
worker.server2.lbfactor=1

virtualhost config (eg. httpd.conf)
        JkMount /* lb
        JkMount / lb
        <Location / >
                Order Deny,Allow
                Allow from ALL
        </Location>

Please notice, this is a brain dump! No claim to completeness!!!

Mario


-- 
http://www.n0r1sk.com


On Sun, Nov 21, 2010 at 1:10 PM, André Warnier <a...@ice-sa.com> wrote:

> rujin raj wrote:
>
>> Hi,
>>
>>
>> I am having a windows 2008 ent server and tomcat 6.0.29 64 bit,JVM 1.6.0
>> 64
>> bit installed and SSL is configured in my server.
>>
>> I need to configure tomcat clustering  in same machine, because SSL
>> certificate is installed in that machine.
>>
>> Give some idea to install tomcat clustering in a server.
>>
>>  Tip #1 : http://www.catb.org/~esr/faqs/smart-questions.html
> Tip #2 : http://tomcat.apache.org/tomcat-6.0-doc/
> Tip #3 : http://wiki.apache.org/tomcat/
> Tip #4 : http://wiki.apache.org/tomcat/SupportAndTraining
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to