Reputation: 13690
I would like to change the IgniteConfiguration
while the system is running.
I'm currently doing that by stopping the node, then starting it again with the new configuration object:
// close the previous instance
_ignite.close();
// start a new one with the changed configuration
_ignite = Ignition.start(config);
This causes the cache to lose all data unless I enable disk persistence.
Is there any other way to do this without losing the node's caches data?
Upvotes: 0
Views: 389
Reputation: 885
Unfortunately, you can't change Communication or Discovery SPIs configurations dynamically without the node restart.
You can configure backups for the caches, as described here, to avoid data loss after the node restart in the in-memory multi-node cluster.
In case you would like to modify a cache configuration, such as backups count, it will require destroying of the existing cache and creating a new one with an updated configuration. You can find more details regarding that here and here.
Upvotes: 1