Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allows connections to slave in replica sets #14

Merged
merged 2 commits into from
Aug 21, 2013
Merged

Allows connections to slave in replica sets #14

merged 2 commits into from
Aug 21, 2013

Conversation

rskvazh
Copy link
Contributor

@rskvazh rskvazh commented Aug 7, 2013

I've added read_preference=pymongo.ReadPreference.PRIMARY_PREFERRED argument to all MongoClients.
Resolve Issue #7

rskvazh added 2 commits August 7, 2013 13:48
Allows connections to slave in replica sets
Allows connections to slave in replica sets
esedor added a commit that referenced this pull request Aug 21, 2013
Allows connections to slave in replica sets - Nice, thanks!
@esedor esedor merged commit cbb67d0 into mongolab:master Aug 21, 2013
@meersjo
Copy link

meersjo commented Apr 29, 2014

While it removes the error, I'm not quite convinced that it is good enough: I have a SECONDARY_PREFERRED replication setup, and I manually turn on profiling for a single node when I want it.

IMO, Dex should (have a switch to) simply turn on slaveOK when it notices that it's been pointed at a slave, and do it's thing on that machine only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants