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

Collect telemetry on shard servers for find and agg

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 7.0.0-rc0
    • None
    • None
    • Query Optimization
    • Fully Compatible
    • QO 2023-02-06, QO 2023-02-20

    Description

      A new optional field will need to be added to the find and aggregate commands for transmitting the telemetry key (HostAndPort + md5 hash) to mongod. We should update the telemetry store on mongod in the following ways:

      1. The telemetry store key should now be the hash received from mongos.
      2. Certain metrics will be stored on mongos and so no longer need to be stored on mongod
        1. "firstSeenTimestamp"
        2. "lastExecutionMicros"
        3. "execCount"
        4. "queryExecMicros"
        5. "docsReturned"

      When mongos receives a command request, it will generate a hash(md5) from the telemetry key, creating a shape ID (HostAndPort of mongos + md5 hash), adding it to the requests sent to mongod, and accumulating the above metrics in the telemetry store at the end of execution.

      Note, we should disallow external $telemetry calls (ones not originating from mongos) on shard servers.

      Attachments

        Issue Links

          Activity

            People

              ted.tuckman@mongodb.com Ted Tuckman
              joshua.lapacik@mongodb.com Joshua Lapacik
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: