The following is the cache configuration:
CacheConfiguration cacheCfg = new CacheConfiguration(tableName);
cacheCfg.setCacheMode(CacheMode.PARTITIONED);
cacheCfg.setAtomicityMode(CacheAtomicityMode.TRANSACTIONAL);
cacheCfg.setBackups(1);
cacheCfg.setWriteSynchronizationMode(CacheWriteSynchronizationMode.PRIMARY_SYNC);
cacheCfg.setRebalanceBatchSize(1024 * 1024 * 4);
cacheCfg.setRebalanceMode(CacheRebalanceMode.ASYNC);
cacheCfg.setStatisticsEnabled(true);
cacheCfg.setRebalanceDelay(100);
cacheCfg.setDefaultLockTimeout(5000);
cacheCfg.setReadFromBackup(true);
cacheCfg.setQueryParallelism(16);
cacheCfg.setRebalanceBatchesPrefetchCount(4);
cacheCfg.setNodeFilter(new AttributeNodeFilter("ROLE", "data.compute"));
There are 2 nodes in our cluster.
________________________________
From: Alexander Kor <[email protected]>
Sent: Wednesday, August 14, 2019 8:41:31 PM
To: [email protected] <[email protected]>
Subject: Re: IgniteCache.destroy() taking long time
Hi,
Can you please share your cache configuration. How many nodes do you have
in your cluster?
If you are running in PARTITONED mode then some exchange of information
will occur.
More details here: https://apacheignite.readme.io/docs/cache-modes
Do you have a reproducer project?
Thanks, Alex
On Wed, Aug 14, 2019 at 1:22 AM Shravya Nethula
<[email protected]<mailto:[email protected]>>
wrote:
Hi,
I have created a cache using the following API:
IgniteCache<String, Object> cache = (IgniteCache<String, Object>)
ignite.getOrCreateCache(cacheCfg);
Now when i try to delete the cache using IgniteCache.destroy() API, it is
taking about 12-13 seconds.
Why is it taking more execution time? Will there be any exchange of cache
information among the nodes whenever a cache is deleted?
Is there any way in which, the execution time can be optimized?
Regards,
Shravya Nethula.
Regards,
Shravya Nethula,
BigData Developer,
[cid:16c90a962b4c65ad4151]
Hyderabad.