Hazelcast Near Cache

131 views
Skip to first unread message

amitava...@gmail.com

unread,
Sep 4, 2016, 3:46:52 AM9/4/16
to Hazelcast
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>

Noctarius

unread,
Sep 4, 2016, 4:34:41 AM9/4/16
to Christoph Engelbert - Hazelcast
Your map, that you want to enable near-cache for, seems to be called “WISH.MAP” whereas your configuration uses “MAP1” as a name.

--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at https://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/7785863b-bcd1-470f-aeca-45be40cf78a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Amitava Biswas

unread,
Sep 4, 2016, 7:06:34 AM9/4/16
to Hazelcast
i changed the config while posting here -- from WISH.MAP to MAP1 just for confidentiality

Ahmet Mircik

unread,
Sep 5, 2016, 4:54:44 AM9/5/16
to Hazelcast
It is a harmless warning message indicates that your configuration differs among the nodes. But i can't see strong reason to print it as a warning. NearCaches can be configured local to a node and expecting all nodes always have same near-cache config doesn't make sense. You can follow the issue here: https://github.com/hazelcast/hazelcast/issues/8841

Reply all
Reply to author
Forward
0 new messages