Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-487

Thundering herd problem in Mongos HA

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • 2.4.2
    • 2.7
    • None
    • None

    Description

      If N threads are using a MongoClient with Mongos high-availability, the first thread to get a connection error will call disconnect(). Then all threads may simultaneously run the reconnect logic; last one wins. We should synchronize reconnection so only one thread does the work of finding the nearest mongos.

      Attachments

        Activity

          People

            jesse@mongodb.com A. Jesse Jiryu Davis
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: