Created
August 5, 2015 18:08
-
-
Save samarpanda/7e87f560fb644ee38674 to your computer and use it in GitHub Desktop.
Tomcat Clustering using mod_Jk load balancer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LoadModule jk_module modules/mod_jk.so | |
JkWorkersFile conf/workers.properties | |
JkLogFile logs/mod_jk.log | |
JkLogLevel emerg | |
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " | |
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories | |
JkRequestLogFormat "%w %V %T" | |
JkMount /status stat | |
JkMount /* balancer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## conf/workers.properties | |
worker.list=balancer,stat | |
worker.api01.type=ajp13 | |
worker.api01.port=8009 | |
worker.api01.host=localhost | |
worker.api02.type=ajp13 | |
worker.api02.port=8010 | |
worker.api02.host=localhost | |
worker.balancer.type=lb | |
worker.balancer.balance_workers=api01,api02 | |
worker.stat.type=status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment