[mongodb-user] ReplicaSet, read_preference being ignored by pymongo
ReplicaSet, read_preference being ignored by pymongo
Wed, 4 May 2016 06:53:43 -0700 (PDT)
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():
You received this message because you are subscribed to the Google Groups "mongodb-user"
For other MongoDB technical support options, see:
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to mongodb-user@xxxxxxxxxxxxxxxx.
Visit this group at
To view this discussion on the web visit
For more options, visit
for more updates.