Skip to content

Instantly share code, notes, and snippets.

@mkurian
Created December 6, 2019 00:19
Show Gist options
  • Save mkurian/91d7549514728b0fccd3399604dc8a1d to your computer and use it in GitHub Desktop.
Save mkurian/91d7549514728b0fccd3399604dc8a1d to your computer and use it in GitHub Desktop.
cassandra tombstone config
Tombstones are really deleted after period specified by gc_grace_seconds setting of the table (it's 10 days by default). This is done to make sure that any node that was down at time of deletion will pickup these changes after recover. Here are the blog posts that discuss this in great details: from thelastpickle (recommended), 1, 2, and DSE documentation or Cassandra documentation.
You can set the gc_grace_seconds option on the individual table to lower value to remove deleted data faster, but this should be done only for tables with TTLed data. You may also need to tweak tombstone_threshold & tombstone_compaction_interval table options to perform compactions faster. See this document or this document for description of these options.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment