Cassandra determines which nodes data should be written to using the row key (and the replication factor, partition, strategy, and options). If a node that should receive a write is down, a hint is written to another node. When the downed node comes back online, the hints are redelivered to it. Hinted handoff is designed for dealing with temporary outages. Long-term outages can be a problem as storing hints on other nodes can begin to negatively impact their performance. This recipe shows how to disable hinted handoff.
Note
Hinted handoff writes do not count towards the strong consistency calculation discussed in the section Working with the formula for strong consistency.
Open <cassandra_home>/conf/cassandra.yaml
in a text editor and set the hinted_handoff_enabled
variable to false
:
hinted_handoff_enabled: false