Hello,

Can someone try to explain what this Catalina.log snippet is saying in regards 
to clustering status?

It looks like to me, this machine successfully sent a session data state msg to 
the other machine in the cluster, but 60 sec later the other machine did not 
respond with with its session data state

*********************


INFO: Starting clustering manager at [##0001]
Apr 18, 2024 9:42:21 AM org.apache.catalina.ha.session.DeltaManager 
getAllClusterSessions
INFO: Manager [##0001], requesting session state from 
[org.apache.catalina.tribes.membership.MemberImpl[tcp://{127, 0, 0, 
1}:4001,{127, 0, 0, 1},4001, alive=2087779, securePort=-1, UDP Port=-1, id={-96 
81 2 46 1 32 64 76 -97 -53 -48 3 -22 122 -8 28 }, payload={}, command={}, 
domain={}]]. This operation will timeout if no session state has been received 
within [60] seconds.
18-Apr-2024 09:42:21.062 INFO 
[MessageDispatchInterceptor.MessageDispatchThread[station-Channel]1] 
org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor.report 
ThroughputInterceptor Report[
               Tx Msg:1 messages
               Sent:0.00 MiB (total)
               Sent:0.00 MiB (application)
               Time:0.00 seconds
               Tx Speed:0.15 MiB/s (total)
               Tx Speed:0.15 MiB/s (application)
               Error Msg:0
               Rx Msg:3 messages
               Rx Speed:0.00 MiB/s (since 1st msg)
               Received:0.00 MiB]
Apr 18, 2024 9:43:21 AM org.apache.catalina.ha.session.DeltaManager 
waitForSendAllSessions
SEVERE: Manager [##0001]: No session state sent at [4/18/24, 9:42 AM] received, 
timing out after [60,076] ms.
Apr 18, 2024 9:43:21 AM org.apache.catalina.ha.session.DeltaManager 
getAllClusterSessions
WARNING: Manager [##0001]: Drop message [SESSION-GET-ALL] inside 
GET_ALL_SESSIONS sync phase start date [4/18/24, 9:42 AM] message date 
[4/18/24, 9:42 AM]


*************
Any ideas why clustering is not working?

Here is how I have clustering defined 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"
                                                                                
               maxActiveSessions="4096"
                                                                                
               
sessionAttributeNameFilter="uploader_redirect|phone_tree|soundhound.campaigndata|format|employee_id|customer|customer_id|nonidentifier_call_letters|call_letters|caller_id_enabled|ivr_system|ivr_system_id|zip_code|time_zone|is_trial_customer|delete_confirmation|download_settings|clustered_admin|wall_token|employee_first_name|logged_in_user|logged_in"
                                                                                
              />

                                                                                
     <Channel className="org.apache.catalina.tribes.group.GroupChannel">
                                                                                
       <Membership 
className="org.apache.catalina.tribes.membership.McastService"
                                                                                
                   address="228.0.0.4"
                                                                                
                   port="45565"
                                                                                
                   frequency="500"
                                                                                
                   dropTime="3000"/>
                                                                                
       <Receiver 
className="org.apache.catalina.tribes.transport.nio.NioReceiver"
                                                                                
                 address="auto"
                                                                                
                 port="4001"
                                                                                
                 selectorTimeout="100"
                                                                                
                 maxThreads="6"/>

                                                                                
       <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.MessageDispatchInterceptor"/>
                                                                                
       <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|.*\.jsp"/>


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





Rick Noel
Systems Programmer | Westwood One
rn...@westwoodone.com

Reply via email to