I have a distributed IMAP. I want near cache enabled on certain nodes and not enabled on other nodes ..
We are using hazelcast 3.7
But we see getting the warning : 2016-09-04 14:34:50.123 WARN 9727 --- [ration.thread-1] .i.o.NearCacheBatchInvalidationOperation : [192.168.99.1]:5703 [dev] [3.7] Cache clear operation has been accepted while near cache is not enabled for WISH.MAP map. Possible configuration conflict among nodes.
HOw to enable this ?
---
NODE 1:
<map name="MAP1">
<in-memory-format>BINARY</in-memory-format>
<time-to-live-seconds>0</time-to-live-seconds>
<max-idle-seconds>600</max-idle-seconds>
<eviction-policy>LRU</eviction-policy>
<max-size policy="FREE_HEAP_PERCENTAGE">10</max-size>
<eviction-percentage>20</eviction-percentage>
<min-eviction-check-millis>5000</min-eviction-check-millis>
<near-cache>
<in-memory-format>OBJECT</in-memory-format>
<max-size>1000</max-size>
<eviction-policy>LRU</eviction-policy>
<max-idle-seconds>600</max-idle-seconds>
<time-to-live-seconds>0</time-to-live-seconds>
<invalidate-on-change>true</invalidate-on-change>
<cache-local-entries>true</cache-local-entries>
</near-cache>
</map>
NODE 2:
<map name="MAP1">
<in-memory-format>BINARY</in-memory-format>
<time-to-live-seconds>0</time-to-live-seconds>
<max-idle-seconds>600</max-idle-seconds>
<eviction-policy>LRU</eviction-policy>
<max-size policy="FREE_HEAP_PERCENTAGE">10</max-size>
<eviction-percentage>20</eviction-percentage>
<min-eviction-check-millis>5000</min-eviction-check-millis>
</map>