You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michael Molloy <mm...@ncycles.com> on 2002/03/04 19:16:24 UTC
Loadbalancing question
Been working with the loadbalancing in 3.3a, and I've *almost* got it. The
last hurdle seems to be splitting the requests between 2 different computers.
In my workers.properties file, I've got two workers set up, one of which is
going to localhost (local) and the other (remote) to a remote machine. For
localhost, I set
worker.local.lbfactor=100
and the remote machine I set as
worker.remote.lbfactor=1
And I set the load balancing worker as follows:
worker.loadbalancer.balanced_workers=remote, local
The problem is that when I bring up multiple browsers, every single one is
sent to the remote machine (the default page on each machine is different).
If I switch the order from
remote, local
to
local, remote
every request is sent to the local machine, and none reach the remote. When I
changed the order in the balanced_workers line, I also switched the lbfactors
so that the remote machine should get the majority of requests, but it
doesn't get any.
I'm running Tomcat 3.3a on SuSE 7.2 as my localhost and Tomcat 3.3a on
Windows 2000 as my remote. Running Apache 1.3.22 on my linux box to funnel
the http requests to the tomcat load balancing worker. The mod_Jk module is
mod_jk-3.3-ap13-noeapi.so.
Any suggestions?
Thanks
--Michael
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
Re: Loadbalancing question
Posted by Pascal Forget <to...@ubeans.com>.
You might want to take a look at: http://www.ubeans.com/tomcat
Cheers,
Pascal
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
Re: Loadbalancing question--Please help if you can
Posted by Pascal Forget <to...@ubeans.com>.
Hi Michael,
I unfortunately cannot spend time helping you with Tomcat 3.3, as I
would have
to replicate your setup to try to fix the problem. What I can tell you
is that I have
successfully configured a load balanced tomcat 4.02 server and that
requests are
being sent to both tomcat servers. I have taken the time to describe in
details how
I set up the system. The web page is at http://www.ubeans.com/tomcat. I
hope that
this will be useful to you.
Regards,
Pascal Forget
Michael Molloy wrote:
>This is the 2nd load balancing question I've asked of the group in the last
>week, and I haven't received a single response. I've looked on the web & in
>the archives, but can't find an answer.
>
>Is anyone actually using the load balancing in 3.3a? I'm sure that there are
>some. My company would like to use Tomcat for a lot of future work, but I've
>got to get the load balancing working before we can commit to it 100%. If
>someone has some insight into the problem I describe below, please let me
>know. Maybe it's as simple as I'm testing incorrectly, but if that's the
>case, someone please point me in the right direction.
>
>Thanks
>--Michael
>
>On Monday 04 March 2002 12:16, you wrote:
>
>>Been working with the loadbalancing in 3.3a, and I've *almost* got it. The
>>last hurdle seems to be splitting the requests between 2 different
>>computers.
>>
>>In my workers.properties file, I've got two workers set up, one of which is
>>going to localhost (local) and the other (remote) to a remote machine. For
>>localhost, I set
>>
>>worker.local.lbfactor=100
>>
>>and the remote machine I set as
>>
>>worker.remote.lbfactor=1
>>
>>And I set the load balancing worker as follows:
>>
>>worker.loadbalancer.balanced_workers=remote, local
>>
>>The problem is that when I bring up multiple browsers, every single one is
>>sent to the remote machine (the default page on each machine is different).
>>If I switch the order from
>>
>>remote, local
>>
>>to
>>
>>local, remote
>>
>>every request is sent to the local machine, and none reach the remote. When
>>I changed the order in the balanced_workers line, I also switched the
>>lbfactors so that the remote machine should get the majority of requests,
>>but it doesn't get any.
>>
>>I'm running Tomcat 3.3a on SuSE 7.2 as my localhost and Tomcat 3.3a on
>>Windows 2000 as my remote. Running Apache 1.3.22 on my linux box to funnel
>>the http requests to the tomcat load balancing worker. The mod_Jk module is
>>mod_jk-3.3-ap13-noeapi.so.
>>
>>Any suggestions?
>>
>>Thanks
>>--Michael
>>
>
>--
>To unsubscribe: <ma...@jakarta.apache.org>
>For additional commands: <ma...@jakarta.apache.org>
>Troubles with the list: <ma...@jakarta.apache.org>
>
>
>
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
Loadbalancing question--Please help if you can
Posted by Michael Molloy <mm...@ncycles.com>.
This is the 2nd load balancing question I've asked of the group in the last
week, and I haven't received a single response. I've looked on the web & in
the archives, but can't find an answer.
Is anyone actually using the load balancing in 3.3a? I'm sure that there are
some. My company would like to use Tomcat for a lot of future work, but I've
got to get the load balancing working before we can commit to it 100%. If
someone has some insight into the problem I describe below, please let me
know. Maybe it's as simple as I'm testing incorrectly, but if that's the
case, someone please point me in the right direction.
Thanks
--Michael
On Monday 04 March 2002 12:16, you wrote:
> Been working with the loadbalancing in 3.3a, and I've *almost* got it. The
> last hurdle seems to be splitting the requests between 2 different
> computers.
>
> In my workers.properties file, I've got two workers set up, one of which is
> going to localhost (local) and the other (remote) to a remote machine. For
> localhost, I set
>
> worker.local.lbfactor=100
>
> and the remote machine I set as
>
> worker.remote.lbfactor=1
>
> And I set the load balancing worker as follows:
>
> worker.loadbalancer.balanced_workers=remote, local
>
> The problem is that when I bring up multiple browsers, every single one is
> sent to the remote machine (the default page on each machine is different).
> If I switch the order from
>
> remote, local
>
> to
>
> local, remote
>
> every request is sent to the local machine, and none reach the remote. When
> I changed the order in the balanced_workers line, I also switched the
> lbfactors so that the remote machine should get the majority of requests,
> but it doesn't get any.
>
> I'm running Tomcat 3.3a on SuSE 7.2 as my localhost and Tomcat 3.3a on
> Windows 2000 as my remote. Running Apache 1.3.22 on my linux box to funnel
> the http requests to the tomcat load balancing worker. The mod_Jk module is
> mod_jk-3.3-ap13-noeapi.so.
>
> Any suggestions?
>
> Thanks
> --Michael
>
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>