最近我们注意到从mongodb配置服务器到mongos服务器的大量传出流量:每天750GB。我们使用具有2个分片和3个配置服务器的mongodb分片群集。 Mongo db stats:
mongos> db.stats()
{
"raw" : {
"shard1/shard1a:27017,shard1b:27017" : {
"db" : "ecquant",
"collections" : 4,
"objects" : 539175,
"avgObjSize" : 158073.44626883665,
"dataSize" : 85229250392,
"storageSize" : 86339362224,
"numExtents" : 73,
"indexes" : 3,
"indexSize" : 43185632,
"fileSize" : 90084212736,
"nsSizeMB" : 16,
"dataFileVersion" : {
"major" : 4,
"minor" : 5
},
"ok" : 1
},
"shard2/shard2a:27017,shard2b:27017" : {
"db" : "ecquant",
"collections" : 3,
"objects" : 327497,
"avgObjSize" : 257366.1745054153,
"dataSize" : 84286650052,
"storageSize" : 85961473456,
"numExtents" : 61,
"indexes" : 2,
"indexSize" : 31632944,
"fileSize" : 90084212736,
"nsSizeMB" : 16,
"dataFileVersion" : {
"major" : 4,
"minor" : 5
},
"ok" : 1
}
},
"objects" : 866672,
"avgObjSize" : 195593.72251209224,
"dataSize" : 169515900444,
"storageSize" : 172300835680,
"numExtents" : 134,
"indexes" : 5,
"indexSize" : 74818576,
"fileSize" : 180168425472,
"ok" : 1
}
MongoDB版本:2.4.10
MongoDB手册没有说明来自mongo配置服务器的高流量。有没有人知道是什么原因引起的?