In the MySQL world, we’re used to playing in
the MySQL
Sandbox. It allows us to deploy a testing replication
environment in seconds, without a great deal of effort or
navigating multiple virtual machines. It is a tool that we
couldn’t live without in Support.
In this post I am going to walk through the different ways
we have to deploy a MongoDB replica/sharding set test in a
similar way. It is important to mention that this is not intended
for production, but to be used for troubleshooting, learning or
just playing around with replication.
Replica Set regression test’s diagnostic commands
MongoDB includes a .js that allows us to deploy a replication set
from the MongoDB’s shell. Just run the following:
# mongo --nodb …
[Read more]