...

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

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

     1topology_description:
     2  type: Sharded
     3  servers:
     4  - &1
     5    address: g:27017
     6    avg_rtt_ms: 5
     7    type: Mongos
     8  - &2
     9    address: h:27017
    10    avg_rtt_ms: 35
    11    type: Mongos
    12operation: read
    13read_preference:
    14  mode: SecondaryPreferred
    15  tag_sets:
    16  - data_center: nyc
    17suitable_servers:
    18- *1
    19- *2
    20in_latency_window:
    21- *1

View as plain text