Hi,

As multicast seems to be giving problems sometimes in our network, we're trying 
to also setup static
membership. Note that we want the multicast membership service to be still 
functioning.

To do this, I configured the following in server.xml (simplified for brevity) 
on all nodes the same, as follows:

        <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster">
            <Channel className="org.apache.catalina.tribes.group.GroupChannel">
                <Membership 
className="org.apache.catalina.tribes.membership.McastService" 
address="228.0.0.8" port="48099" />
                <Receiver 
className="org.apache.catalina.tribes.transport.nio.NioReceiver"
                          address="auto"
                          port="5678"
                          autoBind="100"
                          selectorTimeout="5000"
                          maxThreads="6"/>
                <Interceptor 
className="org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor">
                    <Member 
className="org.apache.catalina.tribes.membership.StaticMember" port="5678" 
securePort="-1" host="hostname01.domain.nl" domain="publish-cluster" 
uniqueId="{10,0,10,109}/>
                    <Member 
className="org.apache.catalina.tribes.membership.StaticMember" port="5678" 
securePort="-1" host="hostname02.domain.nl" domain="publish-cluster" 
uniqueId="{10,0,10,227}/>
                    <Member 
className="org.apache.catalina.tribes.membership.StaticMember" port="5678" 
securePort="-1" host="hostname03.domain.nl" domain="publish-cluster" 
uniqueId="{10,0,10,234}/>
                </Interceptor>
            </Channel>
        </Cluster>

Now I was wondering 2 things:
- if a Tomcat node restarts, will it be possible that it is trying to receive 
sessions from itself, rather than one or more of the other nodes? Or: should I 
configure a different server.xml on each node (its own member left out)?
- if I start Tomcat, I see in catalina.out:
                "WARNING: 
[SetPropertiesRule]{Server/Service/Engine/Cluster/Channel/Interceptor/Member} 
Setting property 'uniqueId' to '{10,0,10,227}' did not find a matching 
property."
        -> I removed uniqueId-attribute, but will this cause any possible 
problems?

Regards,
Willem Fibbe

-- 
Willem Fibbe
Teamleider Systeembeheer
Realworks BV
A: W.G. Plein 516, 1054 SJ Amsterdam
T: +31 20 4 120 120
F: +31 20 4 120 127

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

Reply via email to