tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <...@pidster.com>
Subject Re: Apache AJP to 4 TCs
Date Tue, 07 Sep 2010 08:13:09 GMT
On 07/09/2010 09:01, Andrew Bruno wrote:
> Fair enough Pid, here it is:
> 
> Windows 2008 R2 64 Bit
> Java(TM) SE Runtime Environment (build 1.6.0_17-b04) / Java
> HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode)
> Tomcat 6.0.28
> Apache 2.2.15
> mod_jk-1.2.30-httpd-2.2.3.so

So the most recent version of mod_jk has some sample config files in the
distribution which, notably, use the 'template' method.

You might consider reviewing those and starting over.

Also, I'm not sure whether you can use a single number for a worker name
- but I'd consider it more sensible to use a string based, longer name
to avoid confusion when configuring the jvmRoute attribute in server.xml.


p

> On Tue, Sep 7, 2010 at 5:52 PM, Pid <pid@pidster.com> wrote:
>> On 07/09/2010 08:44, Andrew Bruno wrote:
>>> Hello,
>>>
>>> I am trying to add two extra workers, totaling 4 workers, but Apache
>>> fails to restart.
>>>
>>> This worker file works:
>>>
>>> # List the workers name
>>> worker.list=1,2,loadbalancer
>>>
>>> # ----------------
>>> # First worker
>>> # ----------------
>>> worker.1.host=206.xx.xxx.xxx
>>> worker.1.port=8019
>>> worker.1.type=ajp13
>>> worker.1.lbfactor=4
>>>
>>> # ----------------
>>> # Second worker
>>> # ----------------
>>> worker.2.host=206.xx.xxx.xxx
>>> worker.2.port=8029
>>> worker.2.type=ajp13
>>> worker.2.lbfactor=5
>>>
>>>
>>> # ----------------------
>>> # Load Balancer worker
>>> # ----------------------
>>> worker.loadbalancer.type=lb
>>> worker.loadbalancer.balance_workers=1,2,3,4
>>>
>>> BUT WHEN I change to:
>>>
>>>
>>> worker.list=1,2,3,4,loadbalancer
>>>
>>> worker.1.host=206.xx..xx.xx
>>> worker.1.port=8019
>>> worker.1.type=ajp13
>>> worker.1.lbfactor=4
>>>
>>> worker.2.host=206.xx..xx.xx
>>> worker.2.port=8029
>>> worker.2.type=ajp13
>>> worker.2.lbfactor=5
>>>
>>> worker.3.host=206.xx..xx.xx
>>> worker.3.port=8039
>>> worker.3.type=ajp13
>>> worker.3.lbfactor=1
>>>
>>> worker.4.host=206.xx.xx.xx
>>> worker.4.port=8049
>>> worker.4.type=ajp13
>>> worker.4.lbfactor=2
>>>
>>> worker.loadbalancer.type=lb
>>> worker.loadbalancer.balance_workers=1,2,3,4
>>>
>>> I get these kind of errors, and Apache fails to start
>>>
>>> [Tue Sep 07 00:36:37 2010] [18324:16360] [error] jk_lb_worker.c
>>> (1536): allocating lb sub worker record from shared memory
>>> [Tue Sep 07 00:36:37 2010] [18324:16360] [error] jk_worker.c (163):
>>> validate failed for loadbalancer
>>> [Tue Sep 07 00:36:37 2010] [18324:16360] [error] jk_worker.c (262):
>>> failed to create worker loadbalancer
>>> [Tue Sep 07 00:38:03 2010] [16864:7456] [error] jk_ajp_common.c
>>> (2929): allocating ajp worker record from shared memory
>>> [Tue Sep 07 00:38:03 2010] [16864:7456] [error] jk_worker.c (151):
>>> factory for ajp13 failed for 2
>>> [Tue Sep 07 00:38:03 2010] [16864:7456] [error] jk_lb_worker.c (1603):
>>> Failed creating worker 2
>>> [Tue Sep 07 00:38:03 2010] [16864:7456] [error] jk_lb_worker.c (1651):
>>> NULL parameters
>>> [Tue Sep 07 00:38:03 2010] [16864:7456] [error] jk_worker.c (163):
>>> validate failed for loadbalancer
>>> [Tue Sep 07 00:38:03 2010] [16864:7456] [error] jk_worker.c (262):
>>> failed to create worker loadbalancer
>>> [Tue Sep 07 00:38:39 2010] [7272:16728] [error] jk_ajp_common.c
>>> (2929): allocating ajp worker record from shared memory
>>> [Tue Sep 07 00:38:39 2010] [7272:16728] [error] jk_worker.c (151):
>>> factory for ajp13 failed for 1
>>> [Tue Sep 07 00:38:39 2010] [7272:16728] [error] jk_lb_worker.c (1603):
>>> Failed creating worker 1
>>> [Tue Sep 07 00:38:39 2010] [7272:16728] [error] jk_lb_worker.c (1651):
>>> NULL parameters
>>> [Tue Sep 07 00:38:39 2010] [7272:16728] [error] jk_worker.c (163):
>>> validate failed for loadbalancer
>>> [Tue Sep 07 00:38:39 2010] [7272:16728] [error] jk_worker.c (262):
>>> failed to create worker loadbalancer
>>>
>>> How do I allow Apache to communicate to 4 tomcats?
>>
>> Exact HTTPD, Tomcat, mod_jk versions?
>>
>>
>> p
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


Mime
View raw message