Getting Started with Apache Ignite

Expand all | Collapse all

How to configure Apache Ignite with multiple config files

  • 1.  How to configure Apache Ignite with multiple config files

    Posted 07-22-2019 09:50 AM
    Hey all, I need to configure Ignite with multiple caches with different names within one cluster using Spring XML. The goal is to eventually have one jar file for each cache for the ease of deployment.

    * Use GridGain web console to generate the cluster configurations code for each cache. So, for example I create two jars for two different caches, each jar will have a xml file for the cache configs.
    * Copied the two jars to the GridGain/libs directory.
    * Started Ignite from the bin/ My understanding that Ignite should automatically load the two caches. It doesn't seem to do so.

    I have noticed that I should pass the config path when running the script, however, I am not sure how to pass multiple files. Should I create a root xml file that wildcard imports multiple xml configurations from multiple locations and pass that root xml to the script?

    Any help or suggestions on how should I approach this?

    Scott Keeler

  • 2.  RE: How to configure Apache Ignite with multiple config files

    Posted 08-01-2019 05:04 AM
    You can't really start Ignite/GridGain with multiple configuration files. Instead, a common pattern is where the server nodes have a very minimal configuration, maybe just discovery and stuff like Peer Class Loading being enabled. Then a client connects and defines the caches, or in your case, multiple clients would connect, each defining a single cache.

    Having said that, I'm not clear how having each cache in a separate file would make deployment easier?


    Stephen Darlington
    GridGain Systems

Would you attend a July Meetup?