Limit the disk space used for storing sampled queries

XMLWordPrintableJSON

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

      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
            Reporter:
            Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: