mongod --help lumps general and MMAP-only options together

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: 3.3.9
    • Component/s: Admin, Storage
    • None
    • Storage Execution
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Not sure which component this is but doing mongod --help you get

      Storage options:
        --storageEngine arg                   what storage engine to use - defaults
                                              to wiredTiger if no data files present
        --dbpath arg                          directory for datafiles - defaults to
                                              /data/db
        --directoryperdb                      each database will be stored in a
                                              separate directory
        --noprealloc                          disable data file preallocation - will
                                              often hurt performance
        --nssize arg (=16)                    .ns file size (in MB) for new databases
        --quota                               limits each database to a certain
                                              number of files (8 default)
        --quotaFiles arg                      number of files allowed per db, implies
                                              --quota
        --smallfiles                          use a smaller default file size
        --syncdelay arg (=60)                 seconds between disk syncs (0=never,
                                              but not recommended)
        --upgrade                             upgrade db if needed
        --repair                              run repair on all dbs
        --repairpath arg                      root directory for repair files -
                                              defaults to dbpath
        --journal                             enable journaling
        --nojournal                           disable journaling (journaling is on by
                                              default for 64 bit)
        --journalOptions arg                  journal diagnostic options
        --journalCommitInterval arg           how often to group/batch commit (ms)
      

      Of these a bunch are only MMAPV1 applicable. Using one of those options with 3.3.9 gets you just this in the logs:

      2016-07-18T14:42:10.934+1000 I CONTROL  [initandlisten] options: { net: { port: 20000 }, storage: { dbPath: "/data/quotas", mmapv1: { quota: { enforced: true, maxFilesPerDB: 6 } } } }
      2016-07-18T14:42:10.987+1000 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=7680M,session_max=20000,eviction=(threads_max=4),config_base=false,statistics=(fast),l
      

      Of course, wired tiger being default, this option is apparently just being ignored.

            Assignee:
            [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: