ReplicaSet, read_preference being ignored by pymongo

8 views
Skip to first unread message

edgardi...@gmail.com

unread,
May 4, 2016, 11:32:44 AM5/4/16
to mongodb-user
Hello,

I'm not sure this is the right place to post, but I'm having issues pymongo taking into account the read preference.
In short, pymongo always connects to the primary member in a replica set.

Here are two examples:

Am I doing something wrong?
I'm not sure what else should I try.

Here is the rs.conf() of the three servers:
and the rs.status():

Best,
Edgar

Bernie Hackett

unread,
May 5, 2016, 12:56:42 AM5/5/16
to mongodb-user
Reply all
Reply to author
Forward
0 new messages