So I was reading this documentation on changing config servers:
http://www.mongodb.org/display/DOCS/Changing+Config+Servers
While I am okay with the order of steps for this operation:
Renaming a config server – different host name
If you wish to use a different name or ip address in the –configdb option then this applies to you.
- Shutdown config server you want to move
- Move data to new machine
- Start new config server
- Shutdown all processes (mongod, mongos, config server).
- Restart mongod processes.
- Restart mongos processes with the new –configdb parameter.
Is there any specific reason for reversing the order of the last two steps in this:
Upgrading from one config server to three
Unfortunately you will need to shutdown the entire system.
- Shutdown all processes (mongod, mongos, config server).
- Copy the data subdirectories (dbpath tree) from the config server to the new config servers.
- Start the config servers.
- Restart mongos processes with the new –configdb parameter.
- Restart mongod processes.
In general we suggest starting the
mongosafter themongodand the config servers are up. We’ve made the docs consistent on this point.