Hi,
 - loadCache has to be called only after cluster have reached a minimum
amount of nodes (currently 3 nodes)

  You can use events to see when nodes join, or use the cluster api to see
how many servers/clients
   are online, and then call loadCache()
   cluster api:
https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/cluster/ClusterGroup.html
  
   events: https://apacheignite.readme.io/docs/events
    use:
https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/events/EventType.html#EVT_NODE_JOINED
  
  example:
https://github.com/apache/ignite/blob/master/examples/src/main/java/org/apache/ignite/examples/events/EventsExample.java
 
  see: https://apacheignite.readme.io/docs/3rd-party-store#manual
  example:
https://github.com/apache/ignite/blob/master/examples/src/main/java/org/apache/ignite/examples/datagrid/store/jdbc/CacheJdbcStoreExample.java

 - no cache operation must be allowed from client nodes until the backup is
successfully loaded
  You can use a custom message/a message in a given cache/Distributed data
structure
   or a similar mechanism to prevent client cache operations pending a given
condition.
  see: https://apacheignite.readme.io/docs/data-structures
  examples:
https://github.com/apache/ignite/tree/master/examples/src/main/java/org/apache/ignite/examples/datastructures

  and    https://apacheignite.readme.io/docs/messaging

 you can also use a cache lock:
 
https://apacheignite.readme.io/docs/distributed-locks#locks-and-transactions

Thanks, Alex
      



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

Reply via email to