/asked by steve neal/ I have a problem with a cache loader service that loads data into a cache at process start-up.
If I run a single node, everything works fine and my log message shows the exact same number of items added to the cache as the calls: ignite.jcache(cacheName).localSize(CachePeekMode.PRIMARY) and ignite.jcache(cacheName).size(CachePeekMode.PRIMARY) return. If I then start more nodes running, then everything works as I'd expect and the full cache is balanced correctly across the cluster. The cache size remains the same overall, and the local caches show numbers indicating that the data has been shared between them correctly. Problems appear though when I start multiple nodes at the same time. My log message confirms that the same number of records were added to the cache but ignite.jcache(cacheName).localSize(CachePeekMode.PRIMARY) and ignite.jcache(cacheName).size(CachePeekMode.PRIMARY) both return a significantly lower number. On the last run my logs show that 1,163,076 records were added to the cache, but both the above method calls show only 376,879 entries. Running ignite.jcache(cacheName).localSize(CachePeekMode.PRIMARY) on the other nodes in the cluster consistently returns 0. Have you seen problems like this, and can you suggest a fix? This looks like a cache balancing problem during the discovery phase to me. I don't want to have to start the primary node before the others at this will complicate the deployment and will mean that one node will have to hold all the records until the other nodes are running. Thanks, Steve. ----- /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/Cache-not-loading-correctly-tp39.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.
