/asked by steve neal/ I'm in the process of creating a distributed cache that will load a few million records from a database that is under significant load. The purpose of the cache is to allow complex queries to be run over historic data without further degrading the database performance.
So far I've created an ignite process that loads all the records from the database on startup. When I run a second instance of this process, it loads all the data from the DB again and the caches correctly don't allow the duplicate keys to be stored. The problem I'm facing, is that when this is released to production environment, all node processes will be started simultaneously and they will all execute this large query to initialise the cache at the same time. Can you advise me on whether there is a 'correct' way to limit which processes will perform the initial cache load? I've considered a few options but they all feel like hacks. Thanks. ----- /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-tp21.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.
