tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shay Rojansky <r...@roji.org>
Subject Re: Setting Up AJP Workers as a Failover
Date Wed, 23 Jun 2010 13:51:23 GMT
David, you might want to take a look at
http://tomcat.apache.org/connectors-doc/generic_howto/loadbalancers.html under
"Advanced lb Worker properties". There's an example for what you want with
what Reiner was talking about (activation/redirect).

Shay

On Wed, Jun 23, 2010 at 3:48 AM, Pid <pid@pidster.com> wrote:

> On 23 Jun 2010, at 00:12, David Fisher <dfisher@jmlafferty.com> wrote:
>
> > Hi All,
> >
> > I've got myself in a situation where I need a stopgap quick fix - until
> we can respond correctly.
> >
> > I have the following workers file:
> >
> > # define the worker list
> > worker.list=LoadBalancer
> >
> > # Define the LB worker
> > worker.LoadBalancer.type=lb
> > worker.LoadBalancer.balance_workers=webprod1,webprod2
> > worker.LoadBalancer.sticky_session=1
> >
> > # configure each worker
> > worker.webprod1.type=ajp13
> > worker.webprod1.host=webprod1
> > worker.webprod1.port=8009
> > worker.webprod1.lbfactor=100
> >
> > worker.webprod2.type=ajp13
> > worker.webprod2.host=webprod2
> > worker.webprod2.port=8009
> > worker.webprod2.lbfactor=100
> >
> > If I change the last line to "worker.webprod2.lbfactor=0" will webprod2
> only be used if webprod1 is disconnected or otherwise in an error state?
> >
> > My other choice is to turn off one of the server's Tomcat instance.
> >
> > The real solution might take a day or two and that is to put back
> JSESSIONID - meanwhile I'm looking at how to fix occasional strangeness for
> users. If someone has a way to force JSESSIONID with a valve or filter that
> would be great.
>
> I can't make sense of the above.
> Put it back where and why?
>
> p
>
> >
> > Yes my jvmroutes are set.
> >
> > Regards,
> > Dave
> > ---------------------------------------------------------------------
> > 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
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message