DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=34426>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=34426 Summary: Load balancing in Tomcat Product: Tomcat 5 Version: 5.0.28 Platform: PC OS/Version: Linux Status: NEW Severity: critical Priority: P2 Component: Connector:AJP AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Hello, I have installed Apache 2.0.53 & Tomcat 5.0.28 with mod_jk 1.2.10 AJP connector on Red Hat AS 2.1 on machine A and another Tomcat 5.0.28 instance on Machine B. And we have configured loadbalancing worker at apache level, BUT some time what we have seen in Load Testing for 250 concurrentusers, load was distributed on both machine A and B and some time all the request were moving on machine A only and there were no performance gain. here I have attached used mod_jk.properties and workers.properties configuration , please suggest me what can be the best configuration for such scenario. mod_jk.properties ================= LoadModule jk_module modules/mod_jk.so <IfModule mod_jk.c> JkWorkersFile conf/workers.properties JkLogFile "/ora_9ias/ias/Apache-Tomcat/logs/mod_jk.log" JkLogLevel emerg # JkLogLevel error # JkLogLevel info JkMount /stonline/productcatalog/servlet/* loadbalancer JkMount /stonline/productcatalog/* loadbalancer JkMount /stonline/productcatalog/*.jsp loadbalancer # Deny direct access to WEB-INF and META-INF # <Location "/stonline/productcatalog/WEB-INF/*"> AllowOverride None deny from all </Location> <Location "/stonline/productcatalog/META-INF/*"> AllowOverride None deny from all </Location> </IfModule> workers.properties ================== # # workers.properties # # # In Unix, we use forward slashes: # ps=/ # # list the workers by name # worker.list=stpcqc,stpcias,loadbalancer # ------------------------ # First tomcat server # ------------------------ worker.stpcqc.port=10011 worker.stpcqc.host=machineA worker.stpcqc.type=ajp13 # Specify the size of the open connection cache. worker.stpcqc.cachesize=10 worker.stpcqc.cache_timeout=100 # # Specifies the load balance factor when used with # a load balancing worker. # Note: # ----> lbfactor must be > 0 # ----> Low lbfactor means less work done by the worker. worker.stpcqc.lbfactor=50 # ------------------------ # Second tomcat server # ------------------------ worker.stpcias.port=10022 worker.stpcias.host=machineB worker.stpcias.type=ajp13 # Specify the size of the open connection cache. worker.stpcias.cachesize=10 worker.stpcias.cache_timeout=100 # # Specifies the load balance factor when used with # a load balancing worker. # Note: # ----> lbfactor must be > 0 # ----> Low lbfactor means less work done by the worker. worker.stpcias.lbfactor=50 # ------------------------ # Load Balancer worker # ------------------------ # # The loadbalancer (type lb) worker performs weighted round-robin # load balancing with sticky sessions. # Note: # ----> If a worker dies, the load balancer will check its state # once in a while. Until then all work is redirected to peer # worker. worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=stpcqc,stpcias worker.loadbalancer.method=Request # # END workers.properties # Thanks & Regards, -Praveen Soni -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]