near-cache

How to configure NearCache with Hazelcast 3.5 without an explicit Client

萝らか妹 提交于 2020-01-25 20:23:32
问题 Based on this question, I'm trying to switch to the version 3.5-EA of Hibernate. Up to now I had a configuration like this: CacheConfiguration<K, V> configuration = new CacheConfig<K, V>() .setNearCacheConfig(new NearCacheConfig().setInMemoryFormat(InMemoryFormat.OBJECT)) .setExpiryPolicyFactory(createExpiryPolicyFactory(expiryDuration)); cache = cacheManager.createCache(cacheName, configuration); But now the setNearCacheConfig method is gone. There only exists a addNearCacheConfig on the

hazelcast - read-backup-data vs near cache

六月ゝ 毕业季﹏ 提交于 2020-01-06 06:40:11
问题 In IMap configuration there is an attribute read-backup-data that can be set as true which enables a member to read the value from the backup copy, if available, in case the owner of the key is some other member. http://docs.hazelcast.org/docs/latest-development/manual/html/Distributed_Data_Structures/Map/Backing_Up_Maps.html#page_Enabling+Backup+Reads Then there is nearcache which will start caching results for a few datastructures locally. http://docs.hazelcast.org/docs/latest-development

Hazelcast NearCache doesn't have the expected effect on performance

て烟熏妆下的殇ゞ 提交于 2019-12-11 03:43:03
问题 We have an application running on 1 or 2 nodes, depending on the environment, with a shared cache based on Hazelcast. One of the requests on the application triggers about 1000 requests on this cache (all cache hits). In a single node configuration this works nicely. Specifically each request takes less then 10ms. But if we use 2 nodes, each cache request takes about 20-200ms. We thought this would be due to Hazelcast getting the data from the remote node, which of course involves network