tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Bruno <andrew.br...@gmail.com>
Subject Apache AJP to 4 TCs
Date Tue, 07 Sep 2010 07:44:09 GMT
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?

Thanks
Andrew

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message