I've got 3 dedicated non-virtual servers (srv1-3). On one of them (srv1) i've got MongoDB in production, that already have got really big amount of data. At the present time there is no sharding or replica processes, it's just a standalone server.
So, I want this server (srv1) to be as a shrad and config server at the same time. The second server (srv2) is going to be a second shard. And the third one (srv3) is going to be a replica server.
I guess, that I have to run the mongod process on srv1 in two instances: one is the regular in
--fork, and the second is
--configsrv localhost:27019 (and previously create a separate directory for the config server, like /data/confDB).
After that, I should add
sh.addShard("srv2:27017") in mongo console and then just
Is that correct? Or it's necessary to create an additional server, that will be the config server?