Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-38464

Add setParameter for custom FTDC data directory

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.8
    • Affects Version/s: None
    • Component/s: Diagnostics
    • Labels:
      None
    • Fully Compatible
    • Security 2018-12-31, Security 2019-01-14, Security 2019-01-28

      Currently, the FTDC diagnostics directory is always relative to the data directory. If we allow it to be set via setParameter, we can then put these directories in a custom subdir of the data directory during testing. This will allow us to easily archive this data for help with understanding BFs.

      For reference:

      bencaimano@just-ben-book:/Users/bencaimano/git/mongodb/mongo [1]$ git grep kFTDCDefaultDirectory
      src/mongo/db/ftdc/constants.h:constexpr StringData kFTDCDefaultDirectory = "diagnostic.data"_sd;
      src/mongo/db/ftdc/ftdc_mongod.cpp:    dir /= kFTDCDefaultDirectory.toString();
      src/mongo/db/ftdc/util.cpp:    base += "." + kFTDCDefaultDirectory.toString();
      

      CC mark.benvenuto

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: