I logged into a secondary & did use admin; db.shutdownServer(), then I powered off the whole server with "sudo shutdown". On the primary server I am running rs.status().
For the secondary that is offline, I see:
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
I also see that lastHeartbeat
updates, but lastHeartbeatRecv
does not update. I expect the health/state fields to change if the member is offline, but it does not. How can I monitor my replica set members to see if they are offline?