You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by killbulle <ma...@gmail.com> on 2008/11/05 16:39:56 UTC

tomcat 6.0.18 static cluster confugation

Hi , i'am tring to configurer a static member ship tomcat 6 cluster(i can't
use multicat)

but i'am not confident in the configuration
here is may configuration
for the cluster
Tomcat start but i cannot see JMX cluster bean
does sombedody have a sample config for a two machine static cluster
regards
Marc

<Engine name="Catalina" defaultHost="localhost" jvmRoute="tomcat2"> 
      <!--
				For clustering, please take a look at documentation at:
				/docs/cluster-howto.html (simple how to) /docs/config/cluster.html
				(reference documentation)
			-->  
      <Cluster channelSendOptions="8"
className="org.apache.catalina.ha.tcp.SimpleTcpCluster"> 
        <Manager className="org.apache.catalina.ha.session.DeltaManager"
expireSessionsOnShutdown="false" domainReplication="true"
notifyListenersOnReplication="true"/>  
        <Channel className="org.apache.catalina.tribes.group.GroupChannel"> 
          <Receiver address="localhost" autoBind="100"
className="org.apache.catalina.tribes.transport.nio.NioReceiver"
maxThreads="6" port="4000" selectorTimeout="5000"/>  
          <Sender
className="org.apache.catalina.tribes.transport.ReplicationTransmitter"> 
            <Transport
className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/> 
          </Sender>  
          <Interceptor
className="org.apache.geronimo.tomcat.interceptor.DisableMcastInterceptor"/>  
          <Interceptor
className="org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor"
staticOnly="true"/>  
          <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="4000" 
host="10.154.0.166"  uniqueId="{10,154,0,166}"/>  
            <Member
className="org.apache.catalina.tribes.membership.StaticMember" port="4000"
host="10.154.0.167"  uniqueId="{10,154,0,167}"/> s
          </Interceptor>  
          <Interceptor
className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/> 
        </Channel>  
        <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
filter=""/>  
        <Valve
className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>  
        <ClusterListener
className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>  
        <ClusterListener
className="org.apache.catalina.ha.session.ClusterSessionListener"/> 
      </Cluster>  
   
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>  

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

-- 
View this message in context: http://www.nabble.com/tomcat-6.0.18-static-cluster-confugation-tp20343212p20343212.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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.0.18 static cluster confugation

Posted by killbulle <ma...@gmail.com>.
Hi, thanks for you reply

here is a more precise reporting 
i have few problem
i only see member dispaear
the jmx cluster bean is  not present(i cannot find it)
et the deployer refuse to start


Regards,
 Marc

the cluster seems to be conected as the stop off server 2 is recevied by
server 1
 6 nov. 2008 10:19:32
org.apache.catalina.tribes.group.interceptors.TcpFailureDetector
memberDisappeared
jvm 1    | INFO: Verification complete. Member
disappeared[org.apache.catalina.tribes.membership.MemberImpl[tcp://{127, 0,
0, 1}:4000,{127, 0, 0, 1},4000, alive=138643,id={-124 -84 15 47 75 68 66 21
-121 -4 87 -38 -72 -17 -84 117 }, payload={}, command={66 65 66 89 45 65 76
69 88 ...(9)}, domain={}, ]]
jvm 1    | 6 nov. 2008 10:19:32 org.apache.catalina.ha.tcp.SimpleTcpCluster
memberDisappeared
jvm 1    | INFO: Received member
disappeared:org.apache.catalina.tribes.membership.MemberImpl[tcp://{127, 0,
0, 1}:4000,{127, 0, 0, 1},4000, alive=138643,id={-124 -84 15 47 75 68 66 21
-121 -4 87 -38 -72 -17 -84 117 }, payload={}, command={66 65 66 89 45 65 76
69 88 ...(9)}, domain={}, ]




#log server from server 1 after start
jvm 1    | 6 nov. 2008 10:16:26
org.apache.tomcat.util.digester.SetPropertiesRule begin
jvm 1    | ATTENTION:
[SetPropertiesRule]{Server/Service/Engine/Cluster/Channel/Interceptor/Member}
Setting property 'uniqueId' to '{10,154,0,167}' did not find a matching
property.
jvm 1    | 6 nov. 2008 10:16:26
org.apache.catalina.core.AprLifecycleListener init
jvm 1    | INFO: The APR based Apache Tomcat Native library which allows
optimal performance in production environments was not found on the
java.library.path: ../lib
jvm 1    | 6 nov. 2008 10:16:26 org.apache.coyote.http11.Http11Protocol init
jvm 1    | INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
jvm 1    | 6 nov. 2008 10:16:26 org.apache.catalina.startup.Catalina load
jvm 1    | INFO: Initialization processed in 1206 ms
jvm 1    | 6 nov. 2008 10:16:26 org.apache.catalina.core.StandardService
start
jvm 1    | INFO: D�marrage du service Catalina
jvm 1    | 6 nov. 2008 10:16:26 org.apache.catalina.core.StandardEngine
start
jvm 1    | INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
jvm 1    | 6 nov. 2008 10:16:26 org.apache.catalina.ha.tcp.SimpleTcpCluster
start
jvm 1    | INFO: Cluster is about to start
jvm 1    | 6 nov. 2008 10:16:26
org.apache.catalina.tribes.transport.ReceiverBase bind
jvm 1    | INFO: Receiver Server Socket bound to:localhost/127.0.0.1:4000
jvm 1    | 6 nov. 2008 10:16:26
org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
jvm 1    | INFO: Setting cluster mcast soTimeout to 500
jvm 1    | 6 nov. 2008 10:16:26
org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
jvm 1    | INFO: Sleeping for 1000 milliseconds to establish cluster
membership, start level:4
jvm 1    | 6 nov. 2008 10:16:27
org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
jvm 1    | INFO: Done sleeping, membership established, start level:4
jvm 1    | 6 nov. 2008 10:16:27
org.apache.catalina.ha.deploy.FarmWarDeployer start
jvm 1    | GRAVE: FarmWarDeployer can only work as host cluster subelement!
jvm 1    | 6 nov. 2008 10:16:29
org.apache.catalina.ha.session.JvmRouteBinderValve start
jvm 1    | INFO: JvmRouteBinderValve started
jvm 1    | 6 nov. 2008 10:16:29 org.apache.coyote.http11.Http11Protocol
start
jvm 1    | INFO: D�marrage de Coyote HTTP/1.1 sur http-8080
jvm 1    | 6 nov. 2008 10:16:29 org.apache.jk.common.ChannelSocket init
jvm 1    | INFO: JK: ajp13 listening on /0.0.0.0:8010
jvm 1    | 6 nov. 2008 10:16:29 org.apache.jk.server.JkMain start
jvm 1    | INFO: Jk running ID=0 time=0/70  config=null
jvm 1    | 6 nov. 2008 10:16:29 org.apache.catalina.startup.Catalina start
jvm 1    | INFO: Server startup in 2977 ms



#server 1 configuration
 <Cluster channelSendOptions="8"
className="org.apache.catalina.ha.tcp.SimpleTcpCluster"> 
        <Manager className="org.apache.catalina.ha.session.DeltaManager"
expireSessionsOnShutdown="false" domainReplication="true"
notifyListenersOnReplication="true"/>  
        <Channel className="org.apache.catalina.tribes.group.GroupChannel"> 
          <Receiver address="localhost" autoBind="100"
className="org.apache.catalina.tribes.transport.nio.NioReceiver"
maxThreads="6" port="4000" selectorTimeout="5000"/>  
          <Sender
className="org.apache.catalina.tribes.transport.ReplicationTransmitter"> 
            <Transport
className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/> 
          </Sender>  
          <Interceptor
className="org.apache.geronimo.tomcat.interceptor.DisableMcastInterceptor"/>  
          <Interceptor
className="org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor"
staticOnly="true"/>  
          <Interceptor
className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>  
   <Interceptor
className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/> 
          <Interceptor
className="org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor"> 
              <!-- here 10.154.0.167 is the  machine FOR SERVER2-->
            <Member
className="org.apache.catalina.tribes.membership.StaticMember" port="4000"
securePort="-1" host="10.154.0.167"  uniqueId="{10,154,0,167}"/> 
          </Interceptor>  
       
        </Channel>  
        <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
filter=""/>  
        <Valve
className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>  
        <ClusterListener
className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>  
        <ClusterListener
className="org.apache.catalina.ha.session.ClusterSessionListener"/> 
<Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer"
                    tempDir="/tmp/war-temp/"
                    deployDir="/tmp/war-deploy/"
                    watchDir="/tmp/war-listen/"
                    watchEnabled="false"/>

      </Cluster>  
         <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>  
      <Host name="localhost" appBase="webapps" unpackWARs="true"
autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> 
       
      </Host> 


#server 2 configuration
<Cluster channelSendOptions="8"
className="org.apache.catalina.ha.tcp.SimpleTcpCluster"> 
        <Manager className="org.apache.catalina.ha.session.DeltaManager"
expireSessionsOnShutdown="false" domainReplication="true"
notifyListenersOnReplication="true"/>  
        <Channel className="org.apache.catalina.tribes.group.GroupChannel"> 
          <Receiver address="localhost" autoBind="100"
className="org.apache.catalina.tribes.transport.nio.NioReceiver"
maxThreads="6" port="4000" selectorTimeout="5000"/>  
          <Sender
className="org.apache.catalina.tribes.transport.ReplicationTransmitter"> 
            <Transport
className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/> 
          </Sender>  
          <Interceptor
className="org.apache.geronimo.tomcat.interceptor.DisableMcastInterceptor"/>  
          <Interceptor
className="org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor"
staticOnly="true"/>  
          <Interceptor
className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>  
   <Interceptor
className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/> 
          <Interceptor
className="org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor"> 
                       <Member
className="org.apache.catalina.tribes.membership.StaticMember" port="4000" 
host="10.154.0.166"  uniqueId="{10,154,0,166}"/>  
        
          </Interceptor>  
       
        </Channel>  
        <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
filter=""/>  
        <Valve
className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>  
        <ClusterListener
className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>  
        <ClusterListener
className="org.apache.catalina.ha.session.ClusterSessionListener"/> 
<Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer"
                    tempDir="/tmp/war-temp/"
                    deployDir="/tmp/war-deploy/"
                    watchDir="/tmp/war-listen/"
                    watchEnabled="false"/>
      </Cluster>  

      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>  

      <Host name="localhost" appBase="webapps" unpackWARs="true"
autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> 
      
      </Host> 
-- 
View this message in context: http://www.nabble.com/tomcat-6.0.18-static-cluster-confugation-tp20343212p20357611.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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: cluster configuration

Posted by Gustavo Araujo <gu...@gmail.com>.
Instead of puting 127.0.0.1 in your conf file (server.xml) put the "real" ip
adress of your server.

Restart the server and look at catalina.out.

Regards.

2008/11/19 Mike Wannamaker <mw...@opentext.com>

> I'm having an issue with clustering in tomcat and tribes.
>
> I get this output, I'm not sure why Tribes can't bind to the multicast
> address?  It then binds to localhost which doesn't allow machines to see
> each other.
>
> Any help is appreciated.
>
> 19-Nov-2008 3:30:23 PM org.apache.catalina.tribes.transport.ReceiverBase
> bind
> INFO: Receiver Server Socket bound to:/10.6.2.89:4000
> 19-Nov-2008 3:30:23 PM
> org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
> INFO: Attempting to bind the multicast socket to /239.176.50.121:45566
> 19-Nov-2008 3:30:23 PM
> org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
> INFO: Binding to multicast address, failed. Binding to port only.
> 19-Nov-2008 3:30:23 PM
> org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
> INFO: Setting multihome multicast interface to:localhost/127.0.0.1
> 19-Nov-2008 3:30:23 PM
> org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
> INFO: Setting cluster mcast soTimeout to 500
> 19-Nov-2008 3:30:23 PM
> org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
> INFO: Sleeping for 1000 milliseconds to establish cluster membership,
> start level:4
> 19-Nov-2008 3:30:24 PM
> org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
> INFO: Done sleeping, membership established, start level:4
> 19-Nov-2008 3:30:24 PM
> org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
> INFO: Sleeping for 1000 milliseconds to establish cluster membership,
> start level:8
> 19-Nov-2008 3:30:25 PM
> org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
> INFO: Done sleeping, membership established, start level:8
> Initializing 3rdParty Loggers
>
> ---------------------------------------------------------------------
> 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
>
>


-- 
Gustavo Campos Araujo

Re: cluster configuration

Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
239.176.50.121 should be in the "address" attribute, not in the bind attribute.
the bind attribute is what network card you wanna use for multicasting, the address is what address you wanna use to send your pings over

Filip


