...

Text file src/go.mongodb.org/mongo-driver/testdata/server-selection/in_window/rs-three-choices.json

Documentation: go.mongodb.org/mongo-driver/testdata/server-selection/in_window

     1{
     2  "description": "Selections from three servers occur at proper distributions (replica set)",
     3  "topology_description": {
     4    "type": "ReplicaSetWithPrimary",
     5    "servers": [
     6      {
     7        "address": "a:27017",
     8        "avg_rtt_ms": 35,
     9        "type": "RSPrimary"
    10      },
    11      {
    12        "address": "b:27017",
    13        "avg_rtt_ms": 35,
    14        "type": "RSSecondary"
    15      },
    16      {
    17        "address": "c:27017",
    18        "avg_rtt_ms": 35,
    19        "type": "RSSecondary"
    20      }
    21    ]
    22  },
    23  "mocked_topology_state": [
    24    {
    25      "address": "a:27017",
    26      "operation_count": 3
    27    },
    28    {
    29      "address": "b:27017",
    30      "operation_count": 6
    31    },
    32    {
    33      "address": "c:27017",
    34      "operation_count": 20
    35    }
    36  ],
    37  "iterations": 2000,
    38  "outcome": {
    39    "tolerance": 0.05,
    40    "expected_frequencies": {
    41      "a:27017": 0.66,
    42      "b:27017": 0.33,
    43      "c:27017": 0
    44    }
    45  }
    46}

View as plain text