Sha256: a12532a66fb3a353e219cc03aac10b1f9201d78f820297cf883fb8dc41803807

Contents?: true

Size: 585 Bytes

Versions: 69

Compression:

Stored size: 585 Bytes

Contents

# Fallback to primary if no secondary is fresh enough.
---
topology_description:
  type: ReplicaSetWithPrimary
  servers:
  - &1
    address: a:27017
    type: RSPrimary
    avg_rtt_ms: 5
    lastUpdateTime: 0
    maxWireVersion: 5
    lastWrite: {lastWriteDate: {$numberLong: "1000001"}}
  - &2
    address: b:27017
    type: RSSecondary
    avg_rtt_ms: 5
    lastUpdateTime: 0
    maxWireVersion: 5
    lastWrite: {lastWriteDate: {$numberLong: "1"}}  # Very stale.
read_preference:
  mode: SecondaryPreferred
  maxStalenessSeconds: 120
suitable_servers:
- *1
in_latency_window:
- *1

Version data entries

69 entries across 67 versions & 2 rubygems

Version Path
mongo-2.13.0.rc1 spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred.yml
mongo-2.12.2 spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred.yml
mongo-2.10.5 spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred.yml
mongo-2.11.5 spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred.yml
mongo-2.13.0.beta1 spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred.yml
mongo-2.12.1 spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred.yml
mongo-2.12.0.rc0 spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred.yml
mongo-2.11.4 spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred.yml
mongo-2.10.4 spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred.yml
mongo-2.11.3 spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred.yml
mongo-2.11.2 spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred.yml
mongo-2.11.1 spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred.yml
mongo-2.10.3 spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred.yml
mongo-2.11.0 spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred.yml
mongo-2.9.2 spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred.yml
mongo-2.10.2 spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred.yml
mongo-2.11.0.rc0 spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred.yml
mongo-2.10.1 spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred.yml
mongo-2.10.0 spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred.yml
mongo-2.9.1 spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred.yml