You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Randy Paries <rt...@gmail.com> on 2006/02/06 18:56:46 UTC

Help with clustering

hello

Problems with my cluser

I am using apache-tomcat-5.5.15
each server has this in the server.xml

I have a couple of questions
1) these two machines are connected two different ways
   a) routable/public IPS 100M connection
   b) non routeable 192.169 Gigabit connection

When i look at the log files, I see entries like

INFO: Send stats from [66.123.123.180:4,001], Nr of bytes
sent=1,182,166 over 900 = 1,313 bytes/request, processing time 0 msec,
avg processing time 0 msec
Feb 6, 2006 11:52:00 AM
org.apache.catalina.cluster.tcp.ReplicationValve updateStats

Is there a way to configure it so the syncing goes over the GigaBit Links???

Thanks
Randy


==================================================
      <Host name="localhost" appBase="webapps"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">

<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
                
managerClassName="org.apache.catalina.cluster.session.DeltaManager"
                 expireSessionsOnShutdown="false"
                 useDirtyFlag="true"
                 notifyListenersOnReplication="true">

            <Membership
                className="org.apache.catalina.cluster.mcast.McastService"
                mcastAddr="228.0.0.9"
                mcastPort="45564"
                mcastFrequency="500"
                mcastDropTime="3000"/>

            <Receiver
                className="org.apache.catalina.cluster.tcp.ReplicationListener"
                tcpListenAddress="auto"
                tcpListenPort="4001"
                tcpSelectorTimeout="100"
                tcpThreadCount="35"/>

            <Sender
               
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
                replicationMode="pooled"
                ackTimeout="15000"/>
            <Valve
className="org.apache.catalina.cluster.tcp.ReplicationValve"          
        filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;.*\.pdf;\*.wav;\*.mp3;"/>

            <Deployer
className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
                      tempDir="/tmp/war-temp/"
                      deployDir="/tmp/war-deploy/"
                      watchDir="/tmp/war-listen/"
                      watchEnabled="false"/>

            <ClusterListener
className="org.apache.catalina.cluster.session.ClusterSessionListener"/>
        </Cluster>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Help with clustering

Posted by Tim Lucia <ti...@yahoo.com>.
Yes.  Use their IP address in the replication listener, i.e.,

          <Receiver
className="org.apache.catalina.cluster.tcp.ReplicationListener"
            compress="false"
            sendAck="true"
            tcpListenAddress="10.0.1.58"       <=== Make this IP be the
interface you wish.
            tcpListenPort="41001"
            tcpSelectorTimeout="100"
            tcpThreadCount="6"/> 

(you probably have it set to "auto"...)

-----Original Message-----
From: Randy Paries [mailto:rtparies@gmail.com] 
Sent: Monday, February 06, 2006 12:57 PM
To: users@tomcat.apache.org
Subject: Help with clustering

hello

Problems with my cluser

I am using apache-tomcat-5.5.15
each server has this in the server.xml

I have a couple of questions
1) these two machines are connected two different ways
   a) routable/public IPS 100M connection
   b) non routeable 192.169 Gigabit connection

When i look at the log files, I see entries like

INFO: Send stats from [66.123.123.180:4,001], Nr of bytes
sent=1,182,166 over 900 = 1,313 bytes/request, processing time 0 msec, avg
processing time 0 msec Feb 6, 2006 11:52:00 AM
org.apache.catalina.cluster.tcp.ReplicationValve updateStats

Is there a way to configure it so the syncing goes over the GigaBit Links???

Thanks
Randy


==================================================
      <Host name="localhost" appBase="webapps"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">

<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
                
managerClassName="org.apache.catalina.cluster.session.DeltaManager"
                 expireSessionsOnShutdown="false"
                 useDirtyFlag="true"
                 notifyListenersOnReplication="true">

            <Membership
                className="org.apache.catalina.cluster.mcast.McastService"
                mcastAddr="228.0.0.9"
                mcastPort="45564"
                mcastFrequency="500"
                mcastDropTime="3000"/>

            <Receiver
 
className="org.apache.catalina.cluster.tcp.ReplicationListener"
                tcpListenAddress="auto"
                tcpListenPort="4001"
                tcpSelectorTimeout="100"
                tcpThreadCount="35"/>

            <Sender
               
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
                replicationMode="pooled"
                ackTimeout="15000"/>
            <Valve
className="org.apache.catalina.cluster.tcp.ReplicationValve"          
 
filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;.*\.
pdf;\*.wav;\*.mp3;"/>

            <Deployer
className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
                      tempDir="/tmp/war-temp/"
                      deployDir="/tmp/war-deploy/"
                      watchDir="/tmp/war-listen/"
                      watchEnabled="false"/>

            <ClusterListener
className="org.apache.catalina.cluster.session.ClusterSessionListener"/>
        </Cluster>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org