Bug 752915

Summary: [RFE] slaveRead mongodb driver setting
Product: [Retired] Pulp Reporter: Jordan OMara <jomara>
Component: z_otherAssignee: Sayli Karmarkar <skarmark>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: athomas, cperry, jmatthew, rbarlow
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-23 21:52:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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