Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-8263

Operation latency histogram

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 3.4 Core Server
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • 2

      Summary

      Provide a low-cost histogram in mongod that measures the execution time of reads, writes, and database commands.

      Motivation

      Currently, there is only a limited number of ways to inspect the performance of a running MongoDB instance. While the system profiler does provide detailed information about “slow” operations, profiling all operations is prohibitively expensive. This project aims to implement a lightweight histogram component in the database with negligible runtime impact, which would allow it to be on by default and allow all operations to be recorded in a useful fashion. The global histogram output will also be included in serverStatus statistics.

      Documentation

      Scope Document
      Design Document

      Docs Changes

      • $collStats aggregation stage
      • db.collection.latencyStats() shell helper
      • serverStatus.metrics change

            Assignee:
            andrew.aldridge@mongodb.com Andrew Aldridge
            Reporter:
            ramon.fernandez@mongodb.com Ramon Fernandez Marina
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              7 years, 25 weeks, 2 days ago