webflier
2014-12-03 12:41:52 +08:00
你得说一下使用场景吧,读多还是写多?并发连接最多有多少?
> show dbs;
admin (empty)
local 19.20KB (uncompressed), 128.00KB (compressed)
xxx 75.89GB (uncompressed), 23.82GB (compressed)
> db.stats()
{
"db" : "xxx",
"collections" : 4,
"objects" : 455000240,
"avgObjSize" : 85.60531012906718,
"dataSize" : 38950436654,
"storageSize" : 9460703232,
"indexes" : 9,
"indexSize" : 42531098792,
"indexStorageSize" : 16119214080,
"ok" : 1
}
我这个库4.5亿行数据,99%的读操作,在一台256M的vps上