Reaping Tombstones

Nick Marino nmarino at basho.com
Tue Jan 3 13:32:20 EST 2017


We have new tombstone reaping functionality in the works for Riak KV 2.3,
which should allow for safe and automatic removal of old leftover
tombstones. In the mean time, you can potentially trigger the deletion of
old, leftover tombstones by doing reads to those keys; if all the primary
replicas return the tombstone then Riak will automatically try and remove
it.

Note, however, that this will not immediately reclaim disk space. Deletion
of the tombstone by Riak will still leave behind a backend tombstone for
some amount of time. See the docs here for more info on this:
http://docs.basho.com/riak/kv/2.2.0/using/reference/object-deletion/#deletion-from-backends

As for estimating disk space used by tombstones, I'm afraid I don't know of
any easy way to do that. Hopefully someone else may have a good suggestion
here.

Cheers,
Nick

On Fri, Dec 30, 2016 at 9:55 AM, Arun Rajagopalan <
arun.v.rajagopalan at gmail.com> wrote:

> Hello Riakers
>
> I wonder if there is anyway to delete all tombstones that were left behind
> when delete_mode was set to 'keep'
>
> Also how do I estimate how much space the tombstones take ? We have a ton
> of large scale and frequent delete operations and I suspect some space is
> used by Tombstones. I would like to find out if it is significant enough to
> warrant some cleanup. If it does, how do I remove them?
>
> Thanks and wish you all Happy, Peaceful and Prosperous  2017 !
>
>
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20170103/d4fff887/attachment-0002.html>


More information about the riak-users mailing list