On 31/01/2024 13:33, Manak Bisht wrote:
I tried tweaking all the settings that I could think of but I am unable to
sync sessions on restart even on a stock Tomcat 8.5.98 installation using
your provided war. I am unable to identify whether this is actually a bug
or something wrong with my configuration (this is far more likely). Could
you please share your server.xml? Did you make any other changes?

Sincerely,
Manak Bisht

Here is the cluster configuration from the first node my test environment:

<Cluster
    className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
    channelSendOptions="6"
    >

  <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.StaticMembershipService"
        >

      <Member
          className="org.apache.catalina.tribes.membership.StaticMember"
          port="4000"
          host="192.168.23.32"
          uniqueId="{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}"
          />

      <Member
          className="org.apache.catalina.tribes.membership.StaticMember"
          port="4000"
          host="192.168.23.33"
          uniqueId="{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2}"
          />
    </Membership>

    <Receiver
        className="org.apache.catalina.tribes.transport.nio.NioReceiver"
        address="192.168.23.32"
        port="4000"
        autoBind="0"
        selectorTimeout="5000"
        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"
        performReadTest="true"
        />
    <Interceptor

className="org.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor"
        />
  </Channel>

  <Deployer
      className="org.apache.catalina.ha.deploy.FarmWarDeployer"
      tempDir="cluster-temp"
      deployDir="webapps"
      watchDir="cluster-watch"
      watchEnabled="true"
      />

  <Valve
      className="org.apache.catalina.ha.tcp.ReplicationValve"
      filter=""
      />

  <Valve
      className="org.apache.catalina.ha.session.JvmRouteBinderValve"
      />

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

</Cluster>

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

Reply via email to