Sha256: e3e1f0a71a122f5f495a74fb61e5e26c845f01001e8e0102839acbfc458c0e02

Contents?: true

Size: 583 Bytes

Versions: 2

Compression:

Stored size: 583 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
  maxStalenessMS: 120000
suitable_servers:
- *1
in_latency_window:
- *1

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongo-2.4.0.rc1 spec/support/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred.yml
mongo-2.4.0.rc0 spec/support/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred.yml