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

Collect telemetry on shard servers for find and agg

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Optimization
    • Fully Compatible
    • QO 2023-02-06, QO 2023-02-20

      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.

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

              Created:
              Updated:
              Resolved: