Hi,
i think you're on the right way
> I need to define entires in the worker.properties file
> for each of these instances. That much seems obvious.
> But how? Do I define both instances as workers in the same
> worker.properties file?
Example:
__________________
# you can reference this from httpd.conf
worker.list=loadbalancer
# first worker
worker.ajp13-0.port=9000
worker.ajp13-0.host=localhost
worker.ajp13-0.type=ajp13
worker.ajp13-0.lbfactor=1
# second worker
worker.ajp13-1.port=9001
worker.ajp13-1.host=localhost
worker.ajp13-1.type=ajp13
worker.ajp13-1.lbfactor=1
# the loadbalancer
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13-0,ajp13-1
__________________
> I also need to define the load-balancer worker. Is this
> yet another instance of Tomcat
no, the loadbalancing is provided by mod_jk
> Finally I need to configure Apache to connect to the
> load-balancer
yes, following the Expample above:
__________________
LoadModule jk_module libexec/mod_jk.so
AddModule mod_jk.c
JkWorkersFile /usr/local/tomcat/conf/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevel error
Alias /yourwebapp "/usr/local/tomcat/webapps/yourwebapp"
JkMount /yourwebapp/servlets/* loadbalancer
JkMount /yourwebapp/*.jsp loadbalancer
<Directory "/usr/local/tomcat/webapps/yourwebapp">
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
<Location "/yourwebapp/WEB-INF/">
AllowOverride None
deny from all
</Location>
<Location "/yourwebapp/META-INF/">
AllowOverride None
deny from all
</Location>
__________________
Good Luck, Marc