最近我们注意到从 mongodb 配置服务器到 mongos 服务器的大量传出流量:每天 750GB。我们使用具有 2 个分片和 3 个配置服务器的 mongodb 分片集群。Mongo 数据库统计:
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 配置服务器的高流量。有谁知道是什么原因造成的?