You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by mzingman <mz...@patientkeeper.com> on 2020/01/15 18:55:36 UTC

Cache entries expiring in pageEvictionMode=DISABLED

I'm running 3 container instances of ignite fabric 2.3.0. Below is my
datastorageconfiguration:


        <property name="dataStorageConfiguration">
            <bean
class="org.apache.ignite.configuration.DataStorageConfiguration">
                <property name="dataRegionConfigurations">
                    <list>
                        <bean
class="org.apache.ignite.configuration.DataRegionConfiguration">
                            
                            <property name="name"
value="NonEvictable_256MB_Region"/>
                            <property name="initialSize" value="#{512L *
1024 * 1024}"/>
                            <property name="maxSize" value="#{512L * 1024 *
1024}"/>
                            <property name="pageEvictionMode"
value="DISABLED"/>
                        </bean>
                        <bean
class="org.apache.ignite.configuration.DataRegionConfiguration">
                            <property name="name"
value="NonEvictable_128MB_Region"/>
                            <property name="initialSize" value="#{256L *
1024 * 1024}"/>
                            <property name="maxSize" value="#{256L * 1024 *
1024}"/>
                            <property name="pageEvictionMode"
value="DISABLED"/>
                        </bean>
                    </list>
                </property>
                <property name="defaultDataRegionConfiguration">
                    <bean
class="org.apache.ignite.configuration.DataRegionConfiguration">
                        
                        <property name="initialSize" value="#{2L * 1024 *
1024 * 1024}"/>
                        <property name="maxSize" value="#{2L * 1024 * 1024 *
1024}"/>
                        <property name="pageEvictionMode"
value="RANDOM_2_LRU"/>
                        <property name="evictionThreshold" value="0.9"/>
                    </bean>
                </property>
            </bean>
        </property>


Here's the snippet of the cacheConfig for the cache using my non-evictable
data region:
     <bean id="medNdcCacheConfig"
class="org.apache.ignite.configuration.CacheConfiguration">
        <property name="name" value="XXX" />
        <property name="atomicityMode" value="TRANSACTIONAL" />
        <property name="cacheMode" value="REPLICATED" />
        <property name="dataRegionName" value="NonEvictable_256MB_Region"/>
       <property name="queryEntities">
            <list>
                <bean class="org.apache.ignite.cache.QueryEntity">
                    <property name="keyType" value="java.lang.Long" />
       ....   


After a while, when entries in the main region cache probably get filled
(0.9 threshhold), I'm starting seeing non-evictable cache entries also
getting evicted. What's worse - they are evicted on one node, and eviction
is not propagated on the other two nodes (so now every node has different
count of entries for that cache, even though it's replicated). So eviction
is not even working properly.
Please help!





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Cache entries expiring in pageEvictionMode=DISABLED

Posted by akorensh <al...@gmail.com>.
Hi,

Are you not seeing cache entries and therefore making the assumption that
eviction has kicked in?
You could inadvertently be using a different config w/persistence turned on?

search in ignite logs for the words "persistenceEnabled=false"

 
If you've not enabled onHeapCaching or persistence, and page eviction is
disabled and no memory is left, Ignite will throw
IgniteOutOfMemoryException.

docs for your version: https://apacheignite.readme.io/v2.3/docs/evictions

Can you try with only one cache(NonEvictable_256MB_Region) and see whether
the problem repeats itself?

Also, you have an old version, and if possible, can you do a small test
using a newer version(2.7.6) https://ignite.apache.org/download.cgi  and see
whether the behavior repeats itself.

If you are able to reproduce this on 2.7.6, then send us your entire config,
a reproducer project (or the code that you use to populate the cache) and we
will take a look.

Thanks, Alex



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/