Installation guide
3. Creat e uriworkermap.propertie s file
The uriworkermap.properties file contains deployed application mapping configuration
information. Append the following lines to the file.
# images, css files, path /status and /web-console will provided by nodes
defined in load-balancer
/css/*=router
/images/*=router
/status=router
/web-console|/*=router
# Example of exclusion from mapping, logo.gif will not be displayed
!/web-console/images/logo.gif=*
# Requests to /app-01 and /app-02 will be routed to nodes defined in load-
balancer
/app-01|/*=router
/app-02|/*=router
# mapping for management console, nodes in cluster can be enabled or
disabled here
/jkmanager|/*=status
4. Creat e worke rs.propertie s file
The worker.properties file contains mapping definitions between worker labels and server
instances. Append the following lines to the file.
# The advanced router LB worker
worker.list=router,status
# First EAP server definition, port 8009 is standard port for AJP in EAP
#
# lbfactor defines how much the worker will be used.
# The higher the number, the more requests are served
# lbfactor is useful when one machine is more powerful
# ping_mode=A – all possible probes will be used to determine that
# connections are still working
worker.worker01.port=8009
worker.worker01.host=127.0.0.1
worker.worker01.type=ajp13
worker.worker01.ping_mode=A
worker.worker01.socket_timeout=10
worker.worker01.lbfactor=3
# Second EAP server definition
worker.worker02.port=8009
worker.worker02.host= 127.0.0.100
worker.worker02.type=ajp13
worker.worker02.ping_mode=A
worker.worker02.socket_timeout=10
worker.worker02.lbfactor=1
# Define the LB worker
worker.router.type=lb
worker.router.balance_workers=worker01,worker02
# Define the status worker for jkmanager
worker.status.type=status
Note
For an explanation of workers.properties directives, refer to Appendix A, Reference:
workers.properties.
5. Re start IIS
Restart your IIS server to implement the changes. Execute the following commands for the IIS
version you are running:
IIS 6
C:\> net stop iisadmin /Y
C:\> net start w3svc
IIS 7
C:\> net stop was /Y
C:\> net start w3svc
JBoss Enterprise Application Platform 5 HTTP Connectors Load Balancing Guide 57