Issue with MongoDb Delay Replica

When you connect with

you are not reading from the secondary because you are connecting to the replica set. The first thing the shell does is to read the rs config and reconnect and read from the primary. To connect and read to the secondary you have to remove the replica set name from the connection. this means you need to connect with

127.0.0.1:27012

rather than

m103-example/127.0.0.1:27012
2 Likes