|
Proposed test structure:
Set up a regular replica set, insert some data into at least 2 collections.
Do a rolling restart to give all nodes --shardsvr
Spin up a config server replset and a mongos, add the existing replset as a shard.
Shard one of the collections, leave the other unsharded
Spin up a new replica set, add it as a second shard, wait for chunks to be balanced.
Remove the newly added shard (will involve waiting for chunks to drain to the original shard).
Rolling restart the remaining shard to remove --shardsvr
Shut down the mongos and config servers
At every phase in this process be doing some basic CRUD ops to verify that everything is still working fine.
|