I’d like to initiate a work process with replica set;
all of our servers had already set up with such.
thing is, locally, what’s the best practice (or convinience), should I actually set up rs (using run-rs for example) or should I convert a standalone mongodb to a replica set?
When you are working locally, you just need a single node Replica Set (RS). There is no need to deploy a full 3 nodes RS on the same host. It will just consume more ressources and generate useless IOPS.
Usually when I work locally, I just use Docker and deploy a temporary node but you can also persist the data in a volume if you want to reuse it next time.
I would keep the default 27017 port for simplicity but yes that’s the equivalent without Docker.
I use my Docker command line almost daily, especially when I’m working on the forum and I need to try something quickly and then trash the entire cluster.