ok, let me take a look, I will get back to you tomorrow or Wed

Filip

SANCHEZ, Michel wrote:
I'am not shure that i understand well.

What i whould like to have is session replication on a two members cluster with 
unicast heartbeat.
With DisableMcastInterceptor i have no more multicast but no more session 
replication. It looks like cluster has no members
Here is my configuration :

Server I :
                                <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="auto" 
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.catalina.tribes.group.interceptors.TcpFailureDetector" />
                                                <Interceptor
                                                        
className="org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor">
                                                        <Member
                                                                
className="org.apache.catalina.tribes.membership.StaticMember"
                                                                port="4001" 
securePort="-1" host="localhost"
                                                                domain="test-domain" 
uniqueId="{0,0,0,0,0,0,0,0,0,0}" />

                                                </Interceptor>
                                                <Interceptor
                                                        
className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"
 />

                                                <Interceptor
                                                        
className="org.apache.catalina.ha.tcp.DisableMcastInterceptor" />
                                                        
                                        </Channel>

                                        <Valve
                                                
className="org.apache.catalina.ha.tcp.ReplicationValve" filter="" />
                                        <Valve
                                                
className="org.apache.catalina.ha.session.JvmRouteBinderValve" />

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

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

Server II :
                                <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="auto" 
autoBind="100"
                                                        
className="org.apache.catalina.tribes.transport.nio.NioReceiver"
                                                        maxThreads="6" port="4001" 
selectorTimeout="5000" />

                                                <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="4000" 
securePort="-1" host="localhost"
                                                                domain="test-domain" 
uniqueId="{0,1,2,3,4,5,6,7,8,9}" />
                                                </Interceptor>
                                                <Interceptor
                                                        
className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"
 />

                                                <Interceptor
                                                        
className="org.apache.catalina.ha.tcp.DisableMcastInterceptor" />

                                        </Channel>

                                        <Valve
                                                
className="org.apache.catalina.ha.tcp.ReplicationValve" filter="" />
                                        <Valve
                                                
className="org.apache.catalina.ha.session.JvmRouteBinderValve" />

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

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

Michel.



-----Message d'origine-----
De : Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
Envoyé : lundi 29 octobre 2007 16:44
À : Tomcat Users List
Objet : Re: Tomcat 6 clustering without mulicast


yes, that's what you wanted. Then you have to add the static membership interceptors to add static members since you don't have multicast heartbeats anymore

Filip

SANCHEZ, Michel wrote:
Thanks Filip

I added the DisableMcastInterceptor in the cluster configuration wihtout success. The multicast heartbeat is stopped but there is no more member in the cluster.
DeltaManager::start() loggs Starting clustering manager at ...
but DeltaManager::getAllClusterSessions()loggs : skipping state transfer. No members active in cluster group. I carry on investigating ....

Michel.

-----Message d'origine-----
De : Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 26 octobre 2007 19:13
À : Tomcat Users List
Objet : Re: Tomcat 6 clustering without mulicast


it is absolutely possible, but now when you mention it, the ability to not start the multicasting piece has not been exposed. The rest has.

But there is a simple workaround for you, you can create an interceptor, that traps the start call, and removes the option to start multicasting

it could look like this

package org.apache.catalina.ha.tcp;

import org.apache.catalina.tribes.group.ChannelInterceptorBase;
import org.apache.catalina.tribes.ChannelException;
import org.apache.catalina.tribes.Channel;

public class DisableMcastInterceptor extends ChannelInterceptorBase {
    public DisableMcastInterceptor() {
        super();
    }

    public void start(int svc) throws ChannelException {
        svc = (svc & (~Channel.MBR_TX_SEQ));
        super.start(svc);
    }
}

and then, you can have the static membership interceptor to hearbeats over TCP instead.

Filip

SANCHEZ, Michel wrote:
Hi all

I would like to know if it is possible to do tomcat 6 clustering  without 
multicast IP.
In other words by defining a full static cluster in which all the heartbeat 
stuff is done by unicast.

If yes please coluld you tel me how to configure it.
I tried a SimpleTcpCluster without McastService declaration and with two 
StaticMemberShipInterceptors but my nodes always sends multicast messages on 
default address  228.0.0.4.45564

Thanks for help.
Michel



This e-mail is intended only for the above addressee. It may contain privileged 
information.
If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be accessed by 
someone other than the recipient, for system management and security reasons. 
This access is controlled under Regulation of security reasons.
This access is controlled under Regulation of Investigatory Powers Act 2000, 
Lawful Business Practises.



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This mail has originated outside your organization, either from an external 
partner or the Global Internet.
Keep this in mind if you answer this message.



This e-mail is intended only for the above addressee. It may contain privileged 
information.
If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be accessed by 
someone other than the recipient, for system management and security reasons. 
This access is controlled under Regulation of security reasons.
This access is controlled under Regulation of Investigatory Powers Act 2000, 
Lawful Business Practises.



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This mail has originated outside your organization, either from an external 
partner or the Global Internet.
Keep this in mind if you answer this message.



This e-mail is intended only for the above addressee. It may contain privileged 
information.
If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be accessed by 
someone other than the recipient, for system management and security reasons. 
This access is controlled under Regulation of security reasons.
This access is controlled under Regulation of Investigatory Powers Act 2000, 
Lawful Business Practises.



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to