-
Type: Task
-
Resolution: Duplicate
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: manual
-
Labels:
Description
This ticket introduced a new $readPreference key "hedge" with two subkeys: "enabled" (default true) and "delay" (default true) . (Removed delay in DOCS-13429)
Description of Linked Ticket
Add support for operation hedging, as in SERVER-45432, with an explicit readPreference.
The form of that readpreference should be:
// some existing command { ..., $readPreference: { mode: "nearest", hedge: { enabled: true, // default value is true delay: true, // default value is true } }
which should map to RemoteCommandRequestOnAny::HedgeOptions of
- count = 1
- as in implicit readPreference nearest
Scope of changes
Impact to Other Docs
MVP (Work and Date)
Resources (Scope or Design Docs, Invision, etc.)
- documents
-
SERVER-45439 Add support for per operation hedging via an explicit read preference
- Closed
- duplicates
-
DOCS-13506 Investigate changes in SERVER-46567: Update shell methods Mongo.setReadPref and cursor.readPref to support hedging
- Closed
- is related to
-
DOCS-13429 Investigate changes in SERVER-46234: Remove the code for computing hedging delay and add maxTimeMSForHedgedReads serverParameter
- Closed
-
DOCS-13506 Investigate changes in SERVER-46567: Update shell methods Mongo.setReadPref and cursor.readPref to support hedging
- Closed