Cache expiry policy is slow

classic Classic list List threaded Threaded
2 messages Options
shivakumar shivakumar
Reply | Threaded
Open this post in threaded view
|

Cache expiry policy is slow

Hi,
I have configured cache expiry policy using cache templates for the cache
which I created in ignite, as below

                <bean id="cache-template-bean" abstract="true"
class="org.apache.ignite.configuration.CacheConfiguration">
                  <property name="name" value="templateEternal*"/>
                  <property name="cacheMode" value="PARTITIONED"/>
                  <property name="backups" value="1"/>
                  <property name="groupName" value="groupEternal"/>
                  <property name="eagerTtl" value="true"/>

                  <property name="expiryPolicyFactory">
                    <bean class="javax.cache.expiry.CreatedExpiryPolicy"
factory-method="factoryOf">
                      <constructor-arg>
                        <bean class="javax.cache.expiry.Duration">
                          <constructor-arg value="SECONDS"/>
                          <constructor-arg value="600"/>
                        </bean>
                      </constructor-arg>
                    </bean>
                  </property>


                </bean>


according to this configuration cache entries which completes 10 minutes
should be removed but to remove those entries ignite is taking more time.
this is my observation:
after configuring cache expiry policy as mentioned above, I'am batch
ingesting some records to the table for 4 minutes (around 1 million records
in 4 minutes) and after 10 minute it will start removing entries from the
table and number of records will start decreasing when i monitored from
visor CLI, since i configured expiry time as 10 minutes, all the entries
should get removed at the end of 14th minute (because i ingested data from
0th minute to 4th minute) but it is removing all the entries at the end of
20th minute.
any tuning needs to be done or am I missing any configuration ?

regards,
shiva




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
aealexsandrov aealexsandrov
Reply | Threaded
Open this post in threaded view
|

Re: Cache expiry policy is slow

Hi,

Could you please share your reproducer of how you check that the expiration
of the entries?

BR,
Andrei



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