...

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

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

     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": "write",
    18  "read_preference": {
    19    "mode": "SecondaryPreferred",
    20    "tag_sets": [
    21      {
    22        "data_center": "nyc"
    23      }
    24    ]
    25  },
    26  "suitable_servers": [
    27    {
    28      "address": "g:27017",
    29      "avg_rtt_ms": 5,
    30      "type": "Mongos"
    31    },
    32    {
    33      "address": "h:27017",
    34      "avg_rtt_ms": 35,
    35      "type": "Mongos"
    36    }
    37  ],
    38  "in_latency_window": [
    39    {
    40      "address": "g:27017",
    41      "avg_rtt_ms": 5,
    42      "type": "Mongos"
    43    }
    44  ]
    45}

View as plain text