We use the sh.shardCollection() method, specifying the full namespace of the collection and the target index or compound index to use as the shard key. If you shard a populated collection, only one chunk is created initially. The balancer then migrates ranges from that chunk if necessary according to the configured range size.
0-2 years experience
2-5 years experience
5-8 years experience
8+ years experience