ApJServBalance set1 PC2
ApJServBalance set1 PC3
ApJServBalance set1 SPARK 4
ApJServHost PC2 ajpv11://192.168.0.52:8888
ApJServHost PC3 ajpv11://192.168.0.53:9999
ApJServHost SPARK ajpv12://192.168.0.54:7777
ApJServRoute JS2 PC2
ApJServRoute JS3 PC3
ApJServRoute sp1 SPARK
-----Original Message-----
From: Royzen, Margaret [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 3:54 PM
To: [EMAIL PROTECTED]
Subject: mod_jk load balancingHi everyone,
I am trying to configure the Apache server to balance the load between two independent Tomcat workers using ajp12 protocol.
One worker is listening on port 10101, another one on port 10102. I put in my workers.properties file:
worker.ajp12.port=10101
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
worker.ajp12.lbfactor=1worker.ajp13.port=10103
worker.ajp13.host=localhost
worker.ajp13.type=ajp12
worker.ajp13.lbfactor=1worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp12, ajp13At first I put in my apache configuration file :
JkMount /apps-jsp/servlet/* loadbalancer
JkMount /apps-jsp/*.jsp loadbalancerthinking, that this way mod_jk will process requests via loadbalancer worker, but I got "Internal Server Error"
After that, I changed it back to:JkMount /apps-jsp/servlet/* ajp12
JkMount /apps-jsp/*.jsp ajp12Servlets started working, but log files are showing no load balancing, all requests are processes via port 10101.
Does anyone know, what should I put into Apache configuration file to achieve load balancing?
Thank you very much in advance,
Margaret Royzen.