This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi Guys This seems unusal. Also please excuse me for starting a new thread. (I have searched throughly in past discussions and nobody has answered this question satisfactorily) I'm try to use Apache Http server 2.0 as loadbalancer for 2 instances of Tomcat 5.0. Now somehow all the requests appear to go to only 1 instance of TomCat 5.0(port 12009 my guess its overriding 11009) when I specify a common webapp location (I mean webapp1) to both the instances...However when i specify 2 different locations it works with tomcat1(11009) handling all webapp1 reuests while tomcat2(12009) handling all webapp2 requests. My httpd.conf in apache 2.0 looks like this: LoadModule jk2_module modules/mod_jk2.dll <Location "/webapp1"> JkUriSet worker ajp13:localhost:11009 </Location> <Location "/webapp2"> JkUriSet worker ajp13:localhost:12009 </Location>
My worker2.properties in apache 2.0 looks like this: worker.list= ajp13:localhost:11009, ajp13:localhost:12009 #socket channel [channel.socket:localhost:11009] port=11009 host=127.0.0.1 #worker for the connector [ajp13:localhost:11009] channel=channel.socket:localhost:11009 worker.ajp13:localhost:11009.lbfactor=1 #socket channel [channel.socket:localhost:12009] port=12009 host=127.0.0.1 #worker for the connector [ajp13:localhost:12009] channel=channel.socket:localhost:12009 worker.ajp13:localhost:12009.lbfactor=1
Now my questions are: 1> What changes do I need to make either in httpd.conf or worker2.properties to enable load-balancing? 2> Since it works for 2 different web applications I'm sure there's a minor syntactical error in either of 2 configurations 3> could any of you help me with this... Please I'm really frustrated trying to fix this... 4> Also my error.log file looks like this: How to fix the error... error.log: [Sat Apr 10 02:57:51 2004] [notice] Parent: Created child process 3584 [Sat Apr 10 02:57:52 2004] [notice] Child 3584: Child process is running [Sat Apr 10 02:57:52 2004] [error] mod_jk child init 1 0 [Sat Apr 10 02:57:52 2004] [notice] Child 3584: Acquired the start mutex. [Sat Apr 10 02:57:52 2004] [notice] Child 3584: Starting 250 worker threads. Thanks in advance Ravi [ April 10, 2004: Message edited by: Ravi Shankar Sathish ]