You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by "HEWA WIDANA GAMAGE, SUBASH" <Su...@fmr.com> on 2018/11/07 21:33:32 UTC
RE: LRU Evicts Most Recent Entries
Hi everyone,
I think I found how to recreate this. Please find this link
http://apache-ignite-users.70518.x6.nabble.com/LruEvictionPolicy-works-not-properly-with-IgniteCache-removeAll-td2313.html
The issue is reproduced in Ignite v1.9 with same code used in above thread.
-----Original Message-----
From: HEWA WIDANA GAMAGE, SUBASH [mailto:Subash.HewaWidanaGamage@fmr.com]
Sent: Thursday, October 04, 2018 10:32 AM
To: user@ignite.apache.org
Subject: RE: LRU Evicts Most Recent Entries
Little correction:
The actual value we have in production for the eviction policy is as follows(500MB)
evpl.setMaxMemorySize(524288000);
-----Original Message-----
From: HEWA WIDANA GAMAGE, SUBASH [mailto:Subash.HewaWidanaGamage@fmr.com]
Sent: Wednesday, October 03, 2018 10:47 PM
To: user@ignite.apache.org
Subject: RE: LRU Evicts Most Recent Entries
Hi Anton,
Here's the full configuration.
==========This is my grid config================
IgniteConfiguration cfg = new IgniteConfiguration();
cfg.setPeerClassLoadingEnabled(false);
cfg.setLifecycleBeans(new LogLifecycleBean());
TcpDiscoverySpi discoverySpi = new TcpDiscoverySpi();
TcpDiscoveryVmIpFinder ipFinder = new TcpDiscoveryVmIpFinder();
Collection<String> addressSet = new HashSet<>();
for (String address : ipList) {
addressSet.add(address);
}
ipFinder.setAddresses(addressSet);
discoverySpi.setJoinTimeout(10000);
discoverySpi.setLocalPort(47500);
discoverySpi.setIpFinder(ipFinder);
cfg.setDiscoverySpi(discoverySpi);
====And this is the cache config=====.
CacheConfiguration<String, String> cc = new CacheConfiguration();
cc.setName("mycache");
cc.setBackups(1);
cc.setCacheMode(CacheMode.PARTITIONED);
cc.setAtomicityMode(CacheAtomicityMode.ATOMIC);
LruEvictionPolicy evpl = new LruEvictionPolicy();
evpl.setMaxMemorySize (10000);
cc.setEvictionPolicy(evpl);
cc.setExpiryPolicyFactory(CreatedExpiryPolicy.factoryOf(
new Duration(TimeUnit.SECONDS, 15)));
cc.setStatisticsEnabled(true);
-----Original Message-----
From: akurbanov [mailto:antkr.dev@gmail.com]
Sent: Tuesday, October 02, 2018 1:45 PM
To: user@ignite.apache.org
Subject: Re: LRU Evicts Most Recent Entries
This email is from an external source - exercise caution regarding links and attachments.
Hello,
Could you please share full Ignite configuration?
Regards,
Anton
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/