Sha256: e72a7d134acf3ea8fb0c8215901dd503e4323e06772a281f30e13a6158d21b43

Contents?: true

Size: 837 Bytes

Versions: 2

Compression:

Stored size: 837 Bytes

Contents

heartbeatFrequencyMS: 25000  # 25 seconds.
topology_description:
  type: ReplicaSetNoPrimary
  servers:
  - &1
    address: a:27017
    type: RSSecondary
    avg_rtt_ms: 5
    lastUpdateTime: 1
    lastWrite: {lastWriteDate: {$numberLong: "25002"}}
    maxWireVersion: 5
  - &2
    address: b:27017
    type: RSSecondary
    avg_rtt_ms: 50  # Too far.
    lastUpdateTime: 25002  # Not used when there's no primary.
    lastWrite: {lastWriteDate: {$numberLong: "2"}}  # 25 sec stale + 25 sec heartbeat <= 50 sec maxStaleness.
    maxWireVersion: 5
  - &3
    address: c:27017
    type: RSSecondary
    avg_rtt_ms: 5
    lastUpdateTime: 25001
    lastWrite: {lastWriteDate: {$numberLong: "1"}}  # Too stale.
    maxWireVersion: 5
read_preference:
  mode: Nearest
  maxStalenessMS: 50000
suitable_servers:
- *1
- *2
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/ReplicaSetNoPrimary/LastUpdateTime.yml
mongo-2.4.0.rc0 spec/support/max_staleness/ReplicaSetNoPrimary/LastUpdateTime.yml