Replace the 'mongo' dict with a Member object everywhere in ReplicaSetConnection. A handful of commands obey read preferences; most are always sent to primary. Track a 5-sample moving average of each replica set member's ping time. Connection detects whether it's connected to primary, secondary, or mongos. |
||
|---|---|---|
| .. | ||
| bson | ||
| gridfs | ||
| pymongo | ||
| index.rst | ||