Search code examples
javaignite

Enabling default persistence on existing ignite cluster


Our application uses ignite to share data between different services. We habe a couple of caches und queues. Currently some of the caches are persisted using a second data region. This works fine. A new requiredment is to persist the items in the queues.

Because queues always use the default data region I assumed if I enable persistence on that region the queue content should be persistet. But this works just for the caches and not the queues. The queues still lose its content if the cluster shuts down. The log shows that persistence is enabled on the default region.

The thing is if I reset the cluster (deleting the ignite home folder) the queues get persistet fine.

I tried renaming the queues, but it didn't work.


Solution

  • The ignite mailing list had an idea that worked.

    Changing the group name in the CollectionConfiguration did the trick. It seems the name doesn't just has influence the partition placement but also influcens how data is persistet/read from disk.