I am facing an issue in the shard distribution.
MongoDB Version: 3.0.15
I have a collection that is sharded. I have two shards.
Output of db.getCollection('event').stats()
{
"sharded" : true,
"capped" : false,
"ns" : "coll.event",
"count" : 386631514,
size" : NumberLong(4178195857267),
"storageSize" : 293516279808.0,
"totalIndexSize" : 391203631104.0,
"shards" : {
**"shard0000" :** {
"ns" : "coll.event",
"count" : 182463940,
"size" : NumberLong(2187685928765),
"avgObjSize" : 11989,
"storageSize" : 148825059328.0,
"capped" : false,
},
**"shard0001"** : {
"ns" : "coll.event",
"count" : 204167574,
"size" : NumberLong(1990509928502),
"avgObjSize" : 9749,
"storageSize" : 144691220480.0,
"capped" : false,
}
},
"ok" : 1.0
}
Output of Shard Distribution
db.getCollection('event').getShardDistribution()
Shard shard0000 at localhost:27010
Even though there are two shards, the shard distribution shows only one. Now only one of the sharded folder is getting full.
Why is it so? What do I have to do to make the shard distribution common?