2 Replies Latest reply on Feb 18, 2014 7:46 AM by tromper11

    Different Cache Configuration within same cluster

    tromper11

      Hi,

       

      We have 6 server to form a Infinispan distributed store and want to have two caches:

       

      - all servers need to access cache DATA1 and DATA2

      - but 2 servers need to access DATA1 only,

       

      so we set up 2 XML configurations:

       

      XML for servers1-4:


      <global>

          <transport nodeName="Node" clusterName="CACHE">

          </transport>

      </global>

      <namedCache name="DATA1">

            <clustering mode="distribution">

                 <sync/>

            </clustering>

           <eviction maxEntries="999999" strategy="LRU"/>

      </namedCache>

      <namedCache name="DATA2">  <--- this is used only by server1-4

            <clustering mode="distribution">

                 <sync/>

            </clustering>

           <eviction maxEntries="999999" strategy="LRU"/>

      </namedCache>

        

      XML for servers5-6:

      <global>

          <transport nodeName="Node" clusterName="CACHE">

          </transport>

      </global>

      <namedCache name="DATA1">

            <clustering mode="distribution">

                 <sync/>

            </clustering>

           <eviction maxEntries="999999" strategy="LRU"/>

      </namedCache>


       

      Will it cause any problem if 'DATA2' is not defined for servers5-6?


      Thanks,