Add sample based rate limiting to $queryStats

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None
    • 0

      The current rate limiter for $queryStats is capped at 100 queries per second, which is inadequate for high throughput workloads. A rate limiter based off a sample rate should be available instead to solve this issue.

       

      We must ensure that collecting 1% sample of queries performs on par with the current rate limiting of 100 queries per second

       

      See POC branch for reference: https://github.com/10gen/mongo/compare/master...evan.bergeron/percentage-sampling-weighted-stats

            Assignee:
            Lee Maguire
            Reporter:
            Lee Maguire
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: