mongodb 切换wiredtiger

1.由于最近用到mongodb但查询时前十分左右,用压力测试不太稳定,所以换成第三方引擎试试,但效果还是一样。

具说第三方引擎比较给力,但在使用没有发现。现将mongodb切换wiredtiger引擎的配置如下;

destination: file
path: /soft/mongodb/log/log.txt
logAppend: true

processManagement:
fork: true

storage:
journal:
enabled: true
dbPath: /soft/mongodb/data/db/
directoryPerDB: true
engine: wiredTiger
wiredTiger:
engineConfig:
cacheSizeGB: 30
directoryForIndexes: true
collectionConfig:
blockCompressor: zlib
indexConfig:
prefixCompression: true
replication:
replSetName: set1

posted @ 2015-07-29 11:03  (二少)在南极  阅读(3875)  评论(0编辑  收藏  举报