Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-45439

Add support for per operation hedging via an explicit read preference

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.3
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Fully Compatible
    • Sharding 2020-01-27

      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

            Assignee:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Reporter:
            mira.carey@mongodb.com Mira Carey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: