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

相关文章:

  • 2021-05-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-01
  • 2021-04-15
  • 2022-01-21
  • 2021-06-25
猜你喜欢
  • 2022-12-23
  • 2022-02-22
  • 2021-09-12
  • 2022-01-02
  • 2021-04-24
  • 2021-10-16
  • 2021-07-15
相关资源
相似解决方案