How it works
Nodes can share membership and heartbeat observations through gossip: each node periodically swaps what it knows with a few random peers, so news spreads through the cluster without a central registry. Cassandra, for example, gossips every second with up to three peers. One missed heartbeat is suspicion, not proof: slow links, long garbage-collection pauses, and overloaded machines can look dead. Use multiple observations and appropriate timeouts, then update routing without a single membership dependency.
A sloppy quorum lets healthy substitute nodes count when preferred replicas are unreachable. In hinted handoff, the substitute stores a temporary copy tagged with its intended owner and sends it back after recovery. Here is the sequence, with preferred replicas A and B (N = 2) and W = 2. B goes down. The coordinator writes to A and to substitute C, which notes that the copy belongs to B. A and C acknowledge, so the client sees success. Ten minutes later B returns, and C hands over the write and drops its copy.
This helps availability, but weakens fixed-set quorum reasoning. In that sequence, W + R > N holds with R = 1, yet a read that reaches B before the handoff returns the old value. Hints can also expire or be lost with the substitute, so they cannot be the only repair process. Dynamo popularized this pair. Cassandra stores hints too, but does not count them toward a normal quorum. If a read must see every acknowledged write, turn sloppy quorums off and let the write fail during the outage.
A preferred replica is gone for hours and the substitute holding hints also fails. What assumption breaks?
Hinted handoff was treated as durable recovery. Maintain enough durable copies and use anti-entropy to rebuild missing ranges.
Use this as a guide for self review; written answers are not graded.Keep in mind
- Failure detection is uncertain under delay.
- Hints bridge temporary outages; they do not replace durable repair.