Home:ALL Converter>Backup of ignite stateful set in Kubernetes

Backup of ignite stateful set in Kubernetes

Ask Time:2019-01-31T02:05:54         Author:Chinmoymohanty85

Json Formatter

I’m trying to come up with a strategy to backup data in my apache ignite cache hosted as a stateful set in google cloud Kubernetes. My ignite deployment uses ignite native persistence and runs a 3 node ignite cluster backed up by persistence volumes in Kubernetes. I’m using a binaryConfiguration to store binary objects in cache.

I’m looking for a reliable way to back up my ignite data and be able to restore it.

So far I’ve tried backing up just the persistence files and then restoring them back. It hasn’t worked reliably yet. The issue I’m facing is that after restore, the cache data which isn’t binary objects is restored properly, e.g. strings or numbers. I’m able to access numeric or string data just fine. But binary objects are not accessible. It seems the binary objects are restored, but I’m unable to fetch them.

The weird part is that after the restore, once I add a new binary object to the cache all the restored data seems to be accessed normally.

Can anyone please suggest a reliable way to back up and restore ignite native persistence data?

Author:Chinmoymohanty85,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/54446882/backup-of-ignite-stateful-set-in-kubernetes
alamar :

You should either backup ${ignite.work.dir}/marshaller directory, or call ignite.binary().type(KeyOrValue.class) for every type you have in cache to prime binary marshaller.",
2019-01-31T09:30:17
yy