This from the MongoDB University Class M102:MongoDB for DBAs. Sharding Setup Demo. This is not an original script by me the author. Author: Bill Glennon. Date: January 18, 2014. This has been tested yet so it may contain typos.