优化CentOS上MongoDB的存储引擎可从以下方面入手:
storage.wiredTiger.engineConfig.cacheSizeGB调整。snappy(平衡压缩比和CPU负载),通过storage.wiredTiger.collectionConfig.blockCompressor设置。commitIntervalMs(默认100ms)和syncPeriodSecs减少磁盘I/O。mongostat、mongotop或第三方工具监控性能,分析慢查询并优化。参考来源: