Memory-backend TTL

Luke Bakken lbakken at basho.com
Mon Oct 6 10:59:31 EDT 2014


Hi Lucas,

Can you confirm that the bucket or bucket-type that contains the
object you're retrieving has been configured to use the "ttl_stg"
backend?
--
Luke Bakken
Engineer / CSE
lbakken at basho.com


On Fri, Oct 3, 2014 at 11:32 AM, Lucas Grijander
<lucasgrinjander69 at gmail.com> wrote:
> Hello,
>
> I have a memory backend in production with Riak 2.0.1, 4 servers and 256
> vnodes. The servers have the same date and time.
>
> I have seen an odd performance with the ttl.
>
> This is the config:
>
>            {<<"ttl_stg">>,riak_kv_memory_backend,
>             [{ttl,90},{max_memory,25}]},
>
> For example, see this GET response in one of the riak servers:
>
> < HTTP/1.1 200 OK
> < X-Riak-Vclock: a85hYGBgzGDKBVIc4otdfgR/7bfIYEpkzGNlKI1efJYvCwA=
> < Vary: Accept-Encoding
> * Server MochiWeb/1.1 WebMachine/1.10.5 (jokes are better explained) is not
> blacklisted
> < Server: MochiWeb/1.1 WebMachine/1.10.5 (jokes are better explained)
> < Link: </riak/ttl_stg>; rel="up"
> < Last-Modified: Fri, 03 Oct 2014 17:40:05 GMT
> < ETag: "3c8bGoifWcOCSVn0otD5nI"
> < Date: Fri, 03 Oct 2014 17:47:50 GMT
> < Content-Type: application/json
> < Content-Length: 17
>
> If the TTL is 90 seconds, Why the GET doesn't return "not found" if the
> difference between "Last-Modified" and "Date" (of the curl request) is
> greater than the TTL?
>
> Thanks in advance!
>
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>




More information about the riak-users mailing list