MongoDB Configuration file options

MongoDB

Audience
Public
Product
FlashArray
FlashArray > Purity//FA
Technology Integrations
MongoDB
Source Type
Documentation

MongoDB uses a configuration file to specify different options for the instance to configure during startup. The location of this file can be found at the following locations in each operating system :

  • Microsoft Windows - C:\Program Files\MongoDB\Server\5.0\bin/mongod.cfg
  • Linux - /etc/mongod.conf

For MongoDB on FlashArray volumes it is recommended to turn off all compression options for the journal, indexes and collections. To turn off compression ensure that the following entries are added for the wiredTiger entries (under storage) of the configuration file :


# Where and how to store data.
storage:
  dbPath: /var/lib/mongo
  journal:
    enabled: true
  wiredTiger:
    engineConfig:
      journalCompressor: none
    indexConfig:
      prefixCompression: false
    collectionConfig:
      blockCompressor: none