Hi,
I have created 3 nodes. one primary and 2 secondary.
When I login by using below command every time its logging to Primary only. Even though I have given the Port different for each login.
mongo --host “m103-repl/192.168.103.100:27001” -u “m103-admin” -p “m103-pass” --authenticationDatabase “admin”
mongo --host “m103-repl/192.168.103.100:27002” -u “m103-admin” -p “m103-pass” --authenticationDatabase “admin”
mongo --host “m103-repl/192.168.103.100:27003” -u “m103-admin” -p “m103-pass” --authenticationDatabase “admin”
How can i login to secondary to check if data (which I have updated in Primary) is flowing to secondary ? and being in secondary how can i ensure I have logged in to which node ?
Thanks.