You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dhaval Jaiswal <dh...@via.com> on 2013/02/22 19:27:08 UTC

Session Replication

I am creating cluster of 3 tomcats (Version 6) for session replication with
the following changes in server.xml

<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
channelSendOptions="6"/>
       <Manager className="org.apache.catalina.ha.session.DeltaManager"
expireSessionsOnShutdown="false"
                   notifyListenersOnReplication="true" mapSendOptions="6"/>
            <Channel
className="org.apache.catalina.tribes.group.GroupChannel">
             <Membership
className="org.apache.catalina.tribes.membership.McastService"
                        address="228.0.0.4"
                        port="45564"
                        frequency="500"
                        dropTime="10000"/>
             <Receiver
className="org.apache.catalina.tribes.transport.nio.NioReceiver"
                      address="auto"
                      port="4000"
                      selectorTimeout="5000"
                      timeout="60000"
                      maxThreads="6"/>

             <Sender
className="org.apache.catalina.tribes.transport.ReplicationTransmitter"
timeout="60000">
               <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.MessageDispatch15Interceptor"/>
             <Interceptor
className="org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor"/>
          </Channel>
         <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"

filter=".*\.gif|.*\.js|.*\.jpeg|.*\.jpg|.*\.png|.*\.htm|.*\.html|.*\.css|.*\.txt"/>
       <ClusterListener
className="org.apache.catalina.ha.session.ClusterSessionListener"/>

Opening the multicaste address (228.0.0.4) on firewall for 3 tomcats for
port 45564 and 4000. Is it correct ?


Please let me know if there is any change required in above configurations.


--

Re: Session Replication

Posted by Manuel Fernández Panzuela <ma...@gmail.com>.
What do you need to know ?

Un abrazo


2013/2/23 Technical Support <te...@brainstalk.com>

> Hi,
>
> Im beginner in Linux. Can anyone help me develop my skills in Linux?
>
> Regards
>
> Chak Teylor
>
> On Sat, Feb 23, 2013 at 2:27 AM, Dhaval Jaiswal <dhaval.jaiswal@via.com
> >wrote:
>
> > I am creating cluster of 3 tomcats (Version 6) for session replication
> with
> > the following changes in server.xml
> >
> > <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
> > channelSendOptions="6"/>
> >        <Manager className="org.apache.catalina.ha.session.DeltaManager"
> > expireSessionsOnShutdown="false"
> >                    notifyListenersOnReplication="true"
> mapSendOptions="6"/>
> >             <Channel
> > className="org.apache.catalina.tribes.group.GroupChannel">
> >              <Membership
> > className="org.apache.catalina.tribes.membership.McastService"
> >                         address="228.0.0.4"
> >                         port="45564"
> >                         frequency="500"
> >                         dropTime="10000"/>
> >              <Receiver
> > className="org.apache.catalina.tribes.transport.nio.NioReceiver"
> >                       address="auto"
> >                       port="4000"
> >                       selectorTimeout="5000"
> >                       timeout="60000"
> >                       maxThreads="6"/>
> >
> >              <Sender
> > className="org.apache.catalina.tribes.transport.ReplicationTransmitter"
> > timeout="60000">
> >                <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.MessageDispatch15Interceptor"/>
> >              <Interceptor
> >
> >
> className="org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor"/>
> >           </Channel>
> >          <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
> >
> >
> >
> filter=".*\.gif|.*\.js|.*\.jpeg|.*\.jpg|.*\.png|.*\.htm|.*\.html|.*\.css|.*\.txt"/>
> >        <ClusterListener
> > className="org.apache.catalina.ha.session.ClusterSessionListener"/>
> >
> > Opening the multicaste address (228.0.0.4) on firewall for 3 tomcats for
> > port 45564 and 4000. Is it correct ?
> >
> >
> > Please let me know if there is any change required in above
> configurations.
> >
> >
> > --
> >
>

Re: Session Replication

Posted by Technical Support <te...@brainstalk.com>.
Hi,

Im beginner in Linux. Can anyone help me develop my skills in Linux?

Regards

Chak Teylor

On Sat, Feb 23, 2013 at 2:27 AM, Dhaval Jaiswal <dh...@via.com>wrote:

> I am creating cluster of 3 tomcats (Version 6) for session replication with
> the following changes in server.xml
>
> <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
> channelSendOptions="6"/>
>        <Manager className="org.apache.catalina.ha.session.DeltaManager"
> expireSessionsOnShutdown="false"
>                    notifyListenersOnReplication="true" mapSendOptions="6"/>
>             <Channel
> className="org.apache.catalina.tribes.group.GroupChannel">
>              <Membership
> className="org.apache.catalina.tribes.membership.McastService"
>                         address="228.0.0.4"
>                         port="45564"
>                         frequency="500"
>                         dropTime="10000"/>
>              <Receiver
> className="org.apache.catalina.tribes.transport.nio.NioReceiver"
>                       address="auto"
>                       port="4000"
>                       selectorTimeout="5000"
>                       timeout="60000"
>                       maxThreads="6"/>
>
>              <Sender
> className="org.apache.catalina.tribes.transport.ReplicationTransmitter"
> timeout="60000">
>                <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.MessageDispatch15Interceptor"/>
>              <Interceptor
>
> className="org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor"/>
>           </Channel>
>          <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
>
>
> filter=".*\.gif|.*\.js|.*\.jpeg|.*\.jpg|.*\.png|.*\.htm|.*\.html|.*\.css|.*\.txt"/>
>        <ClusterListener
> className="org.apache.catalina.ha.session.ClusterSessionListener"/>
>
> Opening the multicaste address (228.0.0.4) on firewall for 3 tomcats for
> port 45564 and 4000. Is it correct ?
>
>
> Please let me know if there is any change required in above configurations.
>
>
> --
>

Re: Session Replication

Posted by Daniel Mikusa <dm...@vmware.com>.
On Feb 22, 2013, at 1:27 PM, Dhaval Jaiswal wrote:

> I am creating cluster of 3 tomcats (Version 6) for session replication with
> the following changes in server.xml
> 
> <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
> channelSendOptions="6"/>
>       <Manager className="org.apache.catalina.ha.session.DeltaManager"
> expireSessionsOnShutdown="false"
>                   notifyListenersOnReplication="true" mapSendOptions="6"/>
>            <Channel
> className="org.apache.catalina.tribes.group.GroupChannel">
>             <Membership
> className="org.apache.catalina.tribes.membership.McastService"
>                        address="228.0.0.4"
>                        port="45564"
>                        frequency="500"
>                        dropTime="10000"/>
>             <Receiver
> className="org.apache.catalina.tribes.transport.nio.NioReceiver"
>                      address="auto"
>                      port="4000"
>                      selectorTimeout="5000"
>                      timeout="60000"
>                      maxThreads="6"/>
> 
>             <Sender
> className="org.apache.catalina.tribes.transport.ReplicationTransmitter"
> timeout="60000">
>               <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.MessageDispatch15Interceptor"/>
>             <Interceptor
> className="org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor"/>
>          </Channel>
>         <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
> 
> filter=".*\.gif|.*\.js|.*\.jpeg|.*\.jpg|.*\.png|.*\.htm|.*\.html|.*\.css|.*\.txt"/>
>       <ClusterListener
> className="org.apache.catalina.ha.session.ClusterSessionListener"/>
> 
> Opening the multicaste address (228.0.0.4) on firewall for 3 tomcats for
> port 45564 and 4000. Is it correct ?

The easiest way to check if this is correct is to simply run your Tomcat instances?  Have you tried that?

Dan

> 
> 
> Please let me know if there is any change required in above configurations.
> 
> 
> --

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