So let me get this straight. You are saying that I should only have 2-4 hosts in a cluster? or are saying that I should only have 2-4 physical boxes in a cluster?
I have over 10 different host and was thinking that each one needed to be in its own cluster(is that the right way of thinking about it). Which lives on 2 tomcat boxes running and will be adding more in the long run. Thanks Daniel Schulken ----- Original Message ----- From: "Aadi Deshpande" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, March 09, 2004 11:41 AM Subject: Re: clustering question? > Hi, > > You're changing the wrong port. > You should not change the mcastPort, instead you should change the > tcpListenPort > > The mcastPort and mcastAddr should be the same for every instance > participating in the cluster. > > Also, as a word of advice, it's best to keep the cluster size down to > 2-3 ( and at most 4 ). we've had a lot of trouble with larger cluster > sizes, not because of any fault of the cluster manager, just that it's a > huge (network/memory ) resource hog having all your sessions replicated > six times over. Of course, this is only for our case so YMMV. > > hth, > -a > > [EMAIL PROTECTED] wrote: > > >I am getting the following info in my log file. > > > >Mar 8, 2004 12:45:10 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster > >start > >INFO: Cluster is about to start > >Mar 8, 2004 12:45:10 PM > >org.apache.catalina.cluster.tcp.ReplicationListener run > >SEVERE: Unable to start cluster listener. > >java.net.SocketException: Address already in use > >at sun.nio.ch.Net.bind(Native Method) > >at > >sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:108 > >) > >at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) > >at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52) > >at > >org.apache.catalina.cluster.tcp.ReplicationListener.listen(ReplicationLi > >stener.java:148) > >at > >org.apache.catalina.cluster.tcp.ReplicationListener.run(ReplicationListe > >ner.java:129) > >at java.lang.Thread.run(Thread.java:534) > >Mar 8, 2004 12:45:10 PM org.apache.catalina.cluster.mcast.McastService > >start > >INFO: Sleeping for 2000 secs to establish cluster membership > >2004-03-08 12:45:13,151 [main] DEBUG (ManagerBase.java:671) - > >Registering Tomcat-Standalone:type=Manager,path=/,host=etrak-plus.com > >2004-03-08 12:45:13,156 [main] DEBUG (StandardManager.java:697) - Force > >random number initialization starting > >2004-03-08 12:45:13,157 [main] DEBUG (ManagerBase.java:555) - Opening > >/dev/urandom > >2004-03-08 12:45:13,158 [main] DEBUG (ManagerBase.java:366) - Getting > >message digest component for algorithm MD5 > >2004-03-08 12:45:13,158 [main] DEBUG (ManagerBase.java:380) - Completed > >getting message digest component > >2004-03-08 12:45:13,159 [main] DEBUG (ManagerBase.java:383) - > >getDigest() 1 > >2004-03-08 12:45:13,160 [main] DEBUG (StandardManager.java:700) - Force > >random number initialization completed > >2004-03-08 12:45:13,161 [main] DEBUG (StandardManager.java:406) - Start: > >Loading persisted sessions > >2004-03-08 12:45:13,161 [main] DEBUG (StandardManager.java:416) - > >Loading persisted sessions from SESSIONS.ser > >2004-03-08 12:45:13,165 [main] DEBUG (StandardManager.java:430) - > >Creating custom object input stream for class loader > >2004-03-08 12:45:13,171 [main] DEBUG (StandardManager.java:460) - > >Loading 0 persisted sessions > >2004-03-08 12:45:13,172 [main] DEBUG (StandardManager.java:507) - > >Finish: Loading persisted sessions > > > > > >Here is the cluster info that i have in my server.xml. > > > ><Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster" > >name="etrakCluster1" > >managerClassName="org.apache.catalina.cluster.session.DeltaManager" > >expireSessionsOnShutdown="false" > >useDirtyFlag="true"> > > > ><Membership > >className="org.apache.catalina.cluster.mcast.McastService" > >mcastAddr="228.0.0.106" > >mcastPort="45100" > >mcastFrequency="500" > >mcastDropTime="3000"/> > > > ><Receiver > >className="org.apache.catalina.cluster.tcp.ReplicationListener" > >tcpListenAddress="auto" > >tcpListenPort="4001" > >tcpSelectorTimeout="100" > >tcpThreadCount="6"/> > > > ><Sender > >className="org.apache.catalina.cluster.tcp.ReplicationTransmitter" > >replicationMode="pooled"/> > > > ><Valve className="org.apache.catalina.cluster.tcp.ReplicationValve" > >filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/> > ></Cluster> > > > > > >my mcastAddr range is from 228.0.0.106 - 228.0.0.115 > > > >and the ports run from 45100-45109. > > > >Note each host has its own cluster entry and i have 10 different hosts. > > > >This is on tomcat 5.0.19 running on slackware 9.X > > > >Would i need to reboot the server to clear this up? > > > >Is this a problem with clustering or could it be a setup problem on my > >part. > > > >Thanks, > > > >Daniel Schulken > > > > > >--- > >Outgoing mail is certified Virus Free. > >Checked by AVG anti-virus system (http://www.grisoft.com). > >Version: 6.0.598 / Virus Database: 380 - Release Date: 2/28/2004 > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.598 / Virus Database: 380 - Release Date: 2/28/2004 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
