MeteorN
MeteorN copied to clipboard
How to Scale Mongo Replica Set in a Convenient Way
Currently, scaling up the mongo replica set in this project is a messy job.
One has to make many modifications to the docker compose file as well as the replica set initialization file.
However the ideal way to do so should be like this:
Simply run docker-compose scale primary=1 secondary=3 arbiter=1
to set how many secondaries we want.
Any insight on how to accomplish this would be greatly appreciated.