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

Limit the disk space used for storing sampled queries

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v7.0
    • Sharding NYC 2023-05-01

      To prevent query sampling from using an unreasonable amount of disk space when a user forgets to turn off query sampling after they finish analyzing a shard key or when the sample rate is low but the queries are just so large in size, we should:

      • The config.sampledQueries and config.sampledQueriesDiff should exist as capped collections, with a size cap of 10GB.
      • Set the upper bound for the sampleRate to 1000. 

            Assignee:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Reporter:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: