<div dir="ltr"><h2 style="box-sizing:border-box;margin-bottom:16px;padding-bottom:0.3em;border-bottom:1px solid rgb(238,238,238);color:rgb(51,51,51);font-family:-apple-system,blinkmacsystemfont,"segoe ui",roboto,helvetica,arial,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol";margin-top:0px"><font size="1"><span style="font-weight:normal;line-height:15px">Dear Friends,</span></font></h2><div><font size="1"><span style="font-weight:normal;line-height:15px">I'm sorry to disturb you, could you help on this?</span></font></div><div><font size="1"><span style="font-weight:normal;line-height:15px"><br></span></font></div><h2 style="box-sizing:border-box;margin-bottom:16px;line-height:1.25;padding-bottom:0.3em;border-bottom:1px solid rgb(238,238,238);color:rgb(51,51,51);font-family:-apple-system,blinkmacsystemfont,"segoe ui",roboto,helvetica,arial,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol";margin-top:0px">ENV</h2><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,blinkmacsystemfont,"segoe ui",roboto,helvetica,arial,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol";font-size:14px;line-height:21px">OS: CenterOS 6.5<br style="box-sizing:border-box">Riak KV:2.1.4<br style="box-sizing:border-box">Installed by:</p><blockquote style="box-sizing:border-box;margin:0px 0px 16px;padding:0px 1em;color:rgb(119,119,119);border-left:0.25em solid rgb(221,221,221);font-family:-apple-system,blinkmacsystemfont,"segoe ui",roboto,helvetica,arial,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol";font-size:14px;line-height:21px"><p style="box-sizing:border-box;margin-top:0px;margin-bottom:0px">wget <a href="http://s3.amazonaws.com/downloads.basho.com/riak/2.1/2.1.4/rhel/6/riak-2.1.4-1.el6.x86_64.rpm" style="box-sizing:border-box;color:rgb(64,120,192);text-decoration:none;background-color:transparent">http://s3.amazonaws.com/downloads.basho.com/riak/2.1/2.1.4/rhel/6/riak-2.1.4-1.el6.x86_64.rpm</a><br style="box-sizing:border-box">sudo rpm -Uvh riak-2.1.4-1.el6.x86_64.rpm</p></blockquote><h2 style="box-sizing:border-box;margin-top:24px;margin-bottom:16px;line-height:1.25;padding-bottom:0.3em;border-bottom:1px solid rgb(238,238,238);color:rgb(51,51,51);font-family:-apple-system,blinkmacsystemfont,"segoe ui",roboto,helvetica,arial,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol"">My Setting:</h2><blockquote style="box-sizing:border-box;margin:0px 0px 16px;padding:0px 1em;color:rgb(119,119,119);border-left:0.25em solid rgb(221,221,221);font-family:-apple-system,blinkmacsystemfont,"segoe ui",roboto,helvetica,arial,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol";font-size:14px;line-height:21px"><p style="box-sizing:border-box;margin-top:0px;margin-bottom:0px">storage_backend = multi<br style="box-sizing:border-box">multi_backend.bitcask_multi.storage_backend = bitcask<br style="box-sizing:border-box">multi_backend.bitcask_multi.bitcask.data_root = /var/lib/riak/bitcask_mult<br style="box-sizing:border-box">multi_backend.memory_multi.storage_backend = memory<br style="box-sizing:border-box">multi_backend.memory_multi.memory_backend.max_memory_per_vnode = 2MB<br style="box-sizing:border-box">multi_backend.default = memory_multi</p></blockquote><h2 style="box-sizing:border-box;margin-top:24px;margin-bottom:16px;line-height:1.25;padding-bottom:0.3em;border-bottom:1px solid rgb(238,238,238);color:rgb(51,51,51);font-family:-apple-system,blinkmacsystemfont,"segoe ui",roboto,helvetica,arial,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol"">Document</h2><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,blinkmacsystemfont,"segoe ui",roboto,helvetica,arial,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol";font-size:14px;line-height:21px"><a href="https://github.com/basho/riak_kv/issues/url" style="box-sizing:border-box;color:rgb(64,120,192);text-decoration:none;background-color:transparent">http://docs.basho.com/riak/kv/2.1.4/setup/planning/backend/memory/</a></p><blockquote style="box-sizing:border-box;margin:0px 0px 16px;padding:0px 1em;color:rgb(119,119,119);border-left:0.25em solid rgb(221,221,221);font-family:-apple-system,blinkmacsystemfont,"segoe ui",roboto,helvetica,arial,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol";font-size:14px;line-height:21px"><p style="box-sizing:border-box;margin-top:0px;margin-bottom:0px">When the threshold value that you set has been met in a particular vnode, <span style="box-sizing:border-box;font-weight:600">Riak will begin discarding objects, beginning with the <em style="box-sizing:border-box">oldest</em> object</span> and proceeding until memory usage returns below the allowable threshold.<br style="box-sizing:border-box">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.</p></blockquote><h2 style="box-sizing:border-box;margin-top:24px;margin-bottom:16px;line-height:1.25;padding-bottom:0.3em;border-bottom:1px solid rgb(238,238,238);color:rgb(51,51,51);font-family:-apple-system,blinkmacsystemfont,"segoe ui",roboto,helvetica,arial,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol"">Setps</h2><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,blinkmacsystemfont,"segoe ui",roboto,helvetica,arial,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol";font-size:14px;line-height:21px">1.Use sh to Loop POST [512kb] files (0.ts,index.m3u8,1.ts,index.m3u8,2.ts,index.m3u8........)<br style="box-sizing:border-box">2.When meet the max memory 2 MB, some object discarded but not beginning with the oldest object(index.m3u8 discarded)<br style="box-sizing:border-box"><a href="https://github.com/basho/riak_kv/files/448751/curl.sh.txt" style="box-sizing:border-box;color:rgb(64,120,192);text-decoration:none;background-color:transparent">curl.sh.txt</a></p><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(51,51,51);font-family:-apple-system,blinkmacsystemfont,"segoe ui",roboto,helvetica,arial,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol";font-size:14px;line-height:21px"><a href="http://10.20.122.45:8098/buckets/test/keys?keys=true" style="box-sizing:border-box;color:rgb(64,120,192);text-decoration:none;background-color:transparent">http://10.20.122.45:8098/buckets/test/keys?keys=true</a></p><blockquote style="box-sizing:border-box;margin:0px;padding:0px 1em;color:rgb(119,119,119);border-left:0.25em solid rgb(221,221,221);font-family:-apple-system,blinkmacsystemfont,"segoe ui",roboto,helvetica,arial,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol";line-height:21px"><p style="font-size:14px;box-sizing:border-box;margin-top:0px;margin-bottom:0px">{"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"]}</p><p style="font-size:14px;box-sizing:border-box;margin-top:0px;margin-bottom:0px"><br></p><p style="font-size:14px;box-sizing:border-box;margin-top:0px;margin-bottom:0px"><br></p><p style="font-size:14px;box-sizing:border-box;margin-top:0px;margin-bottom:0px">Best Regards & Thanks</p><p style="font-size:14px;box-sizing:border-box;margin-top:0px;margin-bottom:0px">John</p></blockquote></div>