Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 10369 invoked from network); 7 May 2008 21:13:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 May 2008 21:13:46 -0000 Received: (qmail 6038 invoked by uid 500); 7 May 2008 21:13:33 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 6016 invoked by uid 500); 7 May 2008 21:13:33 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 6005 invoked by uid 99); 7 May 2008 21:13:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 May 2008 14:13:33 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [204.50.32.161] (HELO AS2.agrium.com) (204.50.32.161) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 May 2008 21:12:40 +0000 Received: from AGREF.agrium.com (unverified [172.26.36.9]) by AS2.agrium.com (Vircom SMTPRS 4.35.480.0) with ESMTP id for ; Wed, 7 May 2008 15:12:46 -0600 X-Modus-BlackList: 172.26.36.9=OK;LFabbric@agrium.com=OK X-Modus-Trusted: 172.26.36.9=YES Received: from OUT-MTA by AGREF.agrium.com with Novell_GroupWise; Wed, 07 May 2008 15:12:45 -0600 Message-Id: <4821C6DA020000AC00020931@AGREF.agrium.com> X-Mailer: Novell GroupWise Internet Agent 7.0.2 HP Date: Wed, 07 May 2008 15:12:26 -0600 From: "Landon Fabbricino" To: "Tomcat Users List" Subject: Re: TOMCAT CLUSTERING HOWTO References: <481581F1.3070303@xius-bcgi.com> <4816B373.7040505@xius-bcgi.com> <481703E4020000AC0001FA6B@AGREF.agrium.com> <48181E1A.4050903@xius-bcgi.com> <48187C8E.7030707@xius-bcgi.com> <4818413A020000AC0001FC8E@AGREF.agrium.com> <48194DCF.6090508@xius-bcgi.com> <4819DEBC020000AC0001FF65@AGREF.agrium.com> <481F147A.7010600@xius-bcgi.com> <48206345.5050807@xius-bcgi.com> In-Reply-To: <48206345.5050807@xius-bcgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Helly Karthikn, I am confused as to where you are having problems? =20 I am not sure what you mean by "How to test TOMCAT CLUSTERING with out = Load balancer"? What exactly are you trying to do with your two tomcat machines? Landon Fabbricino IT Applications Phone: 403.225.7515 Fax: 403.225.7604 lfabbric@agrium.com >>> karthikn 5/6/2008 7:55:17 AM >>> Hi How to test TOMCAT CLUSTERING with out Load balancer As Per the Tomcat 5.5.23 Cluster HowTo Documents I have only tried to Cluster 2 TOMCATS on SAME Machine , Sharing same JVM. but not able to SAMPLE TEST the clustering Am i on doing some thing wrong in here.....? Please Some body suggest me ..... :( with regards Karthik karthikn wrote: > Hi > > How to test TOMCAT CLUSTERING with out Load balancer > > As Per the Tomcat 5.5.23 Cluster HowTo Documents > > I have only tried to Cluster 2 TOMCATS on SAME Machine , Sharing same = JVM. > > but not able to test the clustering > > > Am i on doing some thing wrong in here.....? > > > > > with regards > Karthik > > > > > > > > > > Landon Fabbricino wrote: > =20 >> I honestly have not tried clustering tomcat without Apache before. >> >> Just recently I set up a server farm with apache on one server and = tomcat on two other servers (so 3 physical machines) >> >> Apache contains the "logic" to handle the load balancing between the = two tomcats: >> >> jk.conf >> JkWorkersFile conf/workers.properties >> JkLogFile logs/jk_conn.log >> JkLogLevel error >> >> JkMount /loadbalance-test* loadbalancer >> >> workers.properties >> ### Load Balancer Instances ################################= #### >> worker.tomcat1.type=3Dajp13 >> worker.tomcat1.host=3Dserver1.domain.com >> worker.tomcat1.port=3D8009 #AJP Port >> worker.tomcat1.lbfactor=3D1 >> >> worker.tomcat4.type=3Dajp13 >> worker.tomcat4.host=3Dserver2.domain.com >> worker.tomcat4.port=3D8010 #AJP Port >> worker.tomcat4.lbfactor=3D1 >> >> >> ### Define Mount Points ################################= #### >> >> # Load Balance ##################### >> worker.loadbalancer.type=3Dlb >> worker.loadbalancer.balance_workers=3Dtomcat1,tomcat2 >> worker.loadbalancer.sticky_session=3DFalse >> worker.loadbalancer.method=3DB >> >> ### Load Mount Points ################################= #### >> worker.list=3Dloadbalancer >> >> >> >> >> >> >> =20 >>>>> karthikn 4/30/2008 10:57:51 PM = >>> >>>>> >>>>> =20 >> Hi >> >> As Per the Tomcat 5.5.23 Cluster HowTo Documents >> >> I have only tried to Cluster 2 TOMCATS on SAME Machine , Sharing same = JVM. >> >> >> Could you provide your apache's worker.properties file? >> >> I have so far not used any APACHE Http Server for Load Balancing >> >> >> >> >> with regards >> Karthik >> >> >> >> >> >> Landon Fabbricino wrote: >> >> =20 >>> Could you provide your apache's worker.properties file? >>> >>> >>> >>> >>> =20 >>>>>> karthikn 4/30/2008 8:05:02 AM = >>> >>>>>> >>>>>> >>>>>> =20 >>> Hi >>> >>> Any more suggestions ? >>> >>> >>> with regards >>> Karthik >>> >>> karthikn wrote: >>> >>> >>> =20 >>>> Hi >>>> >>>> >> >>>> >>>> I have already added the same in my application's web.xml, >>>> but still no improvement. >>>> >>>> >>>> >>>> >>>> with regards >>>> Karthik >>>> >>>> >>>> >>>> Landon Fabbricino wrote: >>>> >>>> >>>> >>>> =20 >>>>> If I am not mistaken, you will need to add the following tag to your = web.xml >>>>> >>>>> CATALINA_HOME/webapps/your_app_name/WEB-INF/web.xml >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Landon Fabbricino >>>>> IT Applications >>>>> >>>>> Phone: 403.225.7515 >>>>> Fax: 403.225.7604 >>>>> lfabbric@agrium.com=20 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> =20 >>>>>>>> karthikn 4/28/2008 11:34:43 PM = >>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> =20 >>>>> Hi >>>>> >>>>> The Following was done for the Clustering (2 tomcats ) >>>>> >>>>> Values TOMCAT5523_I TOMCAT5523_II >>>>> >>>>> >>>>> >>>>> Startup 8081 8082 >>>>> ShutDown 8007 8008 >>>>> >>>>> >>>>> >>>>> APJ 8009 8010 >>>>> TCP Listener 4001 4002 >>>>> tcpListenAddress auto auto >>>>> jvmRoute node01 node02 >>>>> >>>>> >>>>> >>>>> Delpoyment of a war file on TOMCAT5523_I displays in console as >>>>> >>>>> >> INFO: Starting clustering manager at /DATAGRID >>>>> Apr 29, 2008 10:17:59 AM >>>>> org.apache.catalina.cluster.session.DeltaManager getAll >>>>> ClusterSessions >>>>> WARNING: Manager [/DATAGRID], requesting session state from >>>>> org.apache.catalina. >>>>> cluster.mcast.McastMember[tcp://10.10.16.63:4002,catalina,10.10.16.63= ,4002, >>>>> aliv >>>>> e=3D17593]. This operation will timeout if no session state has been >>>>> received with >>>>> in 60 seconds. >>>>> Apr 29, 2008 10:18:59 AM >>>>> org.apache.catalina.cluster.session.DeltaManager waitFo >>>>> rSendAllSessions >>>>> SEVERE: Manager [/DATAGRID]: No session state send at 4/29/08 10:17 = AM >>>>> received, >>>>> timing out after 60,109 ms. >>>>> >>>>> >>>>> TOMCAT5523_II displays on console as >>>>> >>>>> >>INFO: Replication member >>>>> added:org.apache.catalina.cluster.mcast.McastMember[tcp >>>>> ://10.10.16.63:4001,catalina,10.10.16.63,4001, alive=3D16] >>>>> Apr 29, 2008 10:17:59 AM >>>>> org.apache.catalina.cluster.session.ClusterSessionListe >>>>> ner messageReceived >>>>> SEVERE: Context manager doesn't exist:/DATAGRID >>>>> >>>>> >>>>> Am i missing something while clustering.... >>>>> >>>>> with regards >>>>> Karthik >>>>> >>>>> >>>>> >>>>> karthikn wrote: >>>>> >>>>> >>>>> >>>>> >>>>> =20 >>>>>> Hi >>>>>> >>>>>> I have few Questions which i was not able to get TOMCAT CLUSTERING = HOWTO >>>>>> and form. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> a) Clustering >>>>>> >>>>>> 1) Do we need to deploy the war files on each individual = Tomcat >>>>>> when joined the clustering. >>>>>> >> "deploy your apps only to one server, and the cluster will >>>>>> distribute the deployments across the entire cluster". >>>>>> >>>>>> This does not seems to work, after following the steps for = 2 >>>>>> Tomcats (or am i missing some thing in here.) >>>>>> >>>>>> 2) Is this a must do configuration >>>>>> >>>>>> >>" Make sure that all nodes have the same time and sync = with >>>>>> NTP service! " >>>>>> >>>>>> for the clusters to start functioning. >>>>>> >>>>>> >>>>>> b) Load balancing >>>>>> >>>>>> 1) Using "Using the balancer webapp" , redirects to = different >>>>>> URL's is done, >>>>>> Can we use the same to redirect to the clustered TOMCATs = to >>>>>> do the load >>>>>> balancing internally based on >>>>>> >>>>>> >>>>>> RoundRobinRule, >>>>>> RandomRedirectRule >>>>>> >>>>>> >>>>>> >>>>>> Any URL or blog (other then "cluster-howto.html") >>>>>> which explains the clustering /load balancing in simple steps = would be >>>>>> of wery much help to us. >>>>>> >>>>>> >>>>>> >>>>>> Prerequisite : TOMCAT 5.5.23 (already in production ,we cannot = change >>>>>> this version) 2 nos >>>>>> JSDK : 1.6 >>>>>> O/s : UNIX 11 >>>>>> >>>>>> >>>>>> with regards >>>>>> Karthik >>>>>> >>>>>> --------------------------------------------------------------------= - >>>>>> To start a new topic, e-mail: users@tomcat.apache.org=20 >>>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org=20 >>>>>> For additional commands, e-mail: users-help@tomcat.apache.org=20 >>>>>> >>>>>> . >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> =20 >>>>> ---------------------------------------------------------------------= >>>>> To start a new topic, e-mail: users@tomcat.apache.org=20 >>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org=20 >>>>> For additional commands, e-mail: users-help@tomcat.apache.org=20 >>>>> >>>>> >>>>> IMPORTANT NOTICE ! >>>>> This E-Mail transmission and any accompanying attachments may = contain confidential information intended only for the use of the = individual or entity named above. Any dissemination, distribution, copying = or action taken in reliance on the contents of this E-Mail by anyone other = than the intended recipient is strictly prohibited and is not intended to, = in anyway, waive privilege or confidentiality. If you have received this = E-Mail in error please immediately delete it and notify sender at the = above E-Mail address. >>>>> Agrium uses state of the art anti-virus technology on all incoming = and outgoing E-Mail. We encourage and promote the use of safe E-Mail = management practices and recommend you check this, and all other E-Mail = and attachments you receive for the presence of viruses. The sender and = Agrium accept no liability for any damage caused by a virus or otherwise = by the transmittal of this E-Mail. >>>>> >>>>> >>>>> ---------------------------------------------------------------------= >>>>> To start a new topic, e-mail: users@tomcat.apache.org=20 >>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org=20 >>>>> For additional commands, e-mail: users-help@tomcat.apache.org=20 >>>>> >>>>> . >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> =20 >>>> --------------------------------------------------------------------- >>>> To start a new topic, e-mail: users@tomcat.apache.org=20 >>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org=20 >>>> For additional commands, e-mail: users-help@tomcat.apache.org=20 >>>> >>>> . >>>> >>>> >>>> >>>> >>>> =20 >>> --------------------------------------------------------------------- >>> To start a new topic, e-mail: users@tomcat.apache.org=20 >>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org=20 >>> For additional commands, e-mail: users-help@tomcat.apache.org=20 >>> >>> >>> IMPORTANT NOTICE ! >>> This E-Mail transmission and any accompanying attachments may contain = confidential information intended only for the use of the individual or = entity named above. Any dissemination, distribution, copying or action = taken in reliance on the contents of this E-Mail by anyone other than the = intended recipient is strictly prohibited and is not intended to, in = anyway, waive privilege or confidentiality. If you have received this = E-Mail in error please immediately delete it and notify sender at the = above E-Mail address. >>> Agrium uses state of the art anti-virus technology on all incoming and = outgoing E-Mail. We encourage and promote the use of safe E-Mail management= practices and recommend you check this, and all other E-Mail and = attachments you receive for the presence of viruses. The sender and Agrium = accept no liability for any damage caused by a virus or otherwise by the = transmittal of this E-Mail. >>> >>> >>> --------------------------------------------------------------------- >>> To start a new topic, e-mail: users@tomcat.apache.org=20 >>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org=20 >>> For additional commands, e-mail: users-help@tomcat.apache.org=20 >>> >>> . >>> >>> >>> >>> =20 >> --------------------------------------------------------------------- >> To start a new topic, e-mail: users@tomcat.apache.org=20 >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org=20 >> For additional commands, e-mail: users-help@tomcat.apache.org=20 >> >> >> IMPORTANT NOTICE ! >> This E-Mail transmission and any accompanying attachments may contain = confidential information intended only for the use of the individual or = entity named above. Any dissemination, distribution, copying or action = taken in reliance on the contents of this E-Mail by anyone other than the = intended recipient is strictly prohibited and is not intended to, in = anyway, waive privilege or confidentiality. If you have received this = E-Mail in error please immediately delete it and notify sender at the = above E-Mail address. >> Agrium uses state of the art anti-virus technology on all incoming and = outgoing E-Mail. We encourage and promote the use of safe E-Mail management= practices and recommend you check this, and all other E-Mail and = attachments you receive for the presence of viruses. The sender and Agrium = accept no liability for any damage caused by a virus or otherwise by the = transmittal of this E-Mail. >> >> >> --------------------------------------------------------------------- >> To start a new topic, e-mail: users@tomcat.apache.org=20 >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org=20 >> For additional commands, e-mail: users-help@tomcat.apache.org=20 >> >> . >> >> >> =20 > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org=20 > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org=20 > For additional commands, e-mail: users-help@tomcat.apache.org=20 > > . > > =20 --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org=20 To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org=20 For additional commands, e-mail: users-help@tomcat.apache.org=20 IMPORTANT NOTICE !=20 This E-Mail transmission and any accompanying attachments may contain = confidential information intended only for the use of the individual or = entity named above. Any dissemination, distribution, copying or action = taken in reliance on the contents of this E-Mail by anyone other than the = intended recipient is strictly prohibited and is not intended to, in = anyway, waive privilege or confidentiality. If you have received this = E-Mail in error please immediately delete it and notify sender at the = above E-Mail address. =20 Agrium uses state of the art anti-virus technology on all incoming and = outgoing E-Mail. We encourage and promote the use of safe E-Mail management= practices and recommend you check this, and all other E-Mail and = attachments you receive for the presence of viruses. The sender and Agrium = accept no liability for any damage caused by a virus or otherwise by the = transmittal of this E-Mail.=20 --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org