Hi all, 

 

 

I have some problem with my Tomcat cluster configuration. I’m doing the test
only with to machines (Windows 2K, Tomcat 5.0.27 and the ISAPI Filter). 

 

I can’t setup the cluster ok. 

 

Now I’m using the default setup in both machines: 

 

As you can see in the logs, both machine create the Cluster, I think is not
the good behaviour. 

 

I appreciate very much any help. We are working in a big REAL project in
Spain, and it is my only problem. 

 

Thank you very much in advanced, I expect your answer. 

 

Best regards. 

 

 

Configuration

 

 

Machine 1

        <Cluster
className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"

 
managerClassName="org.apache.catalina.cluster.session.DeltaManager"

                         name="KutxaNetCluster"

                         printToScreen="true"

                 expireSessionsOnShutdown="false"

                 useDirtyFlag="true">

 

            <Membership 

                className="org.apache.catalina.cluster.mcast.McastService"

                mcastAddr="239.26.102.4"

                mcastPort="45564"

                mcastFrequency="500"

                mcastDropTime="3000"/>

 

            <Receiver 

 
className="org.apache.catalina.cluster.tcp.ReplicationListener"

                tcpListenAddress="auto"

                tcpListenPort="4010"

                tcpSelectorTimeout="100"

                tcpThreadCount="6"/>

 

            <Sender

 
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"

                replicationMode="pooled"/>

 

            <Valve
className="org.apache.catalina.cluster.tcp.ReplicationValve"

                           debug="10" verbosity="4"

 

 

Machine 2: 

 

 

        <Cluster
className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"

 
managerClassName="org.apache.catalina.cluster.session.DeltaManager"

                         name="KutxaNetCluster"

                         printToScreen="true"

                 expireSessionsOnShutdown="false"

                 useDirtyFlag="true">

 

            <Membership 

                className="org.apache.catalina.cluster.mcast.McastService"

                mcastAddr="239.26.102.4"

                mcastPort="45564"

                mcastFrequency="500"

                mcastDropTime="3000"/>

 

            <Receiver 

 
className="org.apache.catalina.cluster.tcp.ReplicationListener"

                tcpListenAddress="auto"

                tcpListenPort="4010"

                tcpSelectorTimeout="100"

                tcpThreadCount="6"/>

 

            <Sender

 
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"

                replicationMode="pooled"/>

 

            <Valve
className="org.apache.catalina.cluster.tcp.ReplicationValve"

                           debug="10" verbosity="4"

 

 

Both machines have the same configuration. 

 

And the logs in the machine are: 

 

 

 

Machine 1

 

07-dic-2004 18:29:50 org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 2188 ms

07-dic-2004 18:29:51 org.apache.catalina.core.StandardService start

INFO: Arrancando servicio Catalina

07-dic-2004 18:29:51 org.apache.catalina.core.StandardEngine start

INFO: Starting Servlet Engine: Apache Tomcat/5.0.27

07-dic-2004 18:29:51 org.apache.catalina.core.StandardHost start

INFO: Desactivada la validación XML

07-dic-2004 18:29:51 org.apache.catalina.cluster.tcp.SimpleTcpCluster start

INFO: Cluster is about to start

07-dic-2004 18:29:51 org.apache.catalina.cluster.mcast.McastService start

INFO: Sleeping for 2000 secs to establish cluster membership

07-dic-2004 18:29:53 org.apache.catalina.core.StandardHost getDeployer

INFO: Create Host deployer for direct deployment ( non-jmx )

07-dic-2004 18:29:53 org.apache.catalina.core.StandardHostDeployer install

INFO: Procesando URL de archivo de configuración de Contexto file:C:\Tomcat
5.0\conf\Standalone\localhost\admin.xml

07-dic-2004 18:29:54 org.apache.struts.util.PropertyMessageResources <init>

INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true

07-dic-2004 18:29:54 org.apache.struts.util.PropertyMessageResources <init>

INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true

07-dic-2004 18:29:55 org.apache.struts.util.PropertyMessageResources <init>

INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources',
returnNull=true

07-dic-2004 18:29:57 org.apache.catalina.core.StandardHostDeployer install

INFO: Procesando URL de archivo de configuración de Contexto file:C:\Tomcat
5.0\conf\Standalone\localhost\manager.xml

07-dic-2004 18:29:58 org.apache.catalina.core.StandardHostDeployer install

INFO: Procesando URL de archivo de configuración de Contexto file:C:\Tomcat
5.0\conf\Standalone\localhost\ROOT.xml

 

 

 

 

Creating ClusterManager for context  using class
org.apache.catalina.cluster.session.DeltaManager

 

 

 

 

07-dic-2004 18:29:59 org.apache.catalina.cluster.session.DeltaManager start

INFO: Starting clustering manager...:

07-dic-2004 18:29:59 org.apache.catalina.cluster.session.DeltaManager start

INFO: Manager[], skipping state transfer. No members active in cluster
group.

07-dic-2004 18:29:59 org.apache.jk.common.ChannelSocket init

INFO: JK2: ajp13 listening on /0.0.0.0:8009

07-dic-2004 18:29:59 org.apache.jk.server.JkMain start

