4 Replies Latest reply on Feb 5, 2019 9:41 AM by gian.honorio

    Problem in Session Replication in JBoss EAP 6.4 + Apache mod_cluster

    gian.honorio

      Hello, I am having some problems trying to configure session replication in JBoss EAP 6.4 domain mode + Apache with mod_cluster, I have already followed several guides and tutorials and tried several different configurations, but without success. The cluster works correctly, only the sessions that are not replicated.

       

      Here is the cluster topology:

       

       

      And here are some of the important parts of configuration files:

       

      http.conf

       

      <IfModule manager_module>

              Listen 192.168.8.91:8080

              ManagerBalancerName adapter-conectcor-cluster-group

              <VirtualHost 192.168.8.91:8080>

                      <Location />

                              Require all granted

                      </Location>

                      TimeOut 30

                      KeepAliveTimeout 5

                      MaxKeepAliveRequests 0

                      AdvertiseFrequency 5

                      EnableMCPMReceive on

                      <Location /modcluster_manager>

                              SetHandler mod_cluster-manager

                              Order deny,allow

                              Allow from 192.168.0.0/23

                              Require all granted

                      </Location>

              </VirtualHost>

              <VirtualHost *:80>

                      ProxyPreserveHost On

                      ProxyPass /server-status !

                      ProxyPass / http://192.168.8.91:8080/counter/

                      ProxyPassReverse / http://192.168.8.91:8080/counter/

                      ProxyPassReverseCookiePath / /

                      <Location /server-status>

                              SetHandler server-status

                              Order deny,allow

                              Deny from all

                              Allow from 192.168.0.0/23

                      </Location>

              </VirtualHost>

      </IfModule>

       

      domain.xml

          

      <subsystem xmlns="urn:jboss:domain:modcluster:1.2">

           <mod-cluster-config advertise-socket="modcluster" proxy-list="192.168.8.91:8080" sticky-session="true" sticky-session-force="false" balancer="adapter-conectcor-cluster-group" connector="ajp">

                <dynamic-load-provider>

                     <load-metric type="busyness"/>

                </dynamic-load-provider>

           </mod-cluster-config>

      </subsystem>

       

      <cache-container name="web" aliases="standard-session-cache" default-cache="repl" module="org.jboss.as.clustering.web.infinispan">

           <transport lock-timeout="60000"/>

           <replicated-cache name="repl" mode="ASYNC" batching="true">

                <file-store/>

           </replicated-cache>

           <replicated-cache name="sso" mode="SYNC" batching="true"/>

           <distributed-cache name="dist" l1-lifespan="0" mode="ASYNC" batching="true">

                <file-store/>

           </distributed-cache>

      </cache-container>

       

       

      For the tests I'm using the attached project "counter.war", and if any other part of any configuration file is needed just ask. I appreciate any kind of help or tip.