Skip to content

maxStalenessSeconds support for mgo.ReadPreference #270

@wpjunior

Description

@wpjunior

"Replica set members can lag behind the primary due to network congestion, low disk throughput, long-running operations, etc. The read preference maxStalenessSeconds option lets you specify a maximum replication lag, or “staleness”, for reads from secondaries. When a secondary’s estimated staleness exceeds maxStalenessSeconds, the client stops using it for read operations."

https://docs.mongodb.com/manual/core/read-preference/#maxstalenessseconds

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions