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

mongos doesn't distribute secondary reads evenly on v4.4 or above

    XMLWordPrintableJSON

Details

    • ALL
    • Service Arch 2021-06-28, Service Arch 2021-07-12, Service Arch 2021-08-09, Service Arch 2021-08-23, Service Arch 2021-10-04, Service Arch 2022-1-24, Service Arch 2022-2-07, Service Arch 2022-2-21, Service Arch 2022-03-07, Service Arch 2022-03-21, Service Arch 2022-04-04
    • 5

    Description

      In v4.2, mongos correctly balanced outgoing read requests to secondary nodes by randomizing the connection order when we issued requests here. In v4.4, the introduction of either hedged reads, opportunistic reads, or changes to ConnectionPool have made it such that one of these connections now consistently resolves first, effectively starving one of the secondaries of any reads and unbalancing our read requests. In this ticket, create a unit or integration test to capture this behavior and fix it.

      Attachments

        Activity

          People

            vojislav.stojkovic@mongodb.com Vojislav Stojkovic
            tyler.seip@mongodb.com Tyler Seip (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            23 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: