You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by prasadbhalerao1983 <pr...@gmail.com> on 2018/03/13 13:37:51 UTC

Re: Understanding data store and partitioning

Hi,

1) How does one know that cache pre-loading is already in process and now
its time to call localLoadCache?

2) When a cache on all existing nodes is pre-loaded with all the data and if
any new nodes joins a cluster then only some partitions are moved to newly
joined node as a part of data rebalancing process. So in this case there is
no need to invoke loadCache or localLoadCache method when a new node is
started. 

But how can I find out that data is already pre-loaded and there is no need
to call loadLocalCache?

3) Is there any way to find out that cluster is formed with desired number
of nodes? Do I have to poll to check if all the nodes have joined the
cluster? I want to start the cache loading only after all the nodes have
joined the cluster.

Thanks,
Prasad



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Understanding data store and partitioning

Posted by ezhuravlev <e....@gmail.com>.
Hi,

1) You can somehow signal it from your application where you invoke
loadCache method or from CacheStore implementation 

2) loadCache is sync method and when it will be finished, all preloading
will be finished on all nodes

3) You can listen to the topology changes and check count of the nodes in
topology: https://apacheignite.readme.io/docs/events

Evgenii



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/