tiancheng91 / collection

笔记
https://github.com/tiancheng91/collection/issues
21 stars 1 forks source link

mongo 配置项 #9

Open tiancheng91 opened 6 years ago

tiancheng91 commented 6 years ago
storage.wiredTiger.engineConfig.directoryForIndexes = true;
# 多个磁盘读写加速.  (索引文件存独立ssd, 数据文件存btrfs raid0)

mongod stores indexes and collections in separate subdirectories under the data (i.e. storage.dbPath) directory. Specifically, mongod stores the indexes in a subdirectory named index and the collection data in a subdirectory named collection.

By using a symbolic link, you can specify a different location for the indexes. Specifically, when mongod instance is not running, move the index subdirectory to the destination and create a symbolic link named index under the data directory to the new destination.