Sha256: 8dd3e99a3f4febf28a8a7e6f8f38dfff566d07fbc641e45fb27c98f5383a976c

Contents?: true

Size: 852 Bytes

Versions: 2

Compression:

Stored size: 852 Bytes

Contents

heartbeatFrequencyMS: 25000  # 25 seconds.
topology_description:
  type: ReplicaSetWithPrimary
  servers:
  - &1
    address: a:27017
    type: RSPrimary
    avg_rtt_ms: 50  # Too far.
    lastUpdateTime: 1
    lastWrite: {lastWriteDate: {$numberLong: "2"}}
    maxWireVersion: 5
  - &2
    address: b:27017
    type: RSSecondary
    avg_rtt_ms: 5
    lastUpdateTime: 25001
    # Updated 25 sec after primary, so 25 sec stale.
    # 25 sec stale + 25 sec heartbeat <= 50 sec maxStaleness.
    lastWrite: {lastWriteDate: {$numberLong: "2"}}
    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:
- *2

Version data entries

2 entries across 2 versions & 1 rubygems

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