You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Sergey Sergeev <we...@gmail.com> on 2018/01/02 14:02:56 UTC

Re: Page eviction mode is ignored

The similar issue was created by Denis, thanks.
https://issues.apache.org/jira/browse/IGNITE-7347

On Sat, Dec 23, 2017 at 12:29 AM, Denis Magda <dm...@apache.org> wrote:

> 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 <we...@gmail.com>
> 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);
>
>


-- 
С уважением,
Сергеев Сергей (aka SSSerj)
e-mail: webs.support@gmail.com
заметки: https://twitter.com/ssserj
exit(0);

Fwd: Page eviction mode is ignored

Posted by Dmitriy Setrakyan <ds...@apache.org>.
Cross sending to dev@.

Can anyone from committers review this patch? It is scheduled for 2.4 and
there is not much time left.

D.

---------- Forwarded message ----------
From: Sergey Sergeev <we...@gmail.com>
Date: Tue, Jan 2, 2018 at 7:02 AM
Subject: Re: Page eviction mode is ignored
To: user@ignite.apache.org


The similar issue was created by Denis, thanks.
https://issues.apache.org/jira/browse/IGNITE-7347

On Sat, Dec 23, 2017 at 12:29 AM, Denis Magda <dm...@apache.org> wrote:

> 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 <we...@gmail.com>
> 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.DataStorageConfigurat
> ion">
> >         <property name="walMode" value="LOG_ONLY" />
> >         <property name="metricsEnabled" value="true" />
> >         <property name="defaultDataRegionConfiguration">
> >             <bean class="org.apache.ignite.confi
> guration.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.confi
> guration.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.confi
> guration.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);
>
>


-- 
С уважением,
Сергеев Сергей (aka SSSerj)
e-mail: webs.support@gmail.com
заметки: https://twitter.com/ssserj
exit(0);