Mike Wannamaker wrote:
> Hi Filip
>
> 1. We are using tribes from 6.0.18, we have a unique situation we are on
> 5.5.25, however we are starting tribes ourselves.  See my startup code
> below.
> 2. It should be valid 239.176.50.121 is a valid Class D IPv4 address
> (224.0.0.0 - 239.255.255.255)
> 3. No Windows XP 64 bit.
>
>
> Tribes startup code:
>
>     public synchronized void startup()
>     {
>         if(_tribesChannel == null)
>         { // nothing to do if already running
>             try
>             {
>                 _tribesChannel = new GroupChannel();
>                 // must be done before start:
>                 MembershipService mService =
> _tribesChannel.getMembershipService();
>                 McastService mCastService = (McastService)mService;
>                 mCastService.setPort(_mainPort);
>                 mCastService.setAddress(_multicastIPAddr);
>                 mCastService.setRecoveryCounter(10);
> 	            // 10 Seconds instead of 3 seconds?
>                 mCastService.setDropTime(10*1000);
> 	            if(_desiredLocalIPAddr != null)
> 	            {
> 		            mCastService.setBind(_desiredLocalIPAddr);
> 	            }
>                 if(_ancillaryPort > 0)
>                 {
>                     ChannelReceiver receiver =
> _tribesChannel.getChannelReceiver();
>                     if(receiver.getPort() != _ancillaryPort)
>                     {
>                         if(receiver instanceof ReceiverBase)
>                         {
>  
> ((ReceiverBase)receiver).setPort(_ancillaryPort);
>                         }
>                     }
>                 }
> 	            _tribesChannel.addInterceptor(new
> TcpFailureDetector());
>  
> _tribesChannel.addMembershipListener(_tribesMembershipListener);
>  
> _tribesChannel.addChannelListener(_tribesChannelListener);
>                 _tribesChannel.start(CHANNEL_COMPONENTS);
> 	            addToTopology();
>             }
>             catch(ChannelException ex)
>             {
>                 try { _tribesChannel.stop(CHANNEL_COMPONENTS); }
> catch(Throwable t) { /*gulp*/}
>                 _tribesChannel = null;
>                 throw new RuntimeException(ex); // todo, exception
> handling?
>             }
>         }
>     }
>
>
>
> -----Original Message-----
> From: Filip Hanik - Dev Lists [mailto:devlists@hanik.com] 
> Sent: November 19, 2008 5:01 PM
> To: Tomcat Users List
> Subject: Re: cluster configuration
>
> just to make sure
>
> 1. you are using 6.0.18
> and
> 2. the IP you are trying to bind to is valid
> and
> 3. could you be using linux?
>
> this is the code that is telling you about the failure
>
> 186 :     fhanik     586228      if (mcastBindAddress != null) {
> 187 :                 try {
> 188 :                 log.info("Attempting to bind the multicast socket 
> to "+address+":"+port);
> 189 :                 socket = new MulticastSocket(new 
> InetSocketAddress(address,port));
> 190 :                 } catch (BindException e) {
> 191 :                 /*
> 192 :                 * On some plattforms (e.g. Linux) it is not 
> possible to bind
> 193 :                 * to the multicast address. In this case only bind
>
> to the
> 194 :                 * port.
> 195 :                 */
> 196 :                 log.info("Binding to multicast address, failed. 
> Binding to port only.");
> 197 :                 socket = new MulticastSocket(port);
> 198 :                 }
>
> Mike Wannamaker wrote:
>   
>> I'm having an issue with clustering in tomcat and tribes.
>>
>> I get this output, I'm not sure why Tribes can't bind to the multicast
>> address?  It then binds to localhost which doesn't allow machines to
>>     
> see
>   
>> each other.
>>
>> Any help is appreciated.
>>
>> 19-Nov-2008 3:30:23 PM
>>     
> org.apache.catalina.tribes.transport.ReceiverBase
>   
>> bind
>> INFO: Receiver Server Socket bound to:/10.6.2.89:4000
>> 19-Nov-2008 3:30:23 PM
>> org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
>> INFO: Attempting to bind the multicast socket to /239.176.50.121:45566
>> 19-Nov-2008 3:30:23 PM
>> org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
>> INFO: Binding to multicast address, failed. Binding to port only.
>> 19-Nov-2008 3:30:23 PM
>> org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
>> INFO: Setting multihome multicast interface to:localhost/127.0.0.1
>> 19-Nov-2008 3:30:23 PM
>> org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
>> INFO: Setting cluster mcast soTimeout to 500
>> 19-Nov-2008 3:30:23 PM
>> org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
>> INFO: Sleeping for 1000 milliseconds to establish cluster membership,
>> start level:4
>> 19-Nov-2008 3:30:24 PM
>> org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
>> INFO: Done sleeping, membership established, start level:4
>> 19-Nov-2008 3:30:24 PM
>> org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
>> INFO: Sleeping for 1000 milliseconds to establish cluster membership,
>> start level:8
>> 19-Nov-2008 3:30:25 PM
>> org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
>> INFO: Done sleeping, membership established, start level:8
>> Initializing 3rdParty Loggers
>>
>> ---------------------------------------------------------------------
>> 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
>
>
> ---------------------------------------------------------------------
> 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


RE: cluster configuration

Posted by Mike Wannamaker <mw...@opentext.com>.
Hi Filip

I found the cause

	            if(_desiredLocalIPAddr != null)
	            {
		            mCastService.setBind(_desiredLocalIPAddr);
	            }

_ desiredLocalIPAddr was not actually null but empty and therefore call
mCastService.setBind("");

Perhaps setBind(); should check the given ip?  However, I have fixed my
code to not allow this.

Cheers
Mike

-----Original Message-----
From: Mike Wannamaker [mailto:mwannama@opentext.com] 
Sent: November 21, 2008 2:26 PM
To: Tomcat Users List
Subject: RE: cluster configuration

Hi Filip

1. We are using tribes from 6.0.18, we have a unique situation we are on
5.5.25, however we are starting tribes ourselves.  See my startup code
below.
2. It should be valid 239.176.50.121 is a valid Class D IPv4 address
(224.0.0.0 - 239.255.255.255)
3. No Windows XP 64 bit.


Tribes startup code:

    public synchronized void startup()
    {
        if(_tribesChannel == null)
        { // nothing to do if already running
            try
            {
                _tribesChannel = new GroupChannel();
                // must be done before start:
                MembershipService mService =
_tribesChannel.getMembershipService();
                McastService mCastService = (McastService)mService;
                mCastService.setPort(_mainPort);
                mCastService.setAddress(_multicastIPAddr);
                mCastService.setRecoveryCounter(10);
	            // 10 Seconds instead of 3 seconds?
                mCastService.setDropTime(10*1000);
	            if(_desiredLocalIPAddr != null)
	            {
		            mCastService.setBind(_desiredLocalIPAddr);
	            }
                if(_ancillaryPort > 0)
                {
                    ChannelReceiver receiver =
_tribesChannel.getChannelReceiver();
                    if(receiver.getPort() != _ancillaryPort)
                    {
                        if(receiver instanceof ReceiverBase)
                        {
 
((ReceiverBase)receiver).setPort(_ancillaryPort);
                        }
                    }
                }
	            _tribesChannel.addInterceptor(new
TcpFailureDetector());
 
_tribesChannel.addMembershipListener(_tribesMembershipListener);
 
_tribesChannel.addChannelListener(_tribesChannelListener);
                _tribesChannel.start(CHANNEL_COMPONENTS);
	            addToTopology();
            }
            catch(ChannelException ex)
            {
                try { _tribesChannel.stop(CHANNEL_COMPONENTS); }
catch(Throwable t) { /*gulp*/}
                _tribesChannel = null;
                throw new RuntimeException(ex); // todo, exception
handling?
            }
        }
    }



-----Original Message-----
From: Filip Hanik - Dev Lists [mailto:devlists@hanik.com] 
Sent: November 19, 2008 5:01 PM
To: Tomcat Users List
Subject: Re: cluster configuration

just to make sure

1. you are using 6.0.18
and
2. the IP you are trying to bind to is valid
and
3. could you be using linux?

this is the code that is telling you about the failure

186 :     fhanik     586228      if (mcastBindAddress != null) {
187 :                 try {
188 :                 log.info("Attempting to bind the multicast socket 
to "+address+":"+port);
189 :                 socket = new MulticastSocket(new 
InetSocketAddress(address,port));
190 :                 } catch (BindException e) {
191 :                 /*
192 :                 * On some plattforms (e.g. Linux) it is not 
possible to bind
193 :                 * to the multicast address. In this case only bind

to the
194 :                 * port.
195 :                 */
196 :                 log.info("Binding to multicast address, failed. 
Binding to port only.");
197 :                 socket = new MulticastSocket(port);
198 :                 }

Mike Wannamaker wrote:
> I'm having an issue with clustering in tomcat and tribes.
>
> I get this output, I'm not sure why Tribes can't bind to the multicast
> address?  It then binds to localhost which doesn't allow machines to
see
> each other.
>
> Any help is appreciated.
>
> 19-Nov-2008 3:30:23 PM
org.apache.catalina.tribes.transport.ReceiverBase
> bind
> INFO: Receiver Server Socket bound to:/10.6.2.89:4000
> 19-Nov-2008 3:30:23 PM
> org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
> INFO: Attempting to bind the multicast socket to /239.176.50.121:45566
> 19-Nov-2008 3:30:23 PM
> org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
> INFO: Binding to multicast address, failed. Binding to port only.
> 19-Nov-2008 3:30:23 PM
> org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
> INFO: Setting multihome multicast interface to:localhost/127.0.0.1
> 19-Nov-2008 3:30:23 PM
> org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
> INFO: Setting cluster mcast soTimeout to 500
> 19-Nov-2008 3:30:23 PM
> org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
> INFO: Sleeping for 1000 milliseconds to establish cluster membership,
> start level:4
> 19-Nov-2008 3:30:24 PM
> org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
> INFO: Done sleeping, membership established, start level:4
> 19-Nov-2008 3:30:24 PM
> org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
> INFO: Sleeping for 1000 milliseconds to establish cluster membership,
> start level:8
> 19-Nov-2008 3:30:25 PM
> org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
> INFO: Done sleeping, membership established, start level:8
> Initializing 3rdParty Loggers
>
> ---------------------------------------------------------------------
> 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


---------------------------------------------------------------------
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


RE: cluster configuration

Posted by Mike Wannamaker <mw...@opentext.com>.
Hi Filip

1. We are using tribes from 6.0.18, we have a unique situation we are on
5.5.25, however we are starting tribes ourselves.  See my startup code
below.
2. It should be valid 239.176.50.121 is a valid Class D IPv4 address
(224.0.0.0 - 239.255.255.255)
3. No Windows XP 64 bit.


Tribes startup code:

    public synchronized void startup()
    {
        if(_tribesChannel == null)
        { // nothing to do if already running
            try
            {
                _tribesChannel = new GroupChannel();
                // must be done before start:
                MembershipService mService =
_tribesChannel.getMembershipService();
                McastService mCastService = (McastService)mService;
                mCastService.setPort(_mainPort);
                mCastService.setAddress(_multicastIPAddr);
                mCastService.setRecoveryCounter(10);
	            // 10 Seconds instead of 3 seconds?
                mCastService.setDropTime(10*1000);
	            if(_desiredLocalIPAddr != null)
	            {
		            mCastService.setBind(_desiredLocalIPAddr);
	            }
                if(_ancillaryPort > 0)
                {
                    ChannelReceiver receiver =
_tribesChannel.getChannelReceiver();
                    if(receiver.getPort() != _ancillaryPort)
                    {
                        if(receiver instanceof ReceiverBase)
                        {
 
((ReceiverBase)receiver).setPort(_ancillaryPort);
                        }
                    }
                }
	            _tribesChannel.addInterceptor(new
TcpFailureDetector());
 
_tribesChannel.addMembershipListener(_tribesMembershipListener);
 
_tribesChannel.addChannelListener(_tribesChannelListener);
                _tribesChannel.start(CHANNEL_COMPONENTS);
	            addToTopology();
            }
            catch(ChannelException ex)
            {
                try { _tribesChannel.stop(CHANNEL_COMPONENTS); }
catch(Throwable t) { /*gulp*/}
                _tribesChannel = null;
                throw new RuntimeException(ex); // todo, exception
handling?
            }
        }
    }



-----Original Message-----
From: Filip Hanik - Dev Lists [mailto:devlists@hanik.com] 
Sent: November 19, 2008 5:01 PM
To: Tomcat Users List
Subject: Re: cluster configuration

just to make sure

1. you are using 6.0.18
and
2. the IP you are trying to bind to is valid
and
3. could you be using linux?

this is the code that is telling you about the failure

186 :     fhanik     586228      if (mcastBindAddress != null) {
187 :                 try {
188 :                 log.info("Attempting to bind the multicast socket 
to "+address+":"+port);
189 :                 socket = new MulticastSocket(new 
InetSocketAddress(address,port));
190 :                 } catch (BindException e) {
191 :                 /*
192 :                 * On some plattforms (e.g. Linux) it is not 
possible to bind
193 :                 * to the multicast address. In this case only bind

to the
194 :                 * port.
195 :                 */
196 :                 log.info("Binding to multicast address, failed. 
Binding to port only.");
197 :                 socket = new MulticastSocket(port);
198 :                 }

Mike Wannamaker wrote:
> I'm having an issue with clustering in tomcat and tribes.
>
> I get this output, I'm not sure why Tribes can't bind to the multicast
> address?  It then binds to localhost which doesn't allow machines to
see
> each other.
>
> Any help is appreciated.
>
> 19-Nov-2008 3:30:23 PM
org.apache.catalina.tribes.transport.ReceiverBase
> bind
> INFO: Receiver Server Socket bound to:/10.6.2.89:4000
> 19-Nov-2008 3:30:23 PM
> org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
> INFO: Attempting to bind the multicast socket to /239.176.50.121:45566
> 19-Nov-2008 3:30:23 PM
> org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
> INFO: Binding to multicast address, failed. Binding to port only.
> 19-Nov-2008 3:30:23 PM
> org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
> INFO: Setting multihome multicast interface to:localhost/127.0.0.1
> 19-Nov-2008 3:30:23 PM
> org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
> INFO: Setting cluster mcast soTimeout to 500
> 19-Nov-2008 3:30:23 PM
> org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
> INFO: Sleeping for 1000 milliseconds to establish cluster membership,
> start level:4
> 19-Nov-2008 3:30:24 PM
> org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
> INFO: Done sleeping, membership established, start level:4
> 19-Nov-2008 3:30:24 PM
> org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
> INFO: Sleeping for 1000 milliseconds to establish cluster membership,
> start level:8
> 19-Nov-2008 3:30:25 PM
> org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
> INFO: Done sleeping, membership established, start level:8
> Initializing 3rdParty Loggers
>
> ---------------------------------------------------------------------
> 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


---------------------------------------------------------------------
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: cluster configuration

Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
just to make sure

1. you are using 6.0.18
and
2. the IP you are trying to bind to is valid
and
3. could you be using linux?

this is the code that is telling you about the failure

186 :     fhanik     586228      if (mcastBindAddress != null) {
187 :                 try {
188 :                 log.info("Attempting to bind the multicast socket 
to "+address+":"+port);
189 :                 socket = new MulticastSocket(new 
InetSocketAddress(address,port));
190 :                 } catch (BindException e) {
191 :                 /*
192 :                 * On some plattforms (e.g. Linux) it is not 
possible to bind
193 :                 * to the multicast address. In this case only bind 
to the
194 :                 * port.
195 :                 */
196 :                 log.info("Binding to multicast address, failed. 
Binding to port only.");
197 :                 socket = new MulticastSocket(port);
198 :                 }

Mike Wannamaker wrote:
> I'm having an issue with clustering in tomcat and tribes.
>
> I get this output, I'm not sure why Tribes can't bind to the multicast
> address?  It then binds to localhost which doesn't allow machines to see
> each other.
>
> Any help is appreciated.
>
> 19-Nov-2008 3:30:23 PM org.apache.catalina.tribes.transport.ReceiverBase
> bind
> INFO: Receiver Server Socket bound to:/10.6.2.89:4000
> 19-Nov-2008 3:30:23 PM
> org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
> INFO: Attempting to bind the multicast socket to /239.176.50.121:45566
> 19-Nov-2008 3:30:23 PM
> org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
> INFO: Binding to multicast address, failed. Binding to port only.
> 19-Nov-2008 3:30:23 PM
> org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
> INFO: Setting multihome multicast interface to:localhost/127.0.0.1
> 19-Nov-2008 3:30:23 PM
> org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
> INFO: Setting cluster mcast soTimeout to 500
> 19-Nov-2008 3:30:23 PM
> org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
> INFO: Sleeping for 1000 milliseconds to establish cluster membership,
> start level:4
> 19-Nov-2008 3:30:24 PM
> org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
> INFO: Done sleeping, membership established, start level:4
> 19-Nov-2008 3:30:24 PM
> org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
> INFO: Sleeping for 1000 milliseconds to establish cluster membership,
> start level:8
> 19-Nov-2008 3:30:25 PM
> org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
> INFO: Done sleeping, membership established, start level:8
> Initializing 3rdParty Loggers
>
> ---------------------------------------------------------------------
> 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


cluster configuration

Posted by Mike Wannamaker <mw...@opentext.com>.
I'm having an issue with clustering in tomcat and tribes.

I get this output, I'm not sure why Tribes can't bind to the multicast
address?  It then binds to localhost which doesn't allow machines to see
each other.

Any help is appreciated.

19-Nov-2008 3:30:23 PM org.apache.catalina.tribes.transport.ReceiverBase
bind
INFO: Receiver Server Socket bound to:/10.6.2.89:4000
19-Nov-2008 3:30:23 PM
org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
INFO: Attempting to bind the multicast socket to /239.176.50.121:45566
19-Nov-2008 3:30:23 PM
org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
INFO: Binding to multicast address, failed. Binding to port only.
19-Nov-2008 3:30:23 PM
org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
INFO: Setting multihome multicast interface to:localhost/127.0.0.1
19-Nov-2008 3:30:23 PM
org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
INFO: Setting cluster mcast soTimeout to 500
19-Nov-2008 3:30:23 PM
org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
INFO: Sleeping for 1000 milliseconds to establish cluster membership,
start level:4
19-Nov-2008 3:30:24 PM
org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
INFO: Done sleeping, membership established, start level:4
19-Nov-2008 3:30:24 PM
org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
INFO: Sleeping for 1000 milliseconds to establish cluster membership,
start level:8
19-Nov-2008 3:30:25 PM
org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
INFO: Done sleeping, membership established, start level:8
Initializing 3rdParty Loggers

---------------------------------------------------------------------
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.0.18 static cluster confugation

Posted by killbulle <ma...@gmail.com>.
thanks

Filip Hanik - Dev Lists wrote:
> 
> inline
> 
> killbulle wrote:
>> Hi filip,
>> herre is a more detailled post(sorry for the first one)
>>
>> i have few problem in fact
>> i cannot see the jmx cluster Mbean but the valve replication valve is
>> here ,
>>   
> there is no formal jmx mbean for the cluster yet
>> is this normal ?
>> the FarmDeployer doesn't work(still experimetal in tomcat 6)
>>   
> farm deployer was working in 5.0, broke in 5.5 and never fixed in 6.
> the idea behind a farm deployer can easily be accomplished in many other 
> ways
>> Regards Marc
>>
>>
>>
>> here my server log
>> jvm 1    | 6 nov. 2008 12:13:34
>> org.apache.tomcat.util.digester.SetPropertiesRule begin
>> jvm 1    | ATTENTION:
>> [SetPropertiesRule]{Server/Service/Engine/Cluster/Channel/Interceptor/Member}
>> Setting property 'uniqueId' to '{10,154,0,167}' did not find a matching
>> property.
>> jvm 1    | 6 nov. 2008 12:13:34
>> org.apache.catalina.core.AprLifecycleListener init
>> jvm 1    | INFO: The APR based Apache Tomcat Native library which allows
>> optimal performance in production environments was not found on the
>> java.library.path: ../lib
>> jvm 1    | 6 nov. 2008 12:13:34 org.apache.coyote.http11.Http11Protocol
>> init
>> jvm 1    | INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
>> jvm 1    | 6 nov. 2008 12:13:34 org.apache.catalina.startup.Catalina load
>> jvm 1    | INFO: Initialization processed in 1545 ms
>> jvm 1    | 6 nov. 2008 12:13:34 org.apache.catalina.core.StandardService
>> start
>> jvm 1    | INFO: D�marrage du service Catalina
>> jvm 1    | 6 nov. 2008 12:13:34 org.apache.catalina.core.StandardEngine
>> start
>> jvm 1    | INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
>> jvm 1    | 6 nov. 2008 12:13:34
>> org.apache.catalina.ha.tcp.SimpleTcpCluster
>> start
>> jvm 1    | INFO: Cluster is about to start
>> jvm 1    | 6 nov. 2008 12:13:34
>> org.apache.catalina.tribes.transport.ReceiverBase bind
>> jvm 1    | INFO: Receiver Server Socket bound to:/10.154.0.166:4000
>> jvm 1    | 6 nov. 2008 12:13:34
>> org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
>> jvm 1    | INFO: Setting cluster mcast soTimeout to 500
>> jvm 1    | 6 nov. 2008 12:13:34
>> org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
>> jvm 1    | INFO: Sleeping for 1000 milliseconds to establish cluster
>> membership, start level:4
>> jvm 1    | 6 nov. 2008 12:13:35
>> org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
>> jvm 1    | INFO: Done sleeping, membership established, start level:4
>> jvm 1    | 6 nov. 2008 12:13:35
>> org.apache.catalina.ha.deploy.FarmWarDeployer start
>> jvm 1    | GRAVE: FarmWarDeployer can only work as host cluster
>> subelement!
>> jvm 1    | 6 nov. 2008 12:13:37
>> org.apache.catalina.ha.session.JvmRouteBinderValve start
>> jvm 1    | INFO: JvmRouteBinderValve started
>> jvm 1    | 6 nov. 2008 12:13:37 org.apache.coyote.http11.Http11Protocol
>> start
>> jvm 1    | INFO: D�marrage de Coyote HTTP/1.1 sur http-8080
>> jvm 1    | 6 nov. 2008 12:13:37 org.apache.jk.common.ChannelSocket init
>> jvm 1    | INFO: JK: ajp13 listening on /0.0.0.0:8010
>> jvm 1    | 6 nov. 2008 12:13:37 org.apache.jk.server.JkMain start
>> jvm 1    | INFO: Jk running ID=0 time=0/154  config=null
>> jvm 1    | 6 nov. 2008 12:13:37 org.apache.catalina.startup.Catalina
>> start
>> jvm 1    | INFO: Server startup in 3432 ms
>> jvm 1    | 6 nov. 2008 12:13:55 org.apache.catalina.tribes.io.BufferPool
>> getBufferPool
>> jvm 1    | INFO: Created a buffer pool with max size:104857600 bytes of
>> type:org.apache.catalina.tribes.io.BufferPool15Impl
>> jvm 1    | 6 nov. 2008 12:13:55
>> org.apache.catalina.tribes.group.interceptors.TcpFailureDetector
>> performBasicCheck
>> jvm 1    | ATTENTION: Member added, even though we werent
>> notified:org.apache.catalina.tribes.membership.MemberImpl[tcp://10.154.0.167:4000,10.154.0.167,4000,
>> alive=0,id={0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }, payload={}, command={},
>> domain={}, ]
>> jvm 1    | 6 nov. 2008 12:13:55
>> org.apache.catalina.ha.tcp.SimpleTcpCluster
>> memberAdded
>> jvm 1    | INFO: Replication member
>> added:org.apache.catalina.tribes.membership.MemberImpl[tcp://10.154.0.167:4000,10.154.0.167,4000,
>> alive=0,id={0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }, payload={}, command={},
>> domain={}, ]
>> jvm 1    | 6 nov. 2008 12:14:00
>> org.apache.catalina.ha.session.ClusterSessionListener messageReceived
>> jvm 1    | ATTENTION: Context manager doesn't
>> exist:localhost#/jmx.browser-1.2.0
>>
>>
>>
>> #server1 cinf 
>> Cluster channelSendOptions="8"
>> className="org.apache.catalina.ha.tcp.SimpleTcpCluster"> 
>>         <Manager className="org.apache.catalina.ha.session.DeltaManager"
>> expireSessionsOnShutdown="false" domainReplication="true"
>> notifyListenersOnReplication="true"/>  
>>         <Channel
>> className="org.apache.catalina.tribes.group.GroupChannel"> 
>>           <Receiver address="10.154.0.166" autoBind="0"
>> className="org.apache.catalina.tribes.transport.nio.NioReceiver"
>> maxThreads="6" port="4000" selectorTimeout="5000"/>  
>>           <Sender
>> className="org.apache.catalina.tribes.transport.ReplicationTransmitter"> 
>>             <Transport
>> className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/> 
>>           </Sender>  
>>           <Interceptor
>> className="org.apache.geronimo.tomcat.interceptor.DisableMcastInterceptor"/>  
>>           <Interceptor
>> className="org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor"
>> staticOnly="true"/>  
>>           <Interceptor
>> className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>  
>>    <Interceptor
>> className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/> 
>>           <Interceptor
>> className="org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor"> 
>>               
>>             <Member
>> className="org.apache.catalina.tribes.membership.StaticMember"
>> port="4000"
>> securePort="-1" host="10.154.0.167"  uniqueId="{10,154,0,167}"/> 
>>           </Interceptor>  
>>        
>>         </Channel>  
>>         <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
>> filter=""/>  
>>         <Valve
>> className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>  
>>         <ClusterListener
>> className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>  
>>         <ClusterListener
>> className="org.apache.catalina.ha.session.ClusterSessionListener"/> 
>> <Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer"
>>                     tempDir="/tmp/war-temp/"
>>                     deployDir="/tmp/war-deploy/"
>>                     watchDir="/tmp/war-listen/"
>>                     watchEnabled="false"/>
>>
>>       </Cluster>  
>>      
>>       <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
>> resourceName="UserDatabase"/>  
>>
>>       <Host name="localhost" appBase="webapps" unpackWARs="true"
>> autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> 
>>        
>>       </Host> 
>> #server2 conf
>> <Cluster channelSendOptions="8"
>> className="org.apache.catalina.ha.tcp.SimpleTcpCluster"> 
>>         <Manager className="org.apache.catalina.ha.session.DeltaManager"
>> expireSessionsOnShutdown="false" domainReplication="true"
>> notifyListenersOnReplication="true"/>  
>>         <Channel
>> className="org.apache.catalina.tribes.group.GroupChannel"> 
>>           <Receiver address="10.154.0.167" autoBind="0"
>> className="org.apache.catalina.tribes.transport.nio.NioReceiver"
>> maxThreads="6" port="4000" selectorTimeout="5000"/>  
>>           <Sender
>> className="org.apache.catalina.tribes.transport.ReplicationTransmitter"> 
>>             <Transport
>> className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/> 
>>           </Sender>  
>>           <Interceptor
>> className="org.apache.geronimo.tomcat.interceptor.DisableMcastInterceptor"/>  
>>           <Interceptor
>> className="org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor"
>> staticOnly="true"/>  
>>           <Interceptor
>> className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>  
>>    <Interceptor
>> className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/> 
>>           <Interceptor
>> className="org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor"> 
>>                        <Member
>> className="org.apache.catalina.tribes.membership.StaticMember"
>> port="4000" 
>> host="10.154.0.166"  uniqueId="{10,154,0,166}"/>  
>>         
>>           </Interceptor>  
>>        
>>         </Channel>  
>>         <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
>> filter=""/>  
>>         <Valve
>> className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>  
>>         <ClusterListener
>> className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>  
>>         <ClusterListener
>> className="org.apache.catalina.ha.session.ClusterSessionListener"/> 
>> <Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer"
>>                     tempDir="/tmp/war-temp/"
>>                     deployDir="/tmp/war-deploy/"
>>                     watchDir="/tmp/war-listen/"
>>                     watchEnabled="false"/>
>>       </Cluster>  
>>
>>       <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
>> resourceName="UserDatabase"/>  
>>
>>       <Host name="localhost" appBase="webapps" unpackWARs="true"
>> autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> 
>>       
>>       </Host> 
>>     </Engine> 
>>   </Service> 
>>
>>
>>
>>
>>   
> 
> 
> ---------------------------------------------------------------------
> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/tomcat-6.0.18-static-cluster-confugation-tp20343212p20363667.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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.0.18 static cluster confugation

Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
inline

killbulle wrote:
> Hi filip,
> herre is a more detailled post(sorry for the first one)
>
> i have few problem in fact
> i cannot see the jmx cluster Mbean but the valve replication valve is here ,
>   
there is no formal jmx mbean for the cluster yet
> is this normal ?
> the FarmDeployer doesn't work(still experimetal in tomcat 6)
>   
farm deployer was working in 5.0, broke in 5.5 and never fixed in 6.
the idea behind a farm deployer can easily be accomplished in many other 
ways
> Regards Marc
>
>
>
> here my server log
> jvm 1    | 6 nov. 2008 12:13:34
> org.apache.tomcat.util.digester.SetPropertiesRule begin
> jvm 1    | ATTENTION:
> [SetPropertiesRule]{Server/Service/Engine/Cluster/Channel/Interceptor/Member}
> Setting property 'uniqueId' to '{10,154,0,167}' did not find a matching
> property.
> jvm 1    | 6 nov. 2008 12:13:34
> org.apache.catalina.core.AprLifecycleListener init
> jvm 1    | INFO: The APR based Apache Tomcat Native library which allows
> optimal performance in production environments was not found on the
> java.library.path: ../lib
> jvm 1    | 6 nov. 2008 12:13:34 org.apache.coyote.http11.Http11Protocol init
> jvm 1    | INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
> jvm 1    | 6 nov. 2008 12:13:34 org.apache.catalina.startup.Catalina load
> jvm 1    | INFO: Initialization processed in 1545 ms
> jvm 1    | 6 nov. 2008 12:13:34 org.apache.catalina.core.StandardService
> start
> jvm 1    | INFO: D�marrage du service Catalina
> jvm 1    | 6 nov. 2008 12:13:34 org.apache.catalina.core.StandardEngine
> start
> jvm 1    | INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
> jvm 1    | 6 nov. 2008 12:13:34 org.apache.catalina.ha.tcp.SimpleTcpCluster
> start
> jvm 1    | INFO: Cluster is about to start
> jvm 1    | 6 nov. 2008 12:13:34
> org.apache.catalina.tribes.transport.ReceiverBase bind
> jvm 1    | INFO: Receiver Server Socket bound to:/10.154.0.166:4000
> jvm 1    | 6 nov. 2008 12:13:34
> org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
> jvm 1    | INFO: Setting cluster mcast soTimeout to 500
> jvm 1    | 6 nov. 2008 12:13:34
> org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
> jvm 1    | INFO: Sleeping for 1000 milliseconds to establish cluster
> membership, start level:4
> jvm 1    | 6 nov. 2008 12:13:35
> org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
> jvm 1    | INFO: Done sleeping, membership established, start level:4
> jvm 1    | 6 nov. 2008 12:13:35
> org.apache.catalina.ha.deploy.FarmWarDeployer start
> jvm 1    | GRAVE: FarmWarDeployer can only work as host cluster subelement!
> jvm 1    | 6 nov. 2008 12:13:37
> org.apache.catalina.ha.session.JvmRouteBinderValve start
> jvm 1    | INFO: JvmRouteBinderValve started
> jvm 1    | 6 nov. 2008 12:13:37 org.apache.coyote.http11.Http11Protocol
> start
> jvm 1    | INFO: D�marrage de Coyote HTTP/1.1 sur http-8080
> jvm 1    | 6 nov. 2008 12:13:37 org.apache.jk.common.ChannelSocket init
> jvm 1    | INFO: JK: ajp13 listening on /0.0.0.0:8010
> jvm 1    | 6 nov. 2008 12:13:37 org.apache.jk.server.JkMain start
> jvm 1    | INFO: Jk running ID=0 time=0/154  config=null
> jvm 1    | 6 nov. 2008 12:13:37 org.apache.catalina.startup.Catalina start
> jvm 1    | INFO: Server startup in 3432 ms
> jvm 1    | 6 nov. 2008 12:13:55 org.apache.catalina.tribes.io.BufferPool
> getBufferPool
> jvm 1    | INFO: Created a buffer pool with max size:104857600 bytes of
> type:org.apache.catalina.tribes.io.BufferPool15Impl
> jvm 1    | 6 nov. 2008 12:13:55
> org.apache.catalina.tribes.group.interceptors.TcpFailureDetector
> performBasicCheck
> jvm 1    | ATTENTION: Member added, even though we werent
> notified:org.apache.catalina.tribes.membership.MemberImpl[tcp://10.154.0.167:4000,10.154.0.167,4000,
> alive=0,id={0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }, payload={}, command={},
> domain={}, ]
> jvm 1    | 6 nov. 2008 12:13:55 org.apache.catalina.ha.tcp.SimpleTcpCluster
> memberAdded
> jvm 1    | INFO: Replication member
> added:org.apache.catalina.tribes.membership.MemberImpl[tcp://10.154.0.167:4000,10.154.0.167,4000,
> alive=0,id={0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }, payload={}, command={},
> domain={}, ]
> jvm 1    | 6 nov. 2008 12:14:00
> org.apache.catalina.ha.session.ClusterSessionListener messageReceived
> jvm 1    | ATTENTION: Context manager doesn't
> exist:localhost#/jmx.browser-1.2.0
>
>
>
> #server1 cinf 
> Cluster channelSendOptions="8"
> className="org.apache.catalina.ha.tcp.SimpleTcpCluster"> 
>         <Manager className="org.apache.catalina.ha.session.DeltaManager"
> expireSessionsOnShutdown="false" domainReplication="true"
> notifyListenersOnReplication="true"/>  
>         <Channel className="org.apache.catalina.tribes.group.GroupChannel"> 
>           <Receiver address="10.154.0.166" autoBind="0"
> className="org.apache.catalina.tribes.transport.nio.NioReceiver"
> maxThreads="6" port="4000" selectorTimeout="5000"/>  
>           <Sender
> className="org.apache.catalina.tribes.transport.ReplicationTransmitter"> 
>             <Transport
> className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/> 
>           </Sender>  
>           <Interceptor
> className="org.apache.geronimo.tomcat.interceptor.DisableMcastInterceptor"/>  
>           <Interceptor
> className="org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor"
> staticOnly="true"/>  
>           <Interceptor
> className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>  
>    <Interceptor
> className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/> 
>           <Interceptor
> className="org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor"> 
>               
>             <Member
> className="org.apache.catalina.tribes.membership.StaticMember" port="4000"
> securePort="-1" host="10.154.0.167"  uniqueId="{10,154,0,167}"/> 
>           </Interceptor>  
>        
>         </Channel>  
>         <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
> filter=""/>  
>         <Valve
> className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>  
>         <ClusterListener
> className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>  
>         <ClusterListener
> className="org.apache.catalina.ha.session.ClusterSessionListener"/> 
> <Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer"
>                     tempDir="/tmp/war-temp/"
>                     deployDir="/tmp/war-deploy/"
>                     watchDir="/tmp/war-listen/"
>                     watchEnabled="false"/>
>
>       </Cluster>  
>      
>       <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
> resourceName="UserDatabase"/>  
>
>       <Host name="localhost" appBase="webapps" unpackWARs="true"
> autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> 
>        
>       </Host> 
> #server2 conf
> <Cluster channelSendOptions="8"
> className="org.apache.catalina.ha.tcp.SimpleTcpCluster"> 
>         <Manager className="org.apache.catalina.ha.session.DeltaManager"
> expireSessionsOnShutdown="false" domainReplication="true"
> notifyListenersOnReplication="true"/>  
>         <Channel className="org.apache.catalina.tribes.group.GroupChannel"> 
>           <Receiver address="10.154.0.167" autoBind="0"
> className="org.apache.catalina.tribes.transport.nio.NioReceiver"
> maxThreads="6" port="4000" selectorTimeout="5000"/>  
>           <Sender
> className="org.apache.catalina.tribes.transport.ReplicationTransmitter"> 
>             <Transport
> className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/> 
>           </Sender>  
>           <Interceptor
> className="org.apache.geronimo.tomcat.interceptor.DisableMcastInterceptor"/>  
>           <Interceptor
> className="org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor"
> staticOnly="true"/>  
>           <Interceptor
> className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>  
>    <Interceptor
> className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/> 
>           <Interceptor
> className="org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor"> 
>                        <Member
> className="org.apache.catalina.tribes.membership.StaticMember" port="4000" 
> host="10.154.0.166"  uniqueId="{10,154,0,166}"/>  
>         
>           </Interceptor>  
>        
>         </Channel>  
>         <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
> filter=""/>  
>         <Valve
> className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>  
>         <ClusterListener
> className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>  
>         <ClusterListener
> className="org.apache.catalina.ha.session.ClusterSessionListener"/> 
> <Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer"
>                     tempDir="/tmp/war-temp/"
>                     deployDir="/tmp/war-deploy/"
>                     watchDir="/tmp/war-listen/"
>                     watchEnabled="false"/>
>       </Cluster>  
>
>       <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
> resourceName="UserDatabase"/>  
>
>       <Host name="localhost" appBase="webapps" unpackWARs="true"
> autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> 
>       
>       </Host> 
>     </Engine> 
>   </Service> 
>
>
>
>
>   


---------------------------------------------------------------------
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.0.18 static cluster confugation

Posted by killbulle <ma...@gmail.com>.
Hi filip,
herre is a more detailled post(sorry for the first one)

i have few problem in fact
i cannot see the jmx cluster Mbean but the valve replication valve is here ,
is this normal ?
the FarmDeployer doesn't work(still experimetal in tomcat 6)

Regards Marc



here my server log
jvm 1    | 6 nov. 2008 12:13:34
org.apache.tomcat.util.digester.SetPropertiesRule begin
jvm 1    | ATTENTION:
[SetPropertiesRule]{Server/Service/Engine/Cluster/Channel/Interceptor/Member}
Setting property 'uniqueId' to '{10,154,0,167}' did not find a matching
property.
jvm 1    | 6 nov. 2008 12:13:34
org.apache.catalina.core.AprLifecycleListener init
jvm 1    | INFO: The APR based Apache Tomcat Native library which allows
optimal performance in production environments was not found on the
java.library.path: ../lib
jvm 1    | 6 nov. 2008 12:13:34 org.apache.coyote.http11.Http11Protocol init
jvm 1    | INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
jvm 1    | 6 nov. 2008 12:13:34 org.apache.catalina.startup.Catalina load
jvm 1    | INFO: Initialization processed in 1545 ms
jvm 1    | 6 nov. 2008 12:13:34 org.apache.catalina.core.StandardService
start
jvm 1    | INFO: D�marrage du service Catalina
jvm 1    | 6 nov. 2008 12:13:34 org.apache.catalina.core.StandardEngine
start
jvm 1    | INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
jvm 1    | 6 nov. 2008 12:13:34 org.apache.catalina.ha.tcp.SimpleTcpCluster
start
jvm 1    | INFO: Cluster is about to start
jvm 1    | 6 nov. 2008 12:13:34
org.apache.catalina.tribes.transport.ReceiverBase bind
jvm 1    | INFO: Receiver Server Socket bound to:/10.154.0.166:4000
jvm 1    | 6 nov. 2008 12:13:34
org.apache.catalina.tribes.membership.McastServiceImpl setupSocket
jvm 1    | INFO: Setting cluster mcast soTimeout to 500
jvm 1    | 6 nov. 2008 12:13:34
org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
jvm 1    | INFO: Sleeping for 1000 milliseconds to establish cluster
membership, start level:4
jvm 1    | 6 nov. 2008 12:13:35
org.apache.catalina.tribes.membership.McastServiceImpl waitForMembers
jvm 1    | INFO: Done sleeping, membership established, start level:4
jvm 1    | 6 nov. 2008 12:13:35
org.apache.catalina.ha.deploy.FarmWarDeployer start
jvm 1    | GRAVE: FarmWarDeployer can only work as host cluster subelement!
jvm 1    | 6 nov. 2008 12:13:37
org.apache.catalina.ha.session.JvmRouteBinderValve start
jvm 1    | INFO: JvmRouteBinderValve started
jvm 1    | 6 nov. 2008 12:13:37 org.apache.coyote.http11.Http11Protocol
start
jvm 1    | INFO: D�marrage de Coyote HTTP/1.1 sur http-8080
jvm 1    | 6 nov. 2008 12:13:37 org.apache.jk.common.ChannelSocket init
jvm 1    | INFO: JK: ajp13 listening on /0.0.0.0:8010
jvm 1    | 6 nov. 2008 12:13:37 org.apache.jk.server.JkMain start
jvm 1    | INFO: Jk running ID=0 time=0/154  config=null
jvm 1    | 6 nov. 2008 12:13:37 org.apache.catalina.startup.Catalina start
jvm 1    | INFO: Server startup in 3432 ms
jvm 1    | 6 nov. 2008 12:13:55 org.apache.catalina.tribes.io.BufferPool
getBufferPool
jvm 1    | INFO: Created a buffer pool with max size:104857600 bytes of
type:org.apache.catalina.tribes.io.BufferPool15Impl
jvm 1    | 6 nov. 2008 12:13:55
org.apache.catalina.tribes.group.interceptors.TcpFailureDetector
performBasicCheck
jvm 1    | ATTENTION: Member added, even though we werent
notified:org.apache.catalina.tribes.membership.MemberImpl[tcp://10.154.0.167:4000,10.154.0.167,4000,
alive=0,id={0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }, payload={}, command={},
domain={}, ]
jvm 1    | 6 nov. 2008 12:13:55 org.apache.catalina.ha.tcp.SimpleTcpCluster
memberAdded
jvm 1    | INFO: Replication member
added:org.apache.catalina.tribes.membership.MemberImpl[tcp://10.154.0.167:4000,10.154.0.167,4000,
alive=0,id={0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }, payload={}, command={},
domain={}, ]
jvm 1    | 6 nov. 2008 12:14:00
org.apache.catalina.ha.session.ClusterSessionListener messageReceived
jvm 1    | ATTENTION: Context manager doesn't
exist:localhost#/jmx.browser-1.2.0



#server1 cinf 
Cluster channelSendOptions="8"
className="org.apache.catalina.ha.tcp.SimpleTcpCluster"> 
        <Manager className="org.apache.catalina.ha.session.DeltaManager"
expireSessionsOnShutdown="false" domainReplication="true"
notifyListenersOnReplication="true"/>  
        <Channel className="org.apache.catalina.tribes.group.GroupChannel"> 
          <Receiver address="10.154.0.166" autoBind="0"
className="org.apache.catalina.tribes.transport.nio.NioReceiver"
maxThreads="6" port="4000" selectorTimeout="5000"/>  
          <Sender
className="org.apache.catalina.tribes.transport.ReplicationTransmitter"> 
            <Transport
className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/> 
          </Sender>  
          <Interceptor
className="org.apache.geronimo.tomcat.interceptor.DisableMcastInterceptor"/>  
          <Interceptor
className="org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor"
staticOnly="true"/>  
          <Interceptor
className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>  
   <Interceptor
className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/> 
          <Interceptor
className="org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor"> 
              
            <Member
className="org.apache.catalina.tribes.membership.StaticMember" port="4000"
securePort="-1" host="10.154.0.167"  uniqueId="{10,154,0,167}"/> 
          </Interceptor>  
       
        </Channel>  
        <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
filter=""/>  
        <Valve
className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>  
        <ClusterListener
className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>  
        <ClusterListener
className="org.apache.catalina.ha.session.ClusterSessionListener"/> 
<Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer"
                    tempDir="/tmp/war-temp/"
                    deployDir="/tmp/war-deploy/"
                    watchDir="/tmp/war-listen/"
                    watchEnabled="false"/>

      </Cluster>  
     
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>  

      <Host name="localhost" appBase="webapps" unpackWARs="true"
autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> 
       
      </Host> 
#server2 conf
<Cluster channelSendOptions="8"
className="org.apache.catalina.ha.tcp.SimpleTcpCluster"> 
        <Manager className="org.apache.catalina.ha.session.DeltaManager"
expireSessionsOnShutdown="false" domainReplication="true"
notifyListenersOnReplication="true"/>  
        <Channel className="org.apache.catalina.tribes.group.GroupChannel"> 
          <Receiver address="10.154.0.167" autoBind="0"
className="org.apache.catalina.tribes.transport.nio.NioReceiver"
maxThreads="6" port="4000" selectorTimeout="5000"/>  
          <Sender
className="org.apache.catalina.tribes.transport.ReplicationTransmitter"> 
            <Transport
className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/> 
          </Sender>  
          <Interceptor
className="org.apache.geronimo.tomcat.interceptor.DisableMcastInterceptor"/>  
          <Interceptor
className="org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor"
staticOnly="true"/>  
          <Interceptor
className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>  
   <Interceptor
className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/> 
          <Interceptor
className="org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor"> 
                       <Member
className="org.apache.catalina.tribes.membership.StaticMember" port="4000" 
host="10.154.0.166"  uniqueId="{10,154,0,166}"/>  
        
          </Interceptor>  
       
        </Channel>  
        <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
filter=""/>  
        <Valve
className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>  
        <ClusterListener
className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>  
        <ClusterListener
className="org.apache.catalina.ha.session.ClusterSessionListener"/> 
<Deployer className="org.apache.catalina.ha.deploy.FarmWarDeployer"
                    tempDir="/tmp/war-temp/"
                    deployDir="/tmp/war-deploy/"
                    watchDir="/tmp/war-listen/"
                    watchEnabled="false"/>
      </Cluster>  

      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>  

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




-- 
View this message in context: http://www.nabble.com/tomcat-6.0.18-static-cluster-confugation-tp20343212p20359302.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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.0.18 static cluster confugation

Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
what do your logs say?

Filip

killbulle wrote:
> Hi , i'am tring to configurer a static member ship tomcat 6 cluster(i can't
> use multicat)
>
> but i'am not confident in the configuration
> here is may configuration
> for the cluster
> Tomcat start but i cannot see JMX cluster bean
> does sombedody have a sample config for a two machine static cluster
> regards
> Marc
>
> <Engine name="Catalina" defaultHost="localhost" jvmRoute="tomcat2"> 
>       <!--
> 				For clustering, please take a look at documentation at:
> 				/docs/cluster-howto.html (simple how to) /docs/config/cluster.html
> 				(reference documentation)
> 			-->  
>       <Cluster channelSendOptions="8"
> className="org.apache.catalina.ha.tcp.SimpleTcpCluster"> 
>         <Manager className="org.apache.catalina.ha.session.DeltaManager"
> expireSessionsOnShutdown="false" domainReplication="true"
> notifyListenersOnReplication="true"/>  
>         <Channel className="org.apache.catalina.tribes.group.GroupChannel"> 
>           <Receiver address="localhost" autoBind="100"
> className="org.apache.catalina.tribes.transport.nio.NioReceiver"
> maxThreads="6" port="4000" selectorTimeout="5000"/>  
>           <Sender
> className="org.apache.catalina.tribes.transport.ReplicationTransmitter"> 
>             <Transport
> className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/> 
>           </Sender>  
>           <Interceptor
> className="org.apache.geronimo.tomcat.interceptor.DisableMcastInterceptor"/>  
>           <Interceptor
> className="org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor"
> staticOnly="true"/>  
>           <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="4000" 
> host="10.154.0.166"  uniqueId="{10,154,0,166}"/>  
>             <Member
> className="org.apache.catalina.tribes.membership.StaticMember" port="4000"
> host="10.154.0.167"  uniqueId="{10,154,0,167}"/> s
>           </Interceptor>  
>           <Interceptor
> className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/> 
>         </Channel>  
>         <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
> filter=""/>  
>         <Valve
> className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>  
>         <ClusterListener
> className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>  
>         <ClusterListener
> className="org.apache.catalina.ha.session.ClusterSessionListener"/> 
>       </Cluster>  
>    
>       <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
> resourceName="UserDatabase"/>  
>
>       <Host name="localhost" appBase="webapps" unpackWARs="true"
> autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> 
> --> 
>       </Host> 
>     </Engine> 
>
>   


---------------------------------------------------------------------
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