You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mike Prince <mi...@mikeprince.com> on 2007/01/13 01:33:22 UTC
Tomcat 6 Clustering with StaticMembers
I'm trying to cluster two Tomcat 6.0.7 instances across a network that
does not support multicasting. I've added the StaticMember elements
under the StaticMembershipInterceptor.
I've also opened up ports 4000 and 51077.
When I use netstat to see which ports Tomcat is listening on, it does
not show port 51077 like I would have expected.
Does someone have an idea what I configured incorrectly? I've include
the <Cluster> section from my $tomcat/conf/server.xml, which is
identical on both machines.
Thanks in advance!
- Mike
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
channelSendOptions="8">
<Manager className="org.apache.catalina.ha.session.DeltaManager"
expireSessionsOnShutdown="false"
notifyListenersOnReplication="true"/>
<Channel
className="org.apache.catalina.tribes.group.GroupChannel">
<Membership
className="org.apache.catalina.tribes.membership.McastService"
address="228.0.0.4"
port="45564"
frequency="500"
dropTime="3000"/>
<Receiver
className="org.apache.catalina.tribes.transport.nio.NioReceiver"
address="auto"
port="4000"
autoBind="100"
selectorTimeout="5000"
maxThreads="6"/>
<Sender
className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
<Transport
className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/>
</Sender>
<Interceptor
className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>
<Interceptor
className="org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor">
<Member
className="org.apache.catalina.tribes.membership.StaticMember"
port="51077"
securePort="-1"
host="10.3.1.34"
domain="staging-cluster"
uniqueId="{10,3,1,34}"/>
<Member
className="org.apache.catalina.tribes.membership.StaticMember"
port="51077"
securePort="-1"
host="10.3.1.33"
domain="staging-cluster"
uniqueId="{10,3,1,33}"/>
</Interceptor>
<Interceptor
className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/>
</Channel>
<Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
filter=""/>
<!--
<Deployer
className="org.apache.catalina.ha.deploy.FarmWarDeployer"
tempDir="/tmp/war-temp/"
deployDir="/tmp/war-deploy/"
watchDir="/tmp/war-listen/"
watchEnabled="false"/>
-->
<ClusterListener
className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>
<ClusterListener
className="org.apache.catalina.ha.session.ClusterSessionListener"/>
</Cluster>
---------------------------------------------------------------------
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
Re: Tomcat 6 Clustering with StaticMembers
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
on the servers that is running tomcat you need to match <Receiver port>
with <Member port>
so for the member that listens to 51077, you need to configure the
port="51077"
also to avoid conflict, you might want to turn on the membership, which
I think I forgot to add in a flag for, I'll do that right now.
Filip
Mike Prince wrote:
> I'm trying to cluster two Tomcat 6.0.7 instances across a network that
> does not support multicasting. I've added the StaticMember elements
> under the StaticMembershipInterceptor.
>
> I've also opened up ports 4000 and 51077.
>
> When I use netstat to see which ports Tomcat is listening on, it does
> not show port 51077 like I would have expected.
>
> Does someone have an idea what I configured incorrectly? I've include
> the <Cluster> section from my $tomcat/conf/server.xml, which is
> identical on both machines.
>
> Thanks in advance!
>
> - Mike
>
>
>
> <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
> channelSendOptions="8">
>
> <Manager
> className="org.apache.catalina.ha.session.DeltaManager"
> expireSessionsOnShutdown="false"
> notifyListenersOnReplication="true"/>
>
> <Channel
> className="org.apache.catalina.tribes.group.GroupChannel">
> <Membership
> className="org.apache.catalina.tribes.membership.McastService"
> address="228.0.0.4"
> port="45564"
> frequency="500"
> dropTime="3000"/>
> <Receiver
> className="org.apache.catalina.tribes.transport.nio.NioReceiver"
> address="auto"
> port="4000"
> autoBind="100"
> selectorTimeout="5000"
> maxThreads="6"/>
>
> <Sender
> className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
> <Transport
> className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/>
>
> </Sender>
> <Interceptor
> className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>
>
> <Interceptor
> className="org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor">
>
> <Member
> className="org.apache.catalina.tribes.membership.StaticMember"
> port="51077"
> securePort="-1"
> host="10.3.1.34"
> domain="staging-cluster"
> uniqueId="{10,3,1,34}"/>
> <Member
> className="org.apache.catalina.tribes.membership.StaticMember"
> port="51077"
> securePort="-1"
> host="10.3.1.33"
> domain="staging-cluster"
> uniqueId="{10,3,1,33}"/>
> </Interceptor>
> <Interceptor
> className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/>
>
> </Channel>
>
> <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
> filter=""/>
>
> <!--
> <Deployer
> className="org.apache.catalina.ha.deploy.FarmWarDeployer"
> tempDir="/tmp/war-temp/"
> deployDir="/tmp/war-deploy/"
> watchDir="/tmp/war-listen/"
> watchEnabled="false"/>
> -->
>
> <ClusterListener
> className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>
>
> <ClusterListener
> className="org.apache.catalina.ha.session.ClusterSessionListener"/>
> </Cluster>
>
>
> ---------------------------------------------------------------------
> 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
>
>
>
---------------------------------------------------------------------
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