...

Text file src/go.mongodb.org/mongo-driver/testdata/server-selection/server_selection/Sharded/read/Primary.json

Documentation: go.mongodb.org/mongo-driver/testdata/server-selection/server_selection/Sharded/read

     1{
     2  "topology_description": {
     3    "type": "Sharded",
     4    "servers": [
     5      {
     6        "address": "g:27017",
     7        "avg_rtt_ms": 5,
     8        "type": "Mongos"
     9      },
    10      {
    11        "address": "h:27017",
    12        "avg_rtt_ms": 35,
    13        "type": "Mongos"
    14      }
    15    ]
    16  },
    17  "operation": "read",
    18  "read_preference": {
    19    "mode": "Primary"
    20  },
    21  "suitable_servers": [
    22    {
    23      "address": "g:27017",
    24      "avg_rtt_ms": 5,
    25      "type": "Mongos"
    26    },
    27    {
    28      "address": "h:27017",
    29      "avg_rtt_ms": 35,
    30      "type": "Mongos"
    31    }
    32  ],
    33  "in_latency_window": [
    34    {
    35      "address": "g:27017",
    36      "avg_rtt_ms": 5,
    37      "type": "Mongos"
    38    }
    39  ]
    40}

View as plain text