Support a new readPreference option:
{ ... fields ..., $readPreference: {mode: "nearest", maxStalenessMS: 30000}}
See the soon-to-be-published Max Staleness spec and related changes to the Server Discovery And Monitoring and the Server Selection Specs for behavior details.
- related to
-
SERVER-24676 Implement support for maxStalenessMS in the ReplicaSetMonitor
- Closed
-
DRIVERS-293 Allow users to set a limit on acceptable staleness
- Closed
- links to