2 Replies Latest reply on Nov 12, 2015 10:27 AM by pferraro

    how to configure remote infinispan store for web session?

    dbdbdb

      Hi,

       

      I'm trying to configure WildFly to store http session to a remote Infinispan sever.

       

      Follow wildfly's standalone.xml infinispan config:

       

      <subsystem xmlns="urn:jboss:domain:infinispan:2.0">
                  <cache-container name="web" default-cache="passivation" module="org.wildfly.clustering.web.infinispan">
                      <remoteStore xmlns="urn:infinispan:config:remote:6.0">
                            <servers>
                                 <server host="172.31.4.131"/> <!-- remote infinispan server -->
                            </servers>
                      </remoteStore>
                 </cache-container>
      ...
      ...
      <subsystem>
      

       

       

      But the "remoteStore" element didn't recognize

       

      (sorry for my bad english)

       

      thanks!

        • 1. Re: how to configure remote infinispan store for web session?
          dbdbdb

          I have change the configuration and no more exception:

           

                      <cache-container name="web" default-cache="web-local" module="org.wildfly.clustering.web.infinispan">
                          <local-cache name="web-local" batching="true">
                              <remote-store>
                                  <write-behind flush-lock-timeout="2" modification-queue-size="2048" shutdown-timeout="20000" thread-pool-size="1"/>
                                  <property name="valueSizeEstimate">
                                      100
                                  </property>
                                  <remote-server outbound-socket-binding="infinispan-remote-server"/>
                              </remote-store>
                          </local-cache>
                      </cache-container>
          
          ...
          ...
          
               <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
                  ...
                  ...
                  <outbound-socket-binding name="infinispan-remote-server">
                      <remote-destination host="localhost" port="11222"/>
                  </outbound-socket-binding>
              </socket-binding-group>
          

           

          no errors, but looks like had no effect.

          even if I change the port of the remote-destination to a random port (11225), nothing change..

           

          Am I missing something?

           

          thanks

          • 2. Re: how to configure remote infinispan store for web session?
            pferraro

            I looks like you configured a hefty modification-queue.  Nothing will get sent to the remote store until that queue is full.