Details
-
New Feature
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
None
-
Fully Compatible
-
Sharding 2020-01-27
Description
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 |
}
|
}
|
which should map to RemoteCommandRequestOnAny::HedgeOptions of
- count = 1
- as in implicit readPreference nearest
Attachments
Issue Links
- is documented by
-
DOCS-13363 Investigate changes in SERVER-45439: Add support for per operation hedging via an explicit read preference
-
- Closed
-
-
DOCS-13506 Investigate changes in SERVER-46567: Update shell methods Mongo.setReadPref and cursor.readPref to support hedging
-
- Closed
-