Bug 752915 - [RFE] slaveRead mongodb driver setting
Summary: [RFE] slaveRead mongodb driver setting
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Sayli Karmarkar
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-10 19:07 UTC by Jordan OMara
Modified: 2015-03-23 01:11 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-23 21:52:53 UTC


Attachments (Terms of Use)

Description Jordan OMara 2011-11-10 19:07:09 UTC
I'm working on the IT hosted infrastructure for pulp/mongodb. One thing we were interested in is the ability to scale our mongo replica sets for pulp out horizontally. The mongo driver for python should support a "read slaves" functionality that should set read-operations to randomly read from slaves in addition to the master, potentially increasing throughput.

If you guys could enable this (or make it configurable) that would be awesome!

I'm not sure what this is called in the python module. In ruby its "read_secondary" and in java its "slaveOK". 

Thanks!

Comment 1 Jordan OMara 2011-11-10 21:49:22 UTC
http://api.mongodb.org/python/current/api/pymongo/master_slave_connection.html

Details on the setting for pymongo ; "slave_ok" is what we want

Comment 2 John Matthews 2011-11-11 16:48:25 UTC
Looks like this will required an upgrade to mongodb, I see the doc link says new in 2.0.

Comment 3 Randy Barlow 2013-12-23 21:52:53 UTC
We added this feature in Pulp 2.2.1[0].

[0] https://pulp-user-guide.readthedocs.org/en/pulp-2.3/release-notes/2.2.x.html#pulp-2-2-1


Note You need to log in before you can comment on or make changes to this bug.