Hello!

I have a feeling that you are trying to perform a manual sunset:
reimplement something which is a part of core functionality and always
provided out of box.

* Apache Ignite will read values from primary node only unless
"readFromBackup" property is set.
* Anyway, Apache Ignite will not try to read values from partition on node
where it's not completely rebalanced yet.
* In general, Apache Ignite will make sure that you're getting relevant and
fresh data from cache.

Regards,

-- 
Ilya Kasnacheev

2018-07-16 15:59 GMT+03:00 monstereo <[email protected]>:

> thanks for your understanding,
> Last question,
> I want to use data rebalancing, because I have scenario like this:
>
> let's say node 1 has 10000 datas in its caches. (Which cache mode is
> REPLICATED)
> Now I will invoke another node2, then node2 will copy of node1's cache
> datas.
> But when copying occuring, if any client node wants to get data from cache
> via node2, I should say "cache is not ready" or node2 should be accessible
> after it has all datas.
>
> I though that I can use data rebalancing, that's why i am interested in
> events. But, a few minutes ago, I have noticed I can not get
> CacheRebalanceEVENT, because of replicated mode. (I can catch other events
> for example EVT_CACHE_OBJECT_PUT.
>
> Now what can i do?
>
> here is the cache events in xml file
>
>
>                 <util:constant
> static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_PUT"/>
>                 <util:constant
> static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_READ"/>
>                 <util:constant
> static-field="org.apache.ignite.events.EventType.EVT_
> CACHE_OBJECT_REMOVED"/>
>                 <util:constant
> static-field="org.apache.ignite.events.EventType.EVT_
> CACHE_REBALANCE_STARTED"/>
>                 <util:constant
> static-field="org.apache.ignite.events.EventType.EVT_
> CACHE_REBALANCE_PART_LOADED"/>
>                 <util:constant
> static-field="org.apache.ignite.events.EventType.EVT_
> CACHE_REBALANCE_STOPPED"/>
>                 <util:constant
> static-field="org.apache.ignite.events.EventType.EVT_
> CACHE_REBALANCE_PART_UNLOADED"/>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Reply via email to