Hi Sergey,

> But... page eviction doesn't work for "inMemory" memory region... Why?

If Ignite persistence is enabled, then the page-based evictions have no effect 
because the oldest pages will be purged from memory automatically.

Updated the text of the warning to makes things clearer.

> Does Ignite supports a mix (persistenceEnabled or not) of DataRegion 
> configurations?

Yes, you can have the persistence enabled for region A and disabled for region 
B.

—
Denis


> On Dec 22, 2017, at 1:13 PM, Sergey Sergeev <[email protected]> wrote:
> 
> Hi, 
> 
> I'm confused. After the successful launch of the Ignite cluster version 
> 2.3.0, I saw the WARN message: 
> WARN  GridCacheDatabaseSharedManager - Page eviction mode for [inMemory] 
> memory region is ignored because Ignite Native Persistence is enabled
> 
> Ignite spring config see below:
> <bean class="org.apache.ignite.configuration.IgniteConfiguration">
> ...
> <property name="dataStorageConfiguration">
>     <bean class="org.apache.ignite.configuration.DataStorageConfiguration">
>         <property name="walMode" value="LOG_ONLY" />
>         <property name="metricsEnabled" value="true" />
>         <property name="defaultDataRegionConfiguration">
>             <bean 
> class="org.apache.ignite.configuration.DataRegionConfiguration">
>                 <property name="metricsEnabled" value="true" />
>                 <property name="persistenceEnabled" value="true" />
>                 <!-- 2Gb maximum size -->
>                 <property name="maxSize" value="#{2L * 1024 * 1024 * 1024}"/>
>             </bean>
>         </property>
>         <property name="dataRegionConfigurations">
>             <list>
>                 <bean 
> class="org.apache.ignite.configuration.DataRegionConfiguration">
>                     <property name="metricsEnabled" value="true" />
>                     <property name="name" value="inMemoryDictionary" />
>                     <property name="persistenceEnabled" value="false" />
>                     <property name="pageEvictionMode" value="DISABLED" />
>                     <!-- 512Mb maximum size -->
>                     <property name="maxSize" value="#{512L * 1024 * 1024}"/>
>                 </bean>
>                 <bean 
> class="org.apache.ignite.configuration.DataRegionConfiguration">
>                     <property name="metricsEnabled" value="true" />
>                     <property name="name" value="inMemory" />
>                     <property name="persistenceEnabled" value="false" />
>                     <property name="pageEvictionMode" value="RANDOM_LRU" />
>                     <!-- 3Gb maximum size -->
>                     <property name="maxSize" value="#{3L * 1024 * 1024 * 
> 1024}"/>
>                 </bean>
>             </list>
>         </property>
>     </bean>
> </property>
> ...
> 
> </bean>
> 
> But... page eviction doesn't work for "inMemory" memory region... Why?
> Does Ignite supports a mix (persistenceEnabled or not) of DataRegion 
> configurations?
> 
> -- 
> Best regards,
> Sergey S. Sergeev
> exit(0);

Reply via email to