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

Thundering herd problem in Mongos HA

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.7
    • Affects Version/s: 2.4.2
    • Component/s: None
    • None

      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.

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

              Created:
              Updated:
              Resolved: