Tombstone vs nodetool and repair

后端 未结 2 1138
迷失自我
迷失自我 2021-01-14 09:15

I inserted 10K entries in a table in Cassandra which has the TTL of 1 minute under the single partition.

After the successful insert, I tried to read all the data f

相关标签:
2条回答
  • 2021-01-14 09:47

    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.

    0 讨论(0)
  • 2021-01-14 10:04

    New cassandra support .

    $ ./nodetool garbagecollect
    

    After this command "Transfer memory to disk, before restart"

    $ ./nodetool drain    # "This closes connection after that, clients can not access. "
    

    Shutdown cassandra and restart again. "You should restart after drain. "

    ** You do not need to drain, ! but, depends on situation.! These are extra informations.

    0 讨论(0)
提交回复
热议问题