...

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

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

     1{
     2  "description": "Selections from many choices occur at correct frequencies",
     3  "topology_description": {
     4    "type": "Sharded",
     5    "servers": [
     6      {
     7        "address": "a:27017",
     8        "avg_rtt_ms": 35,
     9        "type": "Mongos"
    10      },
    11      {
    12        "address": "b:27017",
    13        "avg_rtt_ms": 35,
    14        "type": "Mongos"
    15      },
    16      {
    17        "address": "c:27017",
    18        "avg_rtt_ms": 35,
    19        "type": "Mongos"
    20      },
    21      {
    22        "address": "d:27017",
    23        "avg_rtt_ms": 35,
    24        "type": "Mongos"
    25      },
    26      {
    27        "address": "e:27017",
    28        "avg_rtt_ms": 35,
    29        "type": "Mongos"
    30      },
    31      {
    32        "address": "f:27017",
    33        "avg_rtt_ms": 35,
    34        "type": "Mongos"
    35      },
    36      {
    37        "address": "g:27017",
    38        "avg_rtt_ms": 35,
    39        "type": "Mongos"
    40      },
    41      {
    42        "address": "h:27017",
    43        "avg_rtt_ms": 35,
    44        "type": "Mongos"
    45      },
    46      {
    47        "address": "i:27017",
    48        "avg_rtt_ms": 35,
    49        "type": "Mongos"
    50      }
    51    ]
    52  },
    53  "mocked_topology_state": [
    54    {
    55      "address": "a:27017",
    56      "operation_count": 0
    57    },
    58    {
    59      "address": "b:27017",
    60      "operation_count": 5
    61    },
    62    {
    63      "address": "c:27017",
    64      "operation_count": 5
    65    },
    66    {
    67      "address": "d:27017",
    68      "operation_count": 10
    69    },
    70    {
    71      "address": "e:27017",
    72      "operation_count": 10
    73    },
    74    {
    75      "address": "f:27017",
    76      "operation_count": 20
    77    },
    78    {
    79      "address": "g:27017",
    80      "operation_count": 20
    81    },
    82    {
    83      "address": "h:27017",
    84      "operation_count": 50
    85    },
    86    {
    87      "address": "i:27017",
    88      "operation_count": 60
    89    }
    90  ],
    91  "iterations": 10000,
    92  "outcome": {
    93    "tolerance": 0.03,
    94    "expected_frequencies": {
    95      "a:27017": 0.22,
    96      "b:27017": 0.18,
    97      "c:27017": 0.18,
    98      "d:27017": 0.125,
    99      "e:27017": 0.125,
   100      "f:27017": 0.074,
   101      "g:27017": 0.074,
   102      "h:27017": 0.0277,
   103      "i:27017": 0
   104    }
   105  }
   106}

View as plain text