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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM