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

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • None
    • 2.1
    • None
    • pymongo 1.9

    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

              bernie@mongodb.com Bernie Hackett
              dawn davyzhang
              Votes:
              19 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: