10 Replies Latest reply on Sep 27, 2011 9:09 AM by Jean Baldessar

    Configure Sticky Session

    Jean Baldessar Newbie

      Hi. I just started to work with mod_cluster make my application more avaliable.


      Im migrating my application from AS4 to AS7, but the mod_proxy documentation does not mention AS7, so I'm trying to configure a load balancer to AS4.


      I fallowed the steps in documentation and the load balance worked fine, I started 2 instances of AS4, run the apache 2.2 and access localhost:6666 and i worked! Very nice but....


      The load balancer do not respect application session. The requests are randomly redirected to the servers.

      The documentation doesn't show clearly how to configure it. (as last, I didn't find it)


      my httpd.conf last lines:



      LoadModule proxy_module modules/mod_proxy.so
      LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
      LoadModule proxy_http_module modules/mod_proxy_http.so
      LoadModule proxy_cluster_module modules/mod_proxy_cluster.so
      LoadModule manager_module modules/mod_manager.so
      LoadModule slotmem_module modules/mod_slotmem.so
      LoadModule advertise_module modules/mod_advertise.so
      ManagerBalancerName mycluster
      <Location />
       Order deny,allow
       Deny from all
       Allow from
      KeepAliveTimeout 300
      KeepAliveTimeout 300
      MaxKeepAliveRequests 0
      AdvertiseFrequency 5
      <Location /mod_cluster_manager>
         SetHandler mod_cluster-manager
         Order deny,allow
         Deny from all
         Allow from 127.0.0


      What I am missing?