【发布时间】:2020-09-14 05:20:24
【问题描述】:
我使用的是 4.2.8 版本的 MongoDB
存储引擎是wiredTiger
我输入了db.serverStatus().wiredTiger来监控缓存使用情况,但是storageEngine和wiredTiger字段没有显示。
另一方面,组成standalone可以看到这些字段
我们不能在分片集群模式下检查吗?
这是我的分片服务器和配置服务器配置文件
systemLog:
verbosity: 0
traceAllExceptions: true
path: "~~~~~"
logAppend: false
logRotate: "rename"
destination: "file"
timeStampFormat: "iso8601-utc"
net:
port: 20001
bindIp: "0.0.0.0"
storage:
dbPath: "~~~~~~"
journal:
enabled: true
commitIntervalMs: 100
directoryPerDB: true
engine: "wiredTiger"
wiredTiger:
engineConfig:
cacheSizeGB: 1.0
collectionConfig:
blockCompressor: "snappy"
indexConfig:
prefixCompression: true
security:
keyFile: "~~~~~"
sharding:
clusterRole: "configsvr"
replication:
replSetName: "config-server"
systemLog:
verbosity: 0
traceAllExceptions: true
path: "~~~~~~"
logAppend: false
logRotate: "rename"
destination: "file"
timeStampFormat: "iso8601-utc"
net:
port: 20002
bindIp: "0.0.0.0"
storage:
dbPath: "~~~~"
journal:
enabled: true
commitIntervalMs: 100
directoryPerDB: true
engine: "wiredTiger"
wiredTiger:
engineConfig:
cacheSizeGB: 10.0
collectionConfig:
blockCompressor: "snappy"
indexConfig:
prefixCompression: true
security:
keyFile: "~~~~~"
sharding:
clusterRole: "shardsvr"
replication:
replSetName: "shard1-server"
【问题讨论】:
标签: mongodb wiredtiger