This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VClock compare [{<<3,87,182,27>>,{1,1304630629955233}}, | |
{<<4,157,0,61>>,{1,1304630629958025}}] | |
[{<<3,87,182,27>>,{1,1304630629960059}}] | |
[{<<3,87,182,27>>,{1,1304630629955233}}, | |
{<<4,157,0,61>>,{1,1304630629958025}}] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<0.222.0> Backend command get 120 | |
<0.224.0> Backend command get 120 | |
<0.226.0> Backend command get 120 | |
<0.222.0> Backend command put 219 | |
<0.224.0> Backend command put 219 | |
<0.226.0> Backend command put 219 | |
<0.224.0> Backend command get 119 | |
<0.226.0> Backend command get 119 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(riak@centos)3> DocIdx = riak_core_util:chash_key({<<"bucket">>, <<"key">>}). | |
<<40,216,221,197,208,14,141,94,183,248,138,54,235,1,144, | |
183,233,178,41,166>> | |
(riak@centos)4> PL = riak_core_apl:get_apl(DocIdx, 3, riak_kv). | |
[{251195593916248939066258330623111144003363405824, | |
riak@ubuntu}, | |
{274031556999544297163190906134303066185487351808, | |
riak@centos}, | |
{296867520082839655260123481645494988367611297792, | |
riak@opensolaris}] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(assignment). | |
-export([print/1]). | |
print(List) -> | |
PrintList = fun({CN, IN, CT, CC, CE, RN}) -> | |
io:format("~p ~p ~p ~p ~p ~p~n", [CN, IN, CT, CC, CE, RN]) | |
end, | |
list:foreach(PrintList, List). | |
printList(L) -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get_default_rw_val(Type, BucketProps) -> | |
case proplists:get_value(Type, BucketProps, default) of | |
default -> | |
{ok, DefaultProps} = application:get_env(riak_core, default_bucket_props), | |
proplists:get_value(Type, DefaultProps, error); | |
Val -> Val | |
end. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
^andrew@centos:: ulimit -n [~] | |
1024 | |
^andrew@centos:: su - riak [~] | |
Password: | |
[riak@centos ~]$ ulimit -n | |
2048 | |
[riak@centos ~]$ cat /etc/security/limits.conf | grep riak | |
riak soft nofile 2048 | |
riak hard nofile 4096 | |
[riak@centos ~]$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15> riakc_pb_socket:put(RC, Object1, [return_body]). | |
{ok,{riakc_obj,<<"bucket">>,<<"key">>, | |
<<107,206,97,96,96,96,205,96,202,5,82,44,44,69,199,129, | |
204,68,198,60,86,6,99,...>>, | |
[{{dict,2,16,16,8,80,48, | |
{[],[],[],[],[],[],[],[],[],[],[],[],...}, | |
{{[],[],[],[],[],[],[],[],[],[],...}}}, | |
<<"value">>}], | |
undefined,undefined}} | |
16> riakc_pb_socket:put(RC, Object2, [return_body]). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
BRANCH=$1 | |
PWD=`pwd` | |
#git pull origin master | |
git checkout $BRANCH | |
for repo in `ls deps`; do | |
cd deps/$repo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> luwak (eunit) | |
** /Users/andrew/riak/deps/luwak/.eunit/luwak_wm_file.beam hides /Users/andrew/riak/deps/luwak/ebin/luwak_wm_file.beam | |
** /Users/andrew/riak/deps/luwak/.eunit/luwak_tree_utils.beam hides /Users/andrew/riak/deps/luwak/ebin/luwak_tree_utils.beam | |
** /Users/andrew/riak/deps/luwak/.eunit/luwak_tree.beam hides /Users/andrew/riak/deps/luwak/ebin/luwak_tree.beam | |
** /Users/andrew/riak/deps/luwak/.eunit/luwak_put_stream.beam hides /Users/andrew/riak/deps/luwak/ebin/luwak_put_stream.beam | |
** /Users/andrew/riak/deps/luwak/.eunit/luwak_io.beam hides /Users/andrew/riak/deps/luwak/ebin/luwak_io.beam | |
** /Users/andrew/riak/deps/luwak/.eunit/luwak_get_stream.beam hides /Users/andrew/riak/deps/luwak/ebin/luwak_get_stream.beam | |
** /Users/andrew/riak/deps/luwak/.eunit/luwak_file.beam hides /Users/andrew/riak/deps/luwak/ebin/luwak_file.beam | |
** /Users/andrew/riak/deps/luwak/.eunit/luwak_checksum.beam hides /Users/andrew/riak/deps/luwak/ebin/luwak_checksum.beam | |
** /Users/andrew/riak/deps/luwak/.eunit/luwak_block.beam |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1> erlang:system_monitor(self(), [{long_gc, 9999999999}]). | |
** exception error: bad argument | |
in function erlang:system_monitor/2 | |
called as erlang:system_monitor(<0.31.0>,[{long_gc,9999999999}]) | |
2> erlang:system_monitor(self(), [{long_gc, 999999999}]). | |
undefined |