What exactly happens when tombstone limit is reached

前端 未结 2 529
心在旅途
心在旅途 2021-01-31 18:12

According to cassandra\'s log (see below) queries are getting aborted due to too many tombstones being present. This is happening because once a week I cleanup (del

2条回答
  •  说谎
    说谎 (楼主)
    2021-01-31 19:05

    here is a link to full solution:

    Clean up tombstones by ensuring gc_grace_seconds is set to run at a more frequent time to suit your application or use TTLs for certain data. For example the default gc_grace_seconds is 864000 (10 days). If your TTL data is set to 6 days then you might want to change gc_grace_seconds to 604800 (7 days) to remove tombstones sooner.

    https://support.datastax.com/hc/en-us/articles/204612559-ReadTimeoutException-seen-when-using-the-java-driver-caused-by-excessive-tombstones

    cqlsh:results> alter table example with gc_grace_seconds = 10000;
    

    Regards,

    Ali

提交回复
热议问题