1 Reply Latest reply on Jan 24, 2013 1:33 PM by rhusar

    Configuring sticky session in mod_cluster

    cjayaprakash

      Hi,

       

      I am using default mod_cluster configuration. How I can configure sticky session, so that a session is handled by the server which created the session.

       

      Here is my m_c configuration,

       

      <IfModule manager_module>

        Listen 8888

        ManagerBalancerName qacluster

        <VirtualHost 127.0.0.1:8888>

          <Directory />

            Order deny,allow

            Deny from all

            Allow from all

          </Directory>

       

          KeepAliveTimeout 300

          MaxKeepAliveRequests 0

          AdvertiseFrequency 5

          EnableMCPMReceive

       

          <Location /mcm>

            SetHandler mod_cluster-manager

            Order deny,allow

            Allow from all

         </Location>

        </VirtualHost>

      </IfModule>

       

      Thanks.

        • 1. Re: Configuring sticky session in mod_cluster
          rhusar

          Sticky sessions are practically required for applications that use HTTP sessions. Moving data around so much is not viable.

           

          In AS7, the default is that sticky sessions are turned on. You can also configure this by attribute sticky-session="true" on mod-cluster-config attribute. See http://docs.jboss.org/mod_cluster/1.2.0/html_single/#java.AS7config

           

          In AS5, you can configure this by editing file mod-cluster.sar/META-INF/mod-cluster-jboss-beans.xml and making sure <property name="stickySession">true</property> is set to use sticky sessions, which is also turned on by default.

           

          Rado