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

Document srvMaxHosts in MongoClient options

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.4
    • Affects Version/s: None
    • Component/s: None
    • None

      Let's document srvMaxHosts in MongoClient options. So far the only mention of srvMaxHosts is in the changelog here:

      MongoClient now accepts a URI and keyword argument srvMaxHosts that limits the number of mongos-like hosts a client will connect to. More specifically, when a mongodb+srv:// connection string resolves to more than srvMaxHosts number of hosts, the client will randomly choose a srvMaxHosts sized subset of hosts.

      https://pymongo.readthedocs.io/en/stable/changelog.html?highlight=srvMaxHosts#notable-improvements

            Assignee:
            julius.park@mongodb.com Julius Park (Inactive)
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: