-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
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:
- The telemetry store key should now be the hash received from mongos.
- Certain metrics will be stored on mongos and so no longer need to be stored on mongod
- "firstSeenTimestamp"
- "lastExecutionMicros"
- "execCount"
- "queryExecMicros"
- "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.
- is related to
-
SERVER-73878 Don't append hashedTelemetryKey to commands if telemetry is disabled
- Closed
-
SERVER-74945 Record telemetry for the shards part of a pipeline on mongod shard servers
- Closed