|
I was unable to reproduce this, testing today's code (scons --64 --release) in Ubuntu 12.04 LTS Desktop.
1) Created empty directories db/config1, db/config2, db/config3, db/shard1, db/shard2.
2) Started config servers with:
./mongod --port 31001 --dbpath /home/tad/db/config1 --noprealloc --nohttpinterface
|
./mongod --port 31002 --dbpath /home/tad/db/config2 --noprealloc --nohttpinterface
|
./mongod --port 31003 --dbpath /home/tad/db/config3 --noprealloc --nohttpinterface
|
3) Started shard servers with:
./mongod --port 27017 --dbpath /home/tad/db/shard1 --nohttpinterface --noprealloc
|
./mongod --port 27018 --dbpath /home/tad/db/shard2 --nohttpinterface --noprealloc
|
4) Started mongos with:
./mongos --port 27019 --nohttpinterface --configdb "localhost:31001,localhost:31002,localhost:31003" --chunkSize 1
|
5) mongos worked as expected.
6) Tried stopping 1, 2 or 3 of the config servers, in different combinations, and then restarting mongos. mongos restarted in every case except when all three config servers were down. When any of the config servers were down, I was unable to shard a new collection, but after restarting the config servers I was able to shard a new collection.
With Greg looking on and making suggestions, I tried dropping the settings collection and restarting mongos. This did not prevent mongos from starting. I then shut down all 3 config servers and deleted the contents of their directories then restarted then. I was not able to start mongos until all three config servers were running (as expected) but was able to once all three were running again.
Everything I tried worked as designed.
|