I have setup mongodb sharded cluster with following topology
- 3×3 shards (each have 2 replica sets)
- 1×3 config server replica cluster
- 2 mongos routers
I want to shutdown whole cluster temporary keeping data integrity intact.
I may use this setup later so I do not want to scrap whole setup.
Any suggestions would be appreciated.
Best Answer
stop balancing - run
sh.stopBalancer()
frommongos
shutdown
mongos
services - rundb.shutdownServer()
frommongos
shutdown config mongod services - run
db.shutdownServer()
from config servermongod
shutdown shards mongod services - run
db.shutdownServer()
from replica setmongod