Search code examples
javacachingbenchmarkingignite

Does Apache Ignite support 10 thousands of cache?


We are evaluating Apache Ignite for our product. In our scenario, we may have 10000 caches, and I have a try in the yardstick benchmark framework. I find that when the cache numbers climb to 8192, the Ignite server became abnormal. The case is expected to be finished after 1 minute since I have set the duration in the configuration, but the test keep running in 10 minutes long and I have to kill the test.

If I set the cache number to 4096, the test finished in 1 minute as expected. So the question: Does Apache Ignite support 10 thousands of cache?


Solution

  • One cache will use around 20M heap for its data structures (per node). Multiple that by 10000 and you have 200G right here. In practice Java will not work with that much heap.

    Why do you need 10,000 caches anyway? Please consider at least using Cache Groups. The best approach will be having a few caches and routing between them.