Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-31812

(8.1.z) web-clustering Galleon layer creates cache configuration that differs from zip archive version

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 8.1.z.GA
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Workaround Exists
    • Hide

      It is possible to use the packaging-scripts feature of the eap-maven-plugin to run jboss-cli commands like the following which removes the sessions cache and sets the default-cache to dist.

      <packaging-scripts>
          <execution>
              <commands>
                  <command>/subsystem=infinispan/cache-container=web:write-attribute(name=default-cache,value=dist)</command>
                  <command>/subsystem=infinispan/cache-container=web/distributed-cache=sessions:remove()</command>
              </commands>
          </execution>
      </packaging-scripts>
      
      Show
      It is possible to use the packaging-scripts feature of the eap-maven-plugin to run jboss-cli commands like the following which removes the sessions cache and sets the default-cache to dist . <packaging-scripts> <execution> <commands> <command> /subsystem=infinispan/cache-container=web:write-attribute(name=default-cache,value=dist) </command> <command> /subsystem=infinispan/cache-container=web/distributed-cache=sessions:remove() </command> </commands> </execution> </packaging-scripts>
    • Hide

      Use an eap-maven-plugin configuration like the following to create an EAP server instance:

      <plugin>
          <groupId>org.jboss.eap.plugins</groupId>
          <artifactId>eap-maven-plugin</artifactId>
          <version>2.0.0.Final-redhat-00012</version>
          <configuration>
              <channels>
                  <channel>
                      <manifest>
                          <groupId>org.jboss.eap.channels</groupId>
                          <artifactId>eap-8.1</artifactId>
                          <version>1.2.0.GA-redhat-00004</version>
                      </manifest>
                  </channel>
              </channels>
              <feature-packs>
                  <feature-pack>
                      <location>org.jboss.eap:wildfly-ee-galleon-pack</location>
                  </feature-pack>
                  <feature-pack>
                      <location>org.jboss.eap.cloud:eap-cloud-galleon-pack</location>
                  </feature-pack>
              </feature-packs>
              <layers>
                  <layer>cloud-server</layer>
                  <layer>web-clustering</layer>
              </layers>
              <filename>ROOT.war</filename>
          </configuration>
          <executions>
              <execution>
                  <goals>
                      <goal>package</goal>
                  </goals>
              </execution>
          </executions>
      </plugin>
      
      Show
      Use an eap-maven-plugin configuration like the following to create an EAP server instance: <plugin> <groupId> org.jboss.eap.plugins </groupId> <artifactId> eap-maven-plugin </artifactId> <version> 2.0.0.Final-redhat-00012 </version> <configuration> <channels> <channel> <manifest> <groupId> org.jboss.eap.channels </groupId> <artifactId> eap-8.1 </artifactId> <version> 1.2.0.GA-redhat-00004 </version> </manifest> </channel> </channels> <feature-packs> <feature-pack> <location> org.jboss.eap:wildfly-ee-galleon-pack </location> </feature-pack> <feature-pack> <location> org.jboss.eap.cloud:eap-cloud-galleon-pack </location> </feature-pack> </feature-packs> <layers> <layer> cloud-server </layer> <layer> web-clustering </layer> </layers> <filename> ROOT.war </filename> </configuration> <executions> <execution> <goals> <goal> package </goal> </goals> </execution> </executions> </plugin>
    • Customer Reported

      The web-clustering Galleon layer used by the eap-8.1 channel creates the following Infinispan cache configuration where the default-cache is set to sessions (sessions is a cache created by the web-clustering layer):

      <cache-container name="web" default-cache="sessions" marshaller="PROTOSTREAM" modules="org.wildfly.clustering.session.infinispan.embedded">
          <transport lock-timeout="60000"/>
          <replicated-cache name="sso">
              <locking isolation="REPEATABLE_READ"/>
              <transaction mode="BATCH"/>
              <expiration interval="0"/>
          </replicated-cache>
          <replicated-cache name="routing">
              <expiration interval="0"/>
          </replicated-cache>
          <distributed-cache name="sessions">
              <expiration interval="0"/>
          </distributed-cache>
          <distributed-cache name="dist">
              <locking isolation="REPEATABLE_READ"/>
              <transaction mode="BATCH"/>
              <expiration interval="0"/>
              <file-store passivation="true" purge="true"/>
          </distributed-cache>
      </cache-container>
      

      This is different from the settings specified in the zip archive version of EAP 8.1 which uses the dist cache.

      zip archive version of EAP 8.1 standalone-ha.xml:

      <cache-container name="web" default-cache="dist" marshaller="PROTOSTREAM" modules="org.wildfly.clustering.session.infinispan.embedded">
          <transport lock-timeout="60000"/>
          <replicated-cache name="sso">
              <locking isolation="REPEATABLE_READ"/>
              <transaction mode="BATCH"/>
              <expiration interval="0"/>
          </replicated-cache>
          <replicated-cache name="routing">
              <expiration interval="0"/>
          </replicated-cache>
          <distributed-cache name="dist">
              <locking isolation="REPEATABLE_READ"/>
              <transaction mode="BATCH"/>
              <expiration interval="0"/>
              <file-store passivation="true" purge="true"/>
          </distributed-cache>
      </cache-container>
      

      The web-clustering layer should be updated to bring it in line with the EAP 8.1 zip archive settings.

              mjusko@redhat.com Marek Jusko
              rhn-support-iwalker Ian Walker
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: