Replica set - high availability and data duability


If the primary goes off-line, the remaining secondary nodes elect a new primary. When the old primary comes back online it will become another secondary.