Hi Jeevan, > 1. Am I missing something? Load balancing? Lot of ways to do load balancing : a. U can use balancer apps, it's bundled on tomcat sample b. U can use apache with mod_jk
So, yes, you browse to some other URL. For example, if U run the balancer apps from tomcat, U should be redirected to some URL. Clustering and load balancing is two separated different things. A request, usually goes into the load balancer first, and after that, the load balancer redirect it to the "real" tomcat, it can be within the same machine but different port, or it can be to another machine. The "Real" tomcat, it can be clustered, or stand alone. If it's clustered, then those tomcat's are sharing their "sesion state", means that if your request is handled by tomcatA and then suddenly tomcatA is dead, then the load balancer will redirect your request to tomcatB, tomcatB knows, what has been done with your request by tomcatA, and will continue to process your request. > 2. But how to configure load balancing? Google ? :D I have written my documentation with load balancing and clustering,but in Indonesian language, hehehe :D sorry On 8/3/05, Sunkersett, Jeevan (Cognizant) <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > I am experimenting with Tomcat clustering > > I easily implemented a tomcat cluster un-commenting the <cluster> > element in server.xml > > > > I now have 2 tomcat instances (on 2 physically different boxes) machineA > and machineB > > I noted they can keep track of each other and get notified the other is > down - for e.g. when I pull out the network cord. > > > > With clustering enabled I expect my request sent to say machineA > (http://machineA:8080 <http://machinea:8080/> ) to be served by the > other tomcat instance. > > > > But this does not happen. > > > > 1. Am I missing something? Load balancing? > > 2. But how to configure load balancing? > > In non-clustered environment I would browse to > http://machineA:8080 <http://machinea:8080/> or http://machineB:8080 > <http://machineb:8080/> (The machine name is specified in the url > EXPLICITLY.) > > With load balancing app should I browse to some other URL? > > > > 3. How and who will route the request? > > 4. Do I need to run my own specialized version of the load balancing app > on a third tomcat instance? > > 5. What if the third tomcat instance on which the load balancing app is > running comes down? > > > > rgds, > > G1 > > > > > > This e-mail and any files transmitted with it are for the sole use of the > intended recipient(s) and may contain confidential and privileged > information. > If you are not the intended recipient, please contact the sender by reply > e-mail and destroy all copies of the original message. > Any unauthorised review, use, disclosure, dissemination, forwarding, > printing or copying of this email or any action taken in reliance on this > e-mail is strictly > prohibited and may be unlawful. > > Visit us at http://www.cognizant.com > -- ------------------------------------------------------------------- http://www.psychotazkia.or.id
