ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tejashwa Kumar Verma <tejashwa.ve...@gmail.com>
Subject Ignite 2.3 Swap Path configuration is causing issue
Date Wed, 20 Dec 2017 14:05:58 GMT
Hi All,

We are migrating from 1.9 to 2.3 and we are configuring Data regions for
Cache with '*swapPath*' configuration as below.

<?xml version="1.0" encoding="UTF-8"?> <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}" /> *<property name="swapPath" value="/opt/swap"
/>* </bean> </property> </bean> </property>

Now as per configs, first data (< = 5GB) should go in RAM and once it
starts spilling over maxSize 5GB then remaining data should go in SWAP.

We are facing issue here, whenever we start data load with "*swapPath*"
property configuration, entire data is going to SWAP directly and its not
going to RAM and this behavior is not correct. Whereas if we are removing "
*swapPath*" property from configuration then data is going to RAM.

Please let me know if my configs are correct or anything else is required ?

Thanks & Regards

View raw message