ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pgarg <pg...@gridgain.com>
Subject Re: How to tell if a cache has been initialised?
Date Fri, 08 May 2015 20:21:52 GMT
/commented by dmitriy setrakyan/

I think using cluster-singleton is a good solution.

You may also wish to store a flag in some distributed cache stating "Loading
Is Finished". This way if a server dies before it finishes the loading,
another server will still complete the loading process even if the
cache.size() is greater than 0.

I am aware that other users took advantage of the Ignite's Distributed
CountDownLatch for this purpose. Whenever the loading was taking place, all
cluster members were waiting on the count-down-latch. When the loading is
complete, the count-down happens, and all cluster members are able to
proceed.

/----- 
This post is migrated from now discontinued Apache Ignite forum at 
http://apacheignite.readme.io/v1.0/discuss/



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-tell-if-a-cache-has-been-initialised-tp21p23.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message