|
Sections:
Adding and changing config servers is a bit tricky right now. This will be improved in a future release, see http://jira.mongodb.org/browse/SERVER-1658. Note that config servers are not a replica set: instead they use a two phase commit protocol to keep their data synchronous. Thus each config server (if you have 3) has exactly the same data. When one or more config servers are down, the others are available for reading, but not for writing. During that window of time, sharding metadata will be static (which is fine for a while). Upgrading from one config server to threeUnfortunately you will need to shutdown the entire system.
Moving your config servers - same host name or virtual ipIf you are using hostnames or virtual ips for your config, this is pretty simple.
Renaming a config server - different host nameIf you wish to use a different name or ip address in the --configdb option then this applies to you.
Replacing a dead config serverLet's assume we have been running with mongos commands lines of: mongos --configdb hosta,hostb,hostc and that hostb has died. We want to replace it.
That's it. The key above is that we reused the logical (DNS) name of the host. That way we do not have to tell the other (many) processes in the system where the config servers are. Check the length of your DNS ttl using the dig command. |

PLEASE POST QUESTIONS IN THE USER GROUPS FORUM. Post non-question comments and helpful hints here.
blog comments powered by Disqus