RiakTS TTL

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

RiakTS TTL

Joe Olson
Two questions about the RiakTS TTL functionality (and its future direction):

1. Is it possible to replace the standard delete upon TTL expiry with a user defined delete?
2. Can the current global setting for the TTL timeout be changed? Will that affect new records going forward?

Bonus question:
3. Are there any plans to implement general triggering in RiakTS?



_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: RiakTS TTL

Matthew Von-Maszewski
1.  The global expiry module is an external C++ module that is open source.  There is no definition at this time for an Erlang callback, but the design supports it.  You can patch the open source code now.

2.  The TTL has two components:  when the record is written and number of minutes until expiry.  The write time goes into each record.  The number of minutes until expiry is loaded at start.  A change to the global minutes until expiry impacts the evaluation of all records.  A subsequent release will allow distinct TTL by table.

3.  Not my area of the code.

Matthew

On Nov 1, 2016, at 3:46 PM, Joe Olson <[hidden email]> wrote:

Two questions about the RiakTS TTL functionality (and its future direction):

1. Is it possible to replace the standard delete upon TTL expiry with a user defined delete?
2. Can the current global setting for the TTL timeout be changed? Will that affect new records going forward?

Bonus question:
3. Are there any plans to implement general triggering in RiakTS?


_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Reply | Threaded
Open this post in threaded view
|

Re: RiakTS TTL

Pavel Hardak
In reply to this post by Joe Olson
Hi Joe,

1. I am curious why you would need it. Can you please elaborate on the use case?
2. In addition to Matthew response, please see http://docs.basho.com/riak/ts/1.4.0/using/global-object-expiration 
3. Do you refer to something like post-commit hook in Riak KV: http://docs.basho.com/riak/kv/2.1.4/developing/usage/commit-hooks/ ?

Thanks,
Pavel



Pavel Hardak Director of Product Management @ Basho 


---------- Forwarded message ----------
From: Matthew Von-Maszewski <[hidden email]>
Date: Tue, Nov 1, 2016 at 1:01 PM
Subject: Re: RiakTS TTL
To: Joe Olson <[hidden email]>
Cc: riak-users <[hidden email]>


1.  The global expiry module is an external C++ module that is open source.  There is no definition at this time for an Erlang callback, but the design supports it.  You can patch the open source code now.

2.  The TTL has two components:  when the record is written and number of minutes until expiry.  The write time goes into each record.  The number of minutes until expiry is loaded at start.  A change to the global minutes until expiry impacts the evaluation of all records.  A subsequent release will allow distinct TTL by table.

3.  Not my area of the code.

Matthew

On Nov 1, 2016, at 3:46 PM, Joe Olson <[hidden email]> wrote:

Two questions about the RiakTS TTL functionality (and its future direction):

1. Is it possible to replace the standard delete upon TTL expiry with a user defined delete?
2. Can the current global setting for the TTL timeout be changed? Will that affect new records going forward?

Bonus question:
3. Are there any plans to implement general triggering in RiakTS?


_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com




--
Dorothy Pults - Sr. Director of Product Marketing 
425 435 8198
Bellevue, WA
www.basho.com


_______________________________________________
riak-users mailing list
[hidden email]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com