You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by 曹志富 <ca...@gmail.com> on 2015/06/09 04:26:43 UTC

auto clear data with ttl

I have C* 2.1.5,store some data with ttl.Reduce the gc_grace_seconds to
zero.

But it seems has no effect.

Did I miss something?
--------------------------------------
Ranger Tsao

Re: auto clear data with ttl

Posted by 曹志富 <ca...@gmail.com>.
Thank You. I have change unchecked_tombstone_compaction to true . Major
compaction will cause a big sstable ,I think is a lot good choice

--------------------------------------
Ranger Tsao

2015-06-09 11:16 GMT+08:00 Aiman Parvaiz <ai...@flipagram.com>:

> So gc_grace zero will remove tombstones without any delay after
> compaction. So it's possible that tombstones containing SSTs still need to
> be compacted. So either you can wait for compaction to happen or do a
> manual compaction depending on your compaction strategy. Manual compaction
> does have some drawbacks so please read about it.
>
> Sent from my iPhone
>
> On Jun 8, 2015, at 7:26 PM, 曹志富 <ca...@gmail.com> wrote:
>
> I have C* 2.1.5,store some data with ttl.Reduce the gc_grace_seconds to
> zero.
>
> But it seems has no effect.
>
> Did I miss something?
> --------------------------------------
> Ranger Tsao
>
>

Re: auto clear data with ttl

Posted by Aiman Parvaiz <ai...@flipagram.com>.
So gc_grace zero will remove tombstones without any delay after compaction. So it's possible that tombstones containing SSTs still need to be compacted. So either you can wait for compaction to happen or do a manual compaction depending on your compaction strategy. Manual compaction does have some drawbacks so please read about it.

Sent from my iPhone

> On Jun 8, 2015, at 7:26 PM, 曹志富 <ca...@gmail.com> wrote:
> 
> I have C* 2.1.5,store some data with ttl.Reduce the gc_grace_seconds to zero.
> 
> But it seems has no effect.
> 
> Did I miss something?
> --------------------------------------
> Ranger Tsao