Latency of Riak KV drops with small size server goes long

2015-11-02 Thread mtakahashi-ivi
I use Riak KV with small size server(c4.xlarge@AWS 1 instance). When I run riak several days, latency of riak KV seems to be long. So I checked latency of riak KV by using basho bench with smaller server. At first, I checked write latency. My questions are 1. Why write latency drops continuously? H

Mecking riakc_pb_socket:get/3

2015-11-02 Thread Michael Martin
Hi all, I'm trying to meck riakc_pb_socket:get/3 in my eunit tests, and consistently get a function_clause error. The meck:expect looks like: meck:expect(riakc_pb_socket, get, [Pid, ?RIAK_TYPE_AND_BUCKET, ?TestOid], {ok, ?TestRiakObject}), where Pid is a pid, the macro ?RIAK_TYPE_AND_BUCKE