Please enable JavaScript.
Coggle requires JavaScript to display documents.
Replication - Coggle Diagram
Replication
-
Leaderless Replication
-
-
-
-
Quorums
-
Read-heavy app may do r = 1, w = n
-
-
Monitoring staleness
-
-
The number of hints a replica stores can be one measure, but it's diff to measure objectively
-
Multi-Region Operation
Client wants to do a W
-
Coordinator node propagates the W to all replicas in its own region and to 1 replica in every other region which does the same
Can have diff quorum rules at different levels
(local region, cross-region, etc.)
-
Single-leader
-
-
Leader
-
-
-
-
-
If fails, elect a new one
-
-
-
Modes
-
-
Semisynchronous
-
If sync foll. becomes slow or fails, 1 of the async ones takes its place
-
-
-
Handling node outages
-
Follower failure
-
- Follower comes back online
- Compares it's data changes log w/ that of the leader
-
-
Leader failure
-
-
Automatic
- Determine leader has failed. E.g. 30s no responses
-
- Reconf. sys to recogn new L
-
Things could go wrong
-
Discarding Ws really dangerous if other storage syss outside of the DB need to be coordinated with the DB contents
-
-
-
-
-
-
-
-
-
-