Migrating from Mongo Community Edition to Percona

Good Morning,

I am currently running a 3 node replica set on the Community Edition version 7.

I am interested in bringing Percona’s Mongodb online - as I’m interested in using encryption without having to pay the equivalent of my salary to Mongo.

My question is - can I install Percona, add it to the replica set, and then after it syncs, step down the Community versions?

If so (which is great) - I notice that Percona installs the service with the default mongod name. Since I already have mongod running, how do I change the service so I can have both community and percona running on the same server for a small amount of time?

Thanks for any insight!

Hi Kyle. This doc page should help you:
https://docs.percona.com/percona-server-for-mongodb/8.0/install/upgrade-from-mongodb.html

In short, you can just in place swap binaries and it should work out of the box. Feel free to ask more questions if needed.

Thank you

This may be another topic, but I am currently not using encryption at rest. I’d like to.

My understanding is that encryption can only be enabled on an empty database. So - is best practice to create a new database, enable encryption, and then restore a backup to the new database? Or is there a better way?

That’s correct. Reference here:
https://docs.percona.com/percona-server-for-mongodb/8.0/data-at-rest-encryption.html

I can also recommend you to set up OpenBao for easier and free encryption keys management.

Thank you again for your quick responses!