Details
-
Question
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
None
-
2 mongos ,2 shards (every shared has replica Sets), 2 config nodes
-
v3.0
Description
Hi
I find a collection size is 55G, and use mongodump to export the export's json is 55.6G. I think the mongodump is compress the data on export.
But this is no compress. Is shared collection not support the compress?
mongos> db.,db.gcrmCustomerContactInfo.stats(1024*104db.gcrmCustomerContactInfo.stats(1024*1024*1024)db.gcrmCustomerContactInfo.stats(1024*1024*1024)
{
"sharded" : true,
"capped" : false,
"ns" : "gcrm.gcrmCustomerContactInfo",
"count" : 57924620,
"size" : 55,
"storageSize" : 6,
"totalIndexSize" : 0,
"indexSizes" :
[mongodb@cnsh230234 gcrm]$ du -sh *
56G gcrmCustomerContactInfo.bson
4.0K gcrmCustomerContactInfo.metadata.json
The export command is “mongodump -d gcrm -c gcrmCustomerContactInfo -o /paic/mongodb/home/mongodb/xionglang”