[MognoDB]: How do I enable Sharding (draft version)
To enable sharding :- ================== sh.addShard(“rs1/ip-10-0-0-197:27010,ec2-52-7-8-107.compute-1.amazonaws.com:27011”) sh.addShard(“rs2/ip-10-0-0-197:27020,ec2-52-7-8-107.compute-1.amazonaws.com:27021”) use shard_db db.shard_col.ensureIndex( { user_id : 1 }, { unique : true }) sh.enableSharding(“shard_db”) sh.shardCollection(“shard_db.shard_col”, {“user_id”:1}) sh.startBalancer() sh.getBalancerState() sh.isBalancerRunning() use shard_db for(var i = 1; i <= 100000 ; i++){db.shard_col.insert({“user_id” : i ,…