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

Remove the code for computing hedging delay and add maxTimeMSForHedgedReads serverParameter

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.3.4
    • Sharding
    • None
    • Fully Compatible
    • Service Arch 2020-02-24

    Description

      We recently made a few changes to the design. We now always hedge, immediately, and set a maxTimeMS on the hedged read (configurable via maxTimeMSForHedgedReads runtime server parameter).

      Therefore, the code for staggering support should be removed. That includes the code for the "delay" flag in $readPreference and the code for computing the hedging delay. So the user-facing syntax is now: 

      {
          ...,
          $readPreference: {
             mode: "nearest",
             hedge:
              { enabled: true, // default value is true }
           } 
      }
        
      

       

      Attachments

        Issue Links

          Activity

            People

              cheahuychou.mao@mongodb.com Cheahuychou Mao
              cheahuychou.mao@mongodb.com Cheahuychou Mao
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: