Hello Martin,

If you use the default tomcat logging [1] probably setting

org.apache.catalina.ha.level = FINE or FINEST

in your $CATALINA_BASE/conf/logging.properties will give you the
information you need.

Hope it helps,

Luis

[1] https://tomcat.apache.org/tomcat-7.0-doc/logging.html








2018-05-03 16:17 GMT+02:00 Martin Knoblauch <kn...@knobisoft.de>:

> Hi,
>
>  one question on Tomcat HA clustering. Is there a way (e.g. a log file
> pattern to look for) to find out that a sessions activity has actually been
> transfered to another cluster node? We are operating a productive
> environment with 6 clustered TC processes and we would like to know how
> oftenthe clustering actually kicks in.
>
>  We are on Tomcat 7. Please don't tell me to upgrade, but the productive
> version of the software is not certified with anything newer.
>
>  Here is the cluster part of the configuration:
>
>         <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
>                  channelSendOptions="8">
>
>           <Manager className="org.apache.catalina.ha.session.DeltaManager"
>                    expireSessionsOnShutdown="false"
>                    notifyListenersOnReplication="true"/>
>
>           <Channel
> className="org.apache.catalina.tribes.group.GroupChannel">
>             <Membership
> className="org.apache.catalina.tribes.membership.McastService"
>                         address="228.0.0.4"
>                         bind="real hostname censored"
>                         port="45564"
>                         frequency="1000"
>                         dropTime="30000"/>
>             <Receiver
> className="org.apache.catalina.tribes.transport.nio.NioReceiver"
>                       address="auto"
>                       port="4001"
>                       autoBind="100"
>                       selectorTimeout="5000"
>                       maxThreads="6"/>
>
>             <Sender
> className="org.apache.catalina.tribes.transport.ReplicationTransmitter" >
>               <Transport
> className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"
> timeout="60000"/>
>             </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"
> interval="100000"/>
>           </Channel>
>
>
>             <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
>
> filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.
> *\.css;.*\.txt;"/>
>
>             <Deployer
> className="org.apache.catalina.ha.deploy.FarmWarDeployer"
>                       tempDir="/tmp/war-temp/"
>                       deployDir="/tmp/war-deploy/"
>                       watchDir="/tmp/war-listen/"
>                       watchEnabled="false"/>
>
>             <Valve
> className="org.apache.catalina.ha.session.JvmRouteBinderValve"
>                enabled="true" sessionIdAttribute="takeoverSessionid"/>
>             <ClusterListener
> className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"
> />
>             <ClusterListener
> className="org.apache.catalina.ha.session.ClusterSessionListener"/>
>         </Cluster>
>
> Cheers
> Martin
> --
> ------------------------------------------------------
> Martin Knoblauch
> email: k n o b i AT knobisoft DOT de
> www: http://www.knobisoft.de
>



-- 

"Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better."

- Samuel Beckett

Reply via email to