...

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

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

     1{
     2  "topology_description": {
     3    "type": "ReplicaSetNoPrimary",
     4    "servers": [
     5      {
     6        "address": "b:27017",
     7        "avg_rtt_ms": 5,
     8        "type": "RSSecondary",
     9        "tags": {
    10          "data_center": "nyc"
    11        }
    12      },
    13      {
    14        "address": "c:27017",
    15        "avg_rtt_ms": 100,
    16        "type": "RSSecondary",
    17        "tags": {
    18          "data_center": "nyc"
    19        }
    20      }
    21    ]
    22  },
    23  "operation": "read",
    24  "read_preference": {
    25    "mode": "PrimaryPreferred",
    26    "tag_sets": [
    27      {}
    28    ]
    29  },
    30  "suitable_servers": [
    31    {
    32      "address": "b:27017",
    33      "avg_rtt_ms": 5,
    34      "type": "RSSecondary",
    35      "tags": {
    36        "data_center": "nyc"
    37      }
    38    },
    39    {
    40      "address": "c:27017",
    41      "avg_rtt_ms": 100,
    42      "type": "RSSecondary",
    43      "tags": {
    44        "data_center": "nyc"
    45      }
    46    }
    47  ],
    48  "in_latency_window": [
    49    {
    50      "address": "b:27017",
    51      "avg_rtt_ms": 5,
    52      "type": "RSSecondary",
    53      "tags": {
    54        "data_center": "nyc"
    55      }
    56    }
    57  ]
    58}

View as plain text