there is the replica with three member (primary,secondary,secondary). Suppose one of secondaries down for a day, after return secondary back to replica how can i find, i
@arcseldon gave the right answer, however, rs.printSlaveReplicationInfo() will be depricated soon
rs0:PRIMARY> rs.printSlaveReplicationInfo() WARNING: printSlaveReplicationInfo is deprecated and may be removed in the next major release. Please use printSecondaryReplicationInfo instead.
So, start using rs.printSecondaryReplicationInfo() instead
rs0:PRIMARY> rs.printSecondaryReplicationInfo()
source: mongo-1.mongo.ns.svc.cluster.local:27017
syncedTo: Sat Sep 26 2020 01:26:32 GMT+0000 (UTC)
10 secs (0 hrs) behind the primary
source: mongo-2.mongo.ns.svc.cluster.local:27017
syncedTo: Sat Sep 26 2020 01:26:32 GMT+0000 (UTC)
10 secs (0 hrs) behind the primary