Sha256: 378e1687ebd612cbda157b4912aed34c57491f28d6c588b439c107917f6c965a

Contents?: true

Size: 710 Bytes

Versions: 2

Compression:

Stored size: 710 Bytes

Contents

# Users can configure a shorter ``heartbeatFrequencyMS`` than the default to
# allow a smaller ``maxStalenessMS`` with replica sets.
---
heartbeatFrequencyMS: 1000  # 1 second.
topology_description:
  type: ReplicaSetWithPrimary
  servers:
  - &1
    address: a:27017
    type: RSPrimary
    avg_rtt_ms: 5
    lastUpdateTime: 0
    maxWireVersion: 5
    lastWrite: {lastWriteDate: {$numberLong: "1"}}
  - &2
    address: b:27017
    type: RSSecondary
    avg_rtt_ms: 50  # Too far.
    lastUpdateTime: 0
    maxWireVersion: 5
    lastWrite: {lastWriteDate: {$numberLong: "1"}}
read_preference:
  mode: Nearest
  maxStalenessMS: 2000  # 2 seconds, permitted.
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/ReplicaSetWithPrimary/ShortHeartbeartShortMaxStaleness2.yml
mongo-2.4.0.rc0 spec/support/max_staleness/ReplicaSetWithPrimary/ShortHeartbeartShortMaxStaleness2.yml