Riak CS expiration
kota at basho.com
Fri Feb 6 14:21:06 EST 2015
Bitcask doesn't have such interface like hooking anything. As of
internal data structure of Riak CS built on top of Riak, bitcask keys
don't correspond simply to leveldb key. Say, things like this cannot
happen: "all tombstones of blocks of this object were collected and
space were reclaimed by merged, so I'm gonna officially hit S3
interface to delete that object". This is because blocks are
distributed all across the cluster.
I'd rather recommend to make up a simple cron job that walks over
objects and see timestamp and hit CS API to delete them when they're
old, or wait for lifecycle API gets implemented.
On Fri, Feb 6, 2015 at 12:24 AM, Damien Krotkine <dkrotkine at gmail.com> wrote:
> As far as I understand, Riak CS uses bitcask for data storage and
> leveldb for metadata.
> Trying to implement expiration of data in riak cs, bitcask expiration
> works fine, but of course metadata are still in the leveldb backend. Is
> there any way to expire metadata from riak cs automatically ?
> Ideally, I'd like to be able to install a hook or callback on the
> bitcask compaction. Is that possible ?
> riak-users mailing list
> riak-users at lists.basho.com
Kota UENISHI / @kuenishi
Basho Japan KK
More information about the riak-users