You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Nehal Sangoi <ne...@patni.com> on 2005/10/31 12:20:25 UTC
JkMount
How can i "JkMount" same URI twice in httpd.conf with different worker
specified?
e.g. i want to mount /example/* twice using different worker name.
JkMount /example/* worker1
JkMount /example/* worker2
But this is not working. How should i configure to achieve my motto?
Regds,
Nehal
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: JkMount
Posted by Nehal Sangoi <ne...@patni.com>.
Hi All,
I could successfully implement load-balancing in tomcat apache setup. I got
idea from the foll. case.
http://www.junlu.com/msg/189637.html
Do exactly same, what he has tried explaining........
It has worked perfectly fine for me.
Regds,
Nehal
-----Original Message-----
From: Nehal Sangoi [mailto:nehal.sangoi@patni.com]
Sent: Monday, October 31, 2005 5:49 PM
To: 'Tomcat Users List'
Subject: RE: JkMount
Hi,
I tried as follows....
My workers.properties :
workers.java_home=/usr/j2se
ps=/
worker.list=test1,test2,test3,test4
## TEST1 CONNECTOR
worker.test1.port=xxxx
worker.test1.host=xxx.xxx.xxx.xxx
worker.test1.type=ajp13
## TEST2 CONNECTOR
worker.test2.port=xxxx
worker.test2.host=xxx.xxx.xxx.xxx
worker.test2.type=ajp13
worker.test2.lbfactor=1
## TEST3 CONNECTOR
worker.test3.port=xxxx
worker.test3.host=xxx.xxx.xxx.xxx
worker.test3.type=lb
worker.test3.sticky_session=1
worker.test3.balance_workers=test2
My httpd.conf :
JkMount /example/* test1
JkMount /test/* test2
But, my test2 itself is not loading the URL nw. Also, my test3 worker is not
loadbalancing test2 worker.
Please help.....
Regds,
Nehal
-----Original Message-----
From: SUGAHARA Toshio [mailto:to_sug@yahoo.co.jp]
Sent: Monday, October 31, 2005 5:11 PM
To: Tomcat Users List
Subject: Re: JkMount
Hi Nehal,
I think you had better use Tomcat load-balancing function
when you use different worker.
See below document;
http://tomcat.apache.org/connectors-doc/howto/workers.html
Regards,
Toshio
>
> How can i "JkMount" same URI twice in httpd.conf
> with different worker
> specified?
>
> e.g. i want to mount /example/* twice using
> different worker name.
>
> JkMount /example/* worker1
> JkMount /example/* worker2
>
> But this is not working. How should i configure to
> achieve my motto?
>
>
> Regds,
> Nehal
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail:
> users-help@tomcat.apache.org
>
>
--------------------------------------
Yahoo! Mail - supported by 10million people
http://pr.mail.yahoo.co.jp/10m/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: JkMount
Posted by Nehal Sangoi <ne...@patni.com>.
Hi
workers.java_home=/usr/j2se
ps=/
worker.list=test1,test2
## TEST1 CONNECTOR
worker.test1.port=xxxx
worker.test1.host=xxx.xxx.xxx.xxx
worker.test1.type=ajp13
worker.test1.lbfactor=1
## TEST2 CONNECTOR
worker.test2.port=xxxx
worker.test2.host=xxx.xxx.xxx.xxx
worker.test2.type=ajp13
worker.test2.lbfactor=1
## TEST3 CONNECTOR
worker.test3.type=lb
worker.test3.sticky_session=1
worker.test3.balance_workers=test2
My httpd.conf :
JkMount /example/* test1
JkMount /test/* test2
Apart from above configuration, i have jvmRoute of server.xml set to :
for test1 == test1
for test2 == test2
Also, i have example.war copied into the webapps of test2 tomcat instance to
loadbalance test1 url.
Still, nothing doing? Wht other configuration is left now? Or i need to
discard anything?
Please Help --- This has taken up almost more than week now........
-----Original Message-----
From: SUGAHARA Toshio [mailto:to_sug@yahoo.co.jp]
Sent: Monday, October 31, 2005 8:28 PM
To: Tomcat Users List
Subject: RE: JkMount
Hi Nehal,
See the following comment;
Regards,
Toshio
> Hi,
>
> I tried as follows....
>
> My workers.properties :
>
> workers.java_home=/usr/j2se
> ps=/
> worker.list=test1,test2,test3,test4
The workers that are member of load balancer must not
appear in the worker.list directive.
http://tomcat.apache.org/connectors-doc/howto/loadbalancers.html
> ## TEST1 CONNECTOR
> worker.test1.port=xxxx
> worker.test1.host=xxx.xxx.xxx.xxx
> worker.test1.type=ajp13
> ## TEST2 CONNECTOR
> worker.test2.port=xxxx
> worker.test2.host=xxx.xxx.xxx.xxx
> worker.test2.type=ajp13
> worker.test2.lbfactor=1
> ## TEST3 CONNECTOR
> worker.test3.port=xxxx
> worker.test3.host=xxx.xxx.xxx.xxx
You should remove the two lines above.
> worker.test3.type=lb
> worker.test3.sticky_session=1
> worker.test3.balance_workers=test2
>
> My httpd.conf :
>
> JkMount /example/* test1
> JkMount /test/* test2
>
> But, my test2 itself is not loading the URL nw.
> Also, my test3 worker is not
> loadbalancing test2 worker.
>
> Please help.....
>
>
> Regds,
> Nehal
>
> -----Original Message-----
> From: SUGAHARA Toshio [mailto:to_sug@yahoo.co.jp]
> Sent: Monday, October 31, 2005 5:11 PM
> To: Tomcat Users List
> Subject: Re: JkMount
>
>
> Hi Nehal,
>
> I think you had better use Tomcat load-balancing
> function
> when you use different worker.
>
> See below document;
>
http://tomcat.apache.org/connectors-doc/howto/workers.html
>
> Regards,
>
> Toshio
>
> >
> > How can i "JkMount" same URI twice in httpd.conf
> > with different worker
> > specified?
> >
> > e.g. i want to mount /example/* twice using
> > different worker name.
> >
> > JkMount /example/* worker1
> > JkMount /example/* worker2
> >
> > But this is not working. How should i configure to
> > achieve my motto?
> >
> >
> > Regds,
> > Nehal
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail:
> > users-help@tomcat.apache.org
> >
> >
>
> --------------------------------------
> Yahoo! Mail - supported by 10million people
> http://pr.mail.yahoo.co.jp/10m/
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail:
> users-help@tomcat.apache.org
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail:
> users-help@tomcat.apache.org
>
>
--------------------------------------
Yahoo! Mail - supported by 10million people
http://pr.mail.yahoo.co.jp/10m/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: JkMount
Posted by SUGAHARA Toshio <to...@yahoo.co.jp>.
Hi Nehal,
See the following comment;
Regards,
Toshio
> Hi,
>
> I tried as follows....
>
> My workers.properties :
>
> workers.java_home=/usr/j2se
> ps=/
> worker.list=test1,test2,test3,test4
The workers that are member of load balancer must not
appear in the worker.list directive.
http://tomcat.apache.org/connectors-doc/howto/loadbalancers.html
> ## TEST1 CONNECTOR
> worker.test1.port=xxxx
> worker.test1.host=xxx.xxx.xxx.xxx
> worker.test1.type=ajp13
> ## TEST2 CONNECTOR
> worker.test2.port=xxxx
> worker.test2.host=xxx.xxx.xxx.xxx
> worker.test2.type=ajp13
> worker.test2.lbfactor=1
> ## TEST3 CONNECTOR
> worker.test3.port=xxxx
> worker.test3.host=xxx.xxx.xxx.xxx
You should remove the two lines above.
> worker.test3.type=lb
> worker.test3.sticky_session=1
> worker.test3.balance_workers=test2
>
> My httpd.conf :
>
> JkMount /example/* test1
> JkMount /test/* test2
>
> But, my test2 itself is not loading the URL nw.
> Also, my test3 worker is not
> loadbalancing test2 worker.
>
> Please help.....
>
>
> Regds,
> Nehal
>
> -----Original Message-----
> From: SUGAHARA Toshio [mailto:to_sug@yahoo.co.jp]
> Sent: Monday, October 31, 2005 5:11 PM
> To: Tomcat Users List
> Subject: Re: JkMount
>
>
> Hi Nehal,
>
> I think you had better use Tomcat load-balancing
> function
> when you use different worker.
>
> See below document;
>
http://tomcat.apache.org/connectors-doc/howto/workers.html
>
> Regards,
>
> Toshio
>
> >
> > How can i "JkMount" same URI twice in httpd.conf
> > with different worker
> > specified?
> >
> > e.g. i want to mount /example/* twice using
> > different worker name.
> >
> > JkMount /example/* worker1
> > JkMount /example/* worker2
> >
> > But this is not working. How should i configure to
> > achieve my motto?
> >
> >
> > Regds,
> > Nehal
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail:
> > users-help@tomcat.apache.org
> >
> >
>
> --------------------------------------
> Yahoo! Mail - supported by 10million people
> http://pr.mail.yahoo.co.jp/10m/
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail:
> users-help@tomcat.apache.org
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail:
> users-help@tomcat.apache.org
>
>
--------------------------------------
Yahoo! Mail - supported by 10million people
http://pr.mail.yahoo.co.jp/10m/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: JkMount
Posted by Nehal Sangoi <ne...@patni.com>.
Hi,
I tried as follows....
My workers.properties :
workers.java_home=/usr/j2se
ps=/
worker.list=test1,test2,test3,test4
## TEST1 CONNECTOR
worker.test1.port=xxxx
worker.test1.host=xxx.xxx.xxx.xxx
worker.test1.type=ajp13
## TEST2 CONNECTOR
worker.test2.port=xxxx
worker.test2.host=xxx.xxx.xxx.xxx
worker.test2.type=ajp13
worker.test2.lbfactor=1
## TEST3 CONNECTOR
worker.test3.port=xxxx
worker.test3.host=xxx.xxx.xxx.xxx
worker.test3.type=lb
worker.test3.sticky_session=1
worker.test3.balance_workers=test2
My httpd.conf :
JkMount /example/* test1
JkMount /test/* test2
But, my test2 itself is not loading the URL nw. Also, my test3 worker is not
loadbalancing test2 worker.
Please help.....
Regds,
Nehal
-----Original Message-----
From: SUGAHARA Toshio [mailto:to_sug@yahoo.co.jp]
Sent: Monday, October 31, 2005 5:11 PM
To: Tomcat Users List
Subject: Re: JkMount
Hi Nehal,
I think you had better use Tomcat load-balancing function
when you use different worker.
See below document;
http://tomcat.apache.org/connectors-doc/howto/workers.html
Regards,
Toshio
>
> How can i "JkMount" same URI twice in httpd.conf
> with different worker
> specified?
>
> e.g. i want to mount /example/* twice using
> different worker name.
>
> JkMount /example/* worker1
> JkMount /example/* worker2
>
> But this is not working. How should i configure to
> achieve my motto?
>
>
> Regds,
> Nehal
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail:
> users-help@tomcat.apache.org
>
>
--------------------------------------
Yahoo! Mail - supported by 10million people
http://pr.mail.yahoo.co.jp/10m/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: JkMount
Posted by SUGAHARA Toshio <to...@yahoo.co.jp>.
Hi Nehal,
I think you had better use Tomcat load-balancing function
when you use different worker.
See below document;
http://tomcat.apache.org/connectors-doc/howto/workers.html
Regards,
Toshio
>
> How can i "JkMount" same URI twice in httpd.conf
> with different worker
> specified?
>
> e.g. i want to mount /example/* twice using
> different worker name.
>
> JkMount /example/* worker1
> JkMount /example/* worker2
>
> But this is not working. How should i configure to
> achieve my motto?
>
>
> Regds,
> Nehal
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail:
> users-help@tomcat.apache.org
>
>
--------------------------------------
Yahoo! Mail - supported by 10million people
http://pr.mail.yahoo.co.jp/10m/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org