Hi All,

We are migrating from 1.9 to 2.3 and following are the respective configs .

*Cache Config in 1.9:*

<bean class="org.apache.ignite.configuration.CacheConfiguration"> <property
name="name" value="INSTALLBASE_CACHE" /> <property name="cacheMode" value=
"PARTITIONED" /> <property name="atomicityMode" value="TRANSACTIONAL" /> <
property name="backups" value="0" /> <property name="statisticsEnabled"
value="true" /> <!--property name="swapEnabled" value="true"/ --> <property
name="copyOnRead" value="false" /> <property name="memoryMode"
value="OFFHEAP_TIERED"/> <property name="offHeapMaxMemory" value="#{5 *
1024L * 1024L * 1024L}"/ > <property name="indexedTypes"> <list> <value>
java.lang.String</value> <value>net.juniper.cs.entity.InstallBase</value> </
list> </property> </bean>


*Cache Config in 2.3:*

Here we have to configure DataRegion and then that data region needs to be
assigned to Cache.

*Data Region Conf:*

<property name="dataStorageConfiguration"> <bean class="org.apache.ignite.
configuration.DataStorageConfiguration"> <property name="
defaultDataRegionConfiguration"> <bean class="org.apache.ignite.
configuration.DataRegionConfiguration"> <property name="name" value="
5GB_SWAP_Region_Swapping" /> <!-- 100 MB initial size. --> <property name=
"initialSize" value="#{100L * 1024 * 1024}" /> <!-- Setting the size of the
default region to 5GB. --> <property name="maxSize" value="#{5 * 1024L *
1024L * 1024L}" /> </bean> </property> </bean> </property>

*Cache Conf:*

<?xml version="1.0" encoding="UTF-8"?> <bean class=
"org.apache.ignite.configuration.CacheConfiguration"> <property name=
"dataRegionName" value="5GB_SWAP_Region_Swapping" /> <property name="name"
value="INSTALLBASE_CACHE" /> <property name="cacheMode" value="PARTITIONED"
/> <property name="atomicityMode" value="TRANSACTIONAL" /> <property name=
"backups" value="0" /> <property name="statisticsEnabled" value="true"
/> <!--property
name="swapEnabled" value="true"/ --> <property name="copyOnRead" value=
"false" /> <!--property name="memoryMode" value="OFFHEAP_TIERED"/>
<property name="offHeapMaxMemory" value="#{5 * 1024L * 1024L * 1024L}"/ -->
<property name="indexedTypes"> <list> <value>java.lang.String</value> <value
>net.juniper.cs.entity.InstallBase</value> </list> </property> </bean>



*In both cases we are loading data in Offheap memory but still we are
observing noticeable increase in the load time(from 40 min to 90 min) of
Cache.*
*Can anyone help me to understand that why this is happening ?*

*Note:*
*Data Persistence is not enabled.*


Thanks & Regards
Tejas

Reply via email to