Please enable JavaScript.
Coggle requires JavaScript to display documents.
Replication MongoDB (used in production, Increase data availability,…
Replication MongoDB
used in production
Increase data availability
Stores multiple copies of data
across different databases
Helps manage data in the event or hardware failure
Replica set mongoDB
Delayed monogoDB replica set members
Must be a priority zero member
Be hidden and not visible to applications
participating in electing the primary
Settings
:
Priority value - Zero
Hidden value - True
SlaveDelay value = Number of seconds to delay
Members
Primary Node
Secondary Node
Arbiter
Priority 0 Replicaset member is a member that cannot become the primary
Maintains data set copies
Accepts and performs read operations
Elects the primary node
Has
Secondary
replicates the oplog of the primary and apply all operation
to their data set.
Reads can be directed to the secondary
Primary
Logs any changes or updates to its data sets in its oplog.
Provides strict consistency for all read operations from the primary
Hidden replica set members
invisible to the client applications
store a copy of primary node data
Performs automatic failover
When a new primary stops communicating with other members or fails, the replica set selects another member as the primary.
consists of a group on Mongod that host the same data
Can have only one primary