Aren't you missing the mcastBindAddr property? We're just going
through the test setup for clustering with 5.5.15 and it's working
pretty well, here's a snippet from our config:
<Engine name="Aconex" defaultHost="192.168.0.219"
jvmRoute="worker2">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase" />
<Host name="192.168.0.219" appBase="foo" >
<Context path="/" docBase="${catalina.home}/app/mel/"
distributable="true" >
</Context>
<Cluster clusterName="ClusterTest"
className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
service.mcastBindAddr="192.168.0.219"
receiver.tcpListenAddress="192.168.0.219"
tcpThreadCount="2">
</Cluster>
</Host>
</Engine>
the mcastBindAddr and tcListenAddress needs to be different for each
node in the cluster.
Also note that I would very much recommend using the latest modJK
1.2.15, this together with tomcat 5.5.15 is looking pretty good.
cheers,
Paul
On 12/01/2006, at 11:17 AM, bradley mclain wrote:
I am unable to get a 2 node cluster to work. I am using 5.5.15, as I
saw in an email that prior versions are broken.
when i start node A i see the following written to the log:
1064 INFO [main] - Manager [localhost/cluster]: skipping state
transfer. No members active in cluster group.
I expect that. when i start node B (after A is started) I see the
same
snippet:
1219 INFO [main] - Manager [localhost/cluster]: skipping state
transfer. No members active in cluster group.
I do not expect that.
Obviously the two nodes are not finding each other. I have pinged
228.0.0.4 from those servers, as well as 228.0.0.1, and receive
responses from each of the servers, so I _believe_ Multicast is
operating properly, though I am not a network guy.
I am using the server.xml obtained from the documentation (attached
below), and I have carefully followed all instructions in the
clustering
documentation, though perhaps not carefully enough ;-).
My servers are not multi-homed, thus I have tried both with and
without
the mcastBindAddress attribute, but it makes no difference.
Can anyone suggest what I may be missing here?
cheers,
Bradley McLain
<Server port="8011" shutdown="SHUTDOWN" >
<GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and
saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<Service name="Catalina">
<Connector port="80" maxThreads="100"
minSpareThreads="4"
maxSpareThreads="4" />
<Engine name="Catalina" defaultHost="localhost"
jvmRoute="node01" >
<Realm
className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase" />
<Cluster
className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
doClusterLog="true"
clusterLogName="clusterlog"
manager.className="org.apache.catalina.cluster.session.DeltaManager"
manager.expireSessionsOnShutdown="false"
manager.notifyListenersOnReplication="false"
manager.notifySessionListenersOnReplication="false"
manager.sendAllSessions="false"
manager.sendAllSessionsSize="500"
manager.sendAllSessionsWaitTime="20">
<Membership
className="org.apache.catalina.cluster.mcast.McastService"
mcastAddr="228.0.0.4"
mcastClusterDomain="d10"
mcastPort="45564"
mcastFrequency="1000"
mcastDropTime="30000"/>
<Receiver
className="org.apache.catalina.cluster.tcp.ReplicationListener"
tcpListenAddress="auto"
tcpListenPort="9015"
tcpSelectorTimeout="100"
tcpThreadCount="6" />
<Sender
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
replicationMode="fastasyncqueue"
doTransmitterProcessingStats="true"
doProcessingStats="true"
doWaitAckStats="true"
queueTimeWait="true"
queueDoStats="true"
queueCheckLock="true"
ackTimeout="15000"
waitForAck="true"
keepAliveTimeout="80000"
keepAliveMaxRequestCount="-1"/>
<Valve
className="org.apache.catalina.cluster.tcp.ReplicationValve"
filter=".*\.gif;.*
\.js;.*\.css;.*\.png;.*\.jpeg;.*\.jpg;.*\.html;.*\.txt;"
primaryIndicator="true" />
<Valve
className="org.apache.catalina.cluster.session.JvmRouteBinderValve"
enabled="true" />
<ClusterListener
className="org.apache.catalina.cluster.session.ClusterSessionListener"
/>
<ClusterListener
className="org.apache.catalina.cluster.session.JvmRouteSessionIDBinder
Listener" />
<!--
<Deployer
className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
tempDir="${catalina.base}/war-temp"
deployDir="${catalina.base}/war-deploy/"
watchDir="${catalina.base}/war-listen/"
watchEnabled="true"/>
-->
</Cluster>
<Host name="localhost"
appBase="webapps"/>
</Engine>
</Service>
</Server>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]