0 Replies Latest reply: Jun 24, 2011 5:23 PM by 826170 RSS

    Sample backing map configuration needed

    826170
      Hi,

      I want to persist a substantial amount of data into coherence cache. The number of entity objects (all POF enabled) that need to go into the cache is appx 4 million. I am trying to load the whole data set into my server which is having 4 coherence nodes , each running on 2 GB memory, but that is falling short. I have pasted my cache configuration below.

      <?xml version="1.0"?>

      <!DOCTYPE cache-config SYSTEM "cache-config.dtd">

      <cache-config>
           <defaults>
                <serializer>pof</serializer>
           </defaults>
           <caching-scheme-mapping>
                <cache-mapping>
                     <cache-name>SALES-*</cache-name>
                     <scheme-name>default-partitioned</scheme-name>
                </cache-mapping>
           </caching-scheme-mapping>

           <caching-schemes>
                <distributed-scheme>
                     <scheme-name>default-partitioned</scheme-name>
                     <service-name>DefaultPartitioned</service-name>
                     <backing-map-scheme>
                          <local-scheme />
                     </backing-map-scheme>
                     <autostart>true</autostart>
                </distributed-scheme>
           <!-- Invocation Service scheme. -->
                <invocation-scheme>
                     <scheme-name>examples-invocation</scheme-name>
                     <service-name>InvocationService</service-name>
                     <serializer>
                          <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
                     </serializer>
                     <autostart system-property="tangosol.coherence.invocation.autostart">true</autostart>
                </invocation-scheme>
           </caching-schemes>
      </cache-config>

      I want to also configure a backing map along with this configuration, but i am not sure how to size the backing map keeping in mind my server memory limitations. Can you please help me out in this? A sample backing map configuration will suffice.

      Thanks
      Surya