A Replica Set is a group of MongoDB servers (mongod processes) that maintain the same dataset. One node acts as the Primary (receives all writes) and the others are Secondaries (replicate data asynchronously). If the Primary goes down, an automatic election promotes a Secondary within seconds.
ADVERTISEMENT