tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olve Hansen <olve.han...@intermedia.uib.no>
Subject Re: Load balancing with apache + mod_jk
Date Wed, 16 Nov 2005 08:07:01 GMT
In addition to Mladens post, you have several errors in in your
workers.properties.
You should read the docs:
http://tomcat.apache.org/connectors-doc/config/workers.html
I have spent some hours deciphering these (they have gotten much better
lately). 

ons, 16,.11.2005 kl. 09.29 +0200, skrev Mirek Kopriva:
> 
> #properties
> workers.ajp13.1.host=127.0.0.1
> workers.ajp13.1.port=8009
> workers.ajp13.2.host=xx.xx.xx.xx (other server IP)
> workers.ajp13.2.port=8009
These should be 'worker.' not 'workers.'
> 
> worker.list=loadbalancer, ajp13.1, ajp13.2

The balanced workers must not be part of worker.list
(See doc )

> 
> worker.loadbalancer.type=lb
> worker.loadbalancer.balanced_workers=ajp13.1, ajp13.2
It should read 'worker.loadbalancer.balance_workers'.


> worker.loadbalancer.sticky_session=True
> 
> # Workers
> worker.ajp13.1.port=$(workers.ajp13.1.port)
> worker.ajp13.1.host=$(workers.ajp13.1.host)

My default workers.properties also says:
# As a general note, the characters $( and ) are used internally to
define
# macros. Do not use them in your own configuration!!!

So you might change the above config as well. 

Hope this helps

Olve

Mime
View raw message