INFO: Jk running ID=0 time=16/188  config=C:\Tomcat 5.0\conf\jk2.properties

07-dic-2004 18:30:00 org.apache.catalina.startup.Catalina start

INFO: Server startup in 9500 ms

07-dic-2004 18:37:55 org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded

INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://172.26.102.3:4010,
172.26.102.3,4010, alive=461847]

07-dic-2004 18:37:59 org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberDisappeared

INFO: Received member
disappeared:org.apache.catalina.cluster.mcast.McastMember[tcp://172.26.102.3
:4010,172.26.102.3,4010, alive=461847]

 

Machine 2

 

07-dic-2004 18:29:06 org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 4922 ms

07-dic-2004 18:29:07 org.apache.catalina.core.StandardService start

INFO: Arrancando servicio Catalina

07-dic-2004 18:29:07 org.apache.catalina.core.StandardEngine start

INFO: Starting Servlet Engine: Apache Tomcat/5.0.27

07-dic-2004 18:29:07 org.apache.catalina.core.StandardHost start

INFO: Desactivada la validación XML

07-dic-2004 18:29:07 org.apache.catalina.cluster.tcp.SimpleTcpCluster start

INFO: Cluster is about to start

07-dic-2004 18:29:07 org.apache.catalina.cluster.mcast.McastService start

INFO: Sleeping for 2000 secs to establish cluster membership

07-dic-2004 18:29:09 org.apache.catalina.core.StandardHost getDeployer

INFO: Create Host deployer for direct deployment ( non-jmx )

07-dic-2004 18:29:09 org.apache.catalina.core.StandardHostDeployer install

INFO: Procesando URL de archivo de configuración de Contexto file:C:\Tomcat
5.0\conf\Standalone\localhost\admin.xml

07-dic-2004 18:29:14 org.apache.struts.util.PropertyMessageResources <init>

INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true

07-dic-2004 18:29:14 org.apache.struts.util.PropertyMessageResources <init>

INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true

07-dic-2004 18:29:15 org.apache.struts.util.PropertyMessageResources <init>

INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources',
returnNull=true

07-dic-2004 18:29:18 org.apache.catalina.core.StandardHostDeployer install

INFO: Procesando URL de archivo de configuración de Contexto file:C:\Tomcat
5.0\conf\Standalone\localhost\manager.xml

07-dic-2004 18:29:19 org.apache.catalina.core.StandardHostDeployer install

INFO: Procesando URL de archivo de configuración de Contexto file:C:\Tomcat
5.0\conf\Standalone\localhost\ROOT.xml

 

 

 

 

Creating ClusterManager for context  using class
org.apache.catalina.cluster.session.DeltaManager

 

 

 

 

07-dic-2004 18:29:22 org.apache.catalina.cluster.session.DeltaManager start

INFO: Starting clustering manager...:

07-dic-2004 18:29:22 org.apache.catalina.cluster.session.DeltaManager start

INFO: Manager[], skipping state transfer. No members active in cluster
group.

07-dic-2004 18:29:24 org.apache.jk.common.ChannelSocket init

INFO: JK2: ajp13 listening on /0.0.0.0:8009

07-dic-2004 18:29:24 org.apache.jk.server.JkMain start

INFO: Jk running ID=0 time=0/375  config=c:\Tomcat 5.0\conf\jk2.properties

07-dic-2004 18:29:25 org.apache.catalina.startup.Catalina start

INFO: Server startup in 18688 ms

07-dic-2004 18:30:36 org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded

INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://172.26.102.2:4010,
172.26.102.2,4010, alive=107453]

07-dic-2004 18:30:39 org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberDisappeared

INFO: Received member
disappeared:org.apache.catalina.cluster.mcast.McastMember[tcp://172.26.102.2
:4010,172.26.102.2,4010, alive=107453]

07-dic-2004 18:32:41 org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded

INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://172.26.102.2:4010,
172.26.102.2,4010, alive=232390]

07-dic-2004 18:32:44 org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberDisappeared

INFO: Received member
disappeared:org.apache.catalina.cluster.mcast.McastMember[tcp://172.26.102.2
:4010,172.26.102.2,4010, alive=232390]

07-dic-2004 18:34:46 org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberAdded

INFO: Replication member
added:org.apache.catalina.cluster.mcast.McastMember[tcp://172.26.102.2:4010,
172.26.102.2,4010, alive=357296]

07-dic-2004 18:34:49 org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberDisappeared

INFO: Received member
disappeared:org.apache.catalina.cluster.mcast.McastMember[tcp://172.26.102.2
:4010,172.26.102.2,4010, alive=357296]

 

 

______________________________________
Pablo Carretero Sánchez
Cygnux

Arquitecto de Software
Pintor Velázquez nº 3 Esc Izq 7º B
28932 – Móstoles (Madrid)
Movil: +34 699929150
[EMAIL PROTECTED]
<http://www.cygnux.com/egroupware/email/compose.php?folder=INBOX&sessionid=1
2a0f5acc6fd5805a190a5b55a147155&kp3=7c4ad1ea016bfe58bf86addf2e6064d3&domain=
cygnux.com&[EMAIL PROTECTED]>  

 

Reply via email to