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

there should be a decent way to route reads to slaves using pymongo and replica set

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1
    • Component/s: None
    • Labels:
    • Environment:
      pymongo 1.9
    • # Replies:
      36
    • Last comment by Customer:
      true

      Description

      pymongo has master_slave connection implemented. But it won't work
      with replica set automatically, developers have to write their own
      codes to detect a master from connection module. The only way pymongo
      support to connect to replica set is to use connection, writes and
      reads all goes to master

      the way I thought is to make a master_slave connection instance over
      the existed connection instance and get enough info from it

      It seems php driver already supported this feature in its description

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                19 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since reply:
                  7 years, 7 weeks, 1 day ago
                  Date of 1st Reply: