首页 > 数据库技术 > 详细

mongodb 切换wiredtiger

时间:2015-07-29 12:05:30      阅读:466      评论:0      收藏:0      [点我收藏+]

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

mongodb 切换wiredtiger

原文:http://www.cnblogs.com/cxlings/p/4685359.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!