Re: Question on Tomcat clustering
Hi Louis, thanks. Yeah, currently the level is "INFO". I am a bit afraid of FINE/FINEST, fearing an overflow of messages that are to detailed. I had hoped for something on a higher severity - the event I am looking for is in the end an exception from the normal work. something noteworthy, not to be hidden on a Debug level. But yes, worth a try. Or maybe I just look at the source Happy weekend Martin On Thu, May 3, 2018 at 7:01 PM, Luis Rodríguez Fernández <uo67...@gmail.com> wrote: > 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: > > > > > channelSendOptions="8"> > > > >>expireSessionsOnShutdown="false" > >notifyListenersOnReplication="true"/> > > > >> className="org.apache.catalina.tribes.group.GroupChannel"> > > > className="org.apache.catalina.tribes.membership.McastService" > > address="228.0.0.4" > > bind="real hostname censored" > > port="45564" > > frequency="1000" > > dropTime="3"/> > > > className="org.apache.catalina.tribes.transport.nio.NioReceiver" > > address="auto" > > port="4001" > > autoBind="100" > > selectorTimeout="5000" > > maxThreads="6"/> > > > > > className="org.apache.catalina.tribes.transport.ReplicationTransmitter" > > > >> className="org.apache.catalina.tribes.transport.nio. > PooledParallelSender" > > timeout="6"/> > > > > > className="org.apache.catalina.tribes.group.interceptors. > > TcpFailureDetector"/> > > > className="org.apache.catalina.tribes.group.interceptors. > > MessageDispatch15Interceptor"/> > > > className="org.apache.catalina.tribes.group.interceptors. > > ThroughputInterceptor" > > interval="10"/> > > > > > > > > > > > filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;. > > *\.css;.*\.txt;"/> > > > > > className="org.apache.catalina.ha.deploy.FarmWarDeployer" > > tempDir="/tmp/war-temp/" > > deployDir="/tmp/war-deploy/" > > watchDir="/tmp/war-listen/" > > watchEnabled="false"/> > > > > > className="org.apache.catalina.ha.session.JvmRouteBinderValve" > >enabled="true" sessionIdAttribute="takeoverSessionid"/> > > > className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListene > r" > > /> > > > className="org.apache.catalina.ha.session.ClusterSessionListener"/> > > > > > > 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 > -- -- Martin Knoblauch email: k n o b i AT knobisoft DOT de www: http://www.knobisoft.de
Re: Question on Tomcat clustering
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: > > channelSendOptions="8"> > > expireSessionsOnShutdown="false" >notifyListenersOnReplication="true"/> > >className="org.apache.catalina.tribes.group.GroupChannel"> > className="org.apache.catalina.tribes.membership.McastService" > address="228.0.0.4" > bind="real hostname censored" > port="45564" > frequency="1000" > dropTime="3"/> > className="org.apache.catalina.tribes.transport.nio.NioReceiver" > address="auto" > port="4001" > autoBind="100" > selectorTimeout="5000" > maxThreads="6"/> > > className="org.apache.catalina.tribes.transport.ReplicationTransmitter" > >className="org.apache.catalina.tribes.transport.nio.PooledParallelSender" > timeout="6"/> > > className="org.apache.catalina.tribes.group.interceptors. > TcpFailureDetector"/> > className="org.apache.catalina.tribes.group.interceptors. > MessageDispatch15Interceptor"/> > className="org.apache.catalina.tribes.group.interceptors. > ThroughputInterceptor" > interval="10"/> > > > > > filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;. > *\.css;.*\.txt;"/> > > className="org.apache.catalina.ha.deploy.FarmWarDeployer" > tempDir="/tmp/war-temp/" > deployDir="/tmp/war-deploy/" > watchDir="/tmp/war-listen/" > watchEnabled="false"/> > > className="org.apache.catalina.ha.session.JvmRouteBinderValve" >enabled="true" sessionIdAttribute="takeoverSessionid"/> > className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener" > /> > className="org.apache.catalina.ha.session.ClusterSessionListener"/> > > > 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
Question on Tomcat clustering
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: Cheers Martin -- -- Martin Knoblauch email: k n o b i AT knobisoft DOT de www: http://www.knobisoft.de
Question On Tomcat Clustering with Session Persistence
Hello, We have currently started using tomcat 7.0 in our development environment .Following are the configuration Details : Tomcat Version : 7.0.55 Java Version :1.7.0.67 We have a requirement to implement clustering for one of our applications . The same application's active but idle sessions need to be persisted to a JDBC store . We have a small cluster of just two nodes so as recommended we need to use DeltaManager but for session persistence we need to use PersistentManager . PersistentManager is not recommended for clustering as the session data is not swapped out in real time .As far as I understand , we can only use one of the manager configurations . Can you please let me know if it is possible to achieve session persistence along with clustering , If yes how can we achieve the same ? Thanks Smitha