Riak KV memory backend did't discarding oldest objects when met max memory

周磊 john.zhou2011 at gmail.com
Tue Sep 13 00:55:04 EDT 2016


Dear friends,

Any idea about this?

Best Regards & Thanks

John

2016-09-01 11:58 GMT+08:00 周磊 <john.zhou2011 at gmail.com>:

> Dear Friends,
> I'm sorry to disturb you, could you help on this?
>
> ENV
>
> OS: CenterOS 6.5
> Riak KV:2.1.4
> Installed by:
>
> wget http://s3.amazonaws.com/downloads.basho.com/riak/2.1/
> 2.1.4/rhel/6/riak-2.1.4-1.el6.x86_64.rpm
> sudo rpm -Uvh riak-2.1.4-1.el6.x86_64.rpm
>
> My Setting:
>
> storage_backend = multi
> multi_backend.bitcask_multi.storage_backend = bitcask
> multi_backend.bitcask_multi.bitcask.data_root = /var/lib/riak/bitcask_mult
> multi_backend.memory_multi.storage_backend = memory
> multi_backend.memory_multi.memory_backend.max_memory_per_vnode = 2MB
> multi_backend.default = memory_multi
>
> Document
>
> http://docs.basho.com/riak/kv/2.1.4/setup/planning/backend/memory/
> <https://github.com/basho/riak_kv/issues/url>
>
> When the threshold value that you set has been met in a particular vnode, Riak
> will begin discarding objects, beginning with the *oldest* object and
> proceeding until memory usage returns below the allowable threshold.
> You can configure maximum memory using the memory_backend.max_memory_per_vnode
> setting. You can specify max_memory_per_vnode however you’d like, using
> kilobytes, megabytes, or even gigabytes.
>
> Setps
>
> 1.Use sh to Loop POST [512kb] files (0.ts,index.m3u8,1.ts,index.
> m3u8,2.ts,index.m3u8........)
> 2.When meet the max memory 2 MB, some object discarded but not beginning
> with the oldest object(index.m3u8 discarded)
> curl.sh.txt <https://github.com/basho/riak_kv/files/448751/curl.sh.txt>
>
> http://10.20.122.45:8098/buckets/test/keys?keys=true
>
> {"keys":["217.ts","212.ts","203.ts","210.ts","173.ts","
> 166.ts","200.ts","199.ts","192.ts","215.ts","129.ts","
> 124.ts","208.ts","179.ts","198.ts","196.ts","185.ts","97.
> ts","219.ts","114.ts","201.ts","190.ts","165.ts","223.ts","
> 220.ts","214.ts","222.ts","211.ts","209.ts","213.ts","
> 183.ts","143.ts","205.ts","171.ts","139.ts","66.ts","142.
> ts","122.ts","216.ts","170.ts","162.ts","194.ts","119.ts","
> 105.ts","178.ts","160.ts","158.ts","221.ts","193.ts","
> 187.ts","197.ts","159.ts","155.ts","218.ts","207.ts","
> 184.ts","188.ts","181.ts","176.ts","206.ts","202.ts","195.ts"]}
>
>
>
> Best Regards & Thanks
>
> John
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20160913/6569a342/attachment-0002.html>


More information about the riak-users mailing list