![]() ![]() The replication from the primary node’s oplog to the secondaries happens asynchronously, which allows the replica set to continue to function despite potential failure of one or more of its members. This functionality is illustrated in the following diagram: The role of the secondary nodes is to then replicate the primary node’s operation log and make sure that the data sets reflect exactly the primary’s data sets. ![]() All changes on the primary node’s data sets are recorded in a special capped collection called the operation log (oplog). A MongoDB cluster needs to have a primary node and a set of secondary nodes in order to be considered a replica set.Īt most, one primary node must exist, and its role is to receive all write operations. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |