We are testing Pecona Mongodb and would like to Migrate some mongodb instance “running in k8s” to Percona cluster which already runs in k8s as well.
we need zero downtime so what is the best approach to migrate?
Also can we backup a mongodb instance and restore to percona mogodb cluster?
You can leverage the cross site replication feature in PSMDB operator. This blog post may give some insight. Let me know if you have further questions.
Is there a way other than cross site replication feature in PRMDB to migrate without downtime?
The main problem is moving the data from source to target, cross site replication minimizes the downtime since you can wait for two sites to sync while your cluster is online. Did you have any problems in cross site replication?
The issue is the source is running as a standalone not replica set. so we need to convert it to a replica set which we had issues with. the source is running in k8s as well. @egegunes
Not sure how to convert to a replica set when mongodb deployment is running on k8s