...

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

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

     1{
     2  "topology_description": {
     3    "type": "LoadBalanced",
     4    "servers": [
     5      {
     6        "address": "g:27017",
     7        "avg_rtt_ms": 0,
     8        "type": "LoadBalancer"
     9      }
    10    ]
    11  },
    12  "operation": "read",
    13  "read_preference": {
    14    "mode": "PrimaryPreferred",
    15    "tag_sets": [
    16      {
    17        "data_center": "nyc"
    18      }
    19    ]
    20  },
    21  "suitable_servers": [
    22    {
    23      "address": "g:27017",
    24      "avg_rtt_ms": 0,
    25      "type": "LoadBalancer"
    26    }
    27  ],
    28  "in_latency_window": [
    29    {
    30      "address": "g:27017",
    31      "avg_rtt_ms": 0,
    32      "type": "LoadBalancer"
    33    }
    34  ]
    35}

View as plain text