我在Linux Redhat 6上运行3.0版本的mongodb社区版。我想禁用压缩选项以提高性能。
我的配置文件是:
systemLog:
destination: file
path: /var/log/mongodb/domains/Instruments/INS_UNIV_univ_DBIZ/mongod.log
logAppend: true
storage:
dbPath: "/export/mongodb/domains/Instruments/INS_UNIV_univ_DBIZ/data"
engine: wiredTiger
wiredTiger:
collectionConfig:
blockCompressor: none
processManagement:
fork: true
pidFilePath: /var/run/mongodb/mongod-ins.pid
net:
port: 5865
replication:
replSetName: MONGO_INS_UNIV_univ_DBIZ
security:
keyFile: /etc/keyfile-ins.txt
setParameter:
enableLocalhostAuthBypass: false
这个配置文件运行良好,mongo服务器正常启动,但是如果我添加选项索引前缀压缩,服务器不会再启动。
systemLog:
destination: file
path: /var/log/mongodb/domains/Instruments/INS_UNIV_univ_DBIZ/mongod.log
logAppend: true
storage:
dbPath: "/export/mongodb/domains/Instruments/INS_UNIV_univ_DBIZ/data"
engine: wiredTiger
wiredTiger:
collectionConfig:
blockCompressor: none
indexConfig:
prefixCompression: none
processManagement:
fork: true
pidFilePath: /var/run/mongodb/mongod-ins.pid
net:
port: 5865
replication:
replSetName: MONGO_INS_UNIV_univ_DBIZ
security:
keyFile: /etc/keyfile-ins.txt
setParameter:
enableLocalhostAuthBypass: false
任何帮助将不胜感激
那应该是
indexConfig:
prefixCompression: false
而不是
indexConfig:
prefixCompression: none
由于属性是布尔值,而不是字符串