Skip to content

Instantly share code, notes, and snippets.

View lixen's full-sized avatar
🌴
Working from ....

Mikael Lixenstrand lixen

🌴
Working from ....
  • Vaggeryd Sweden
View GitHub Profile
@lixen
lixen / MeterUpdate
Created July 28, 2014 15:55
Simple description on Register in Maps.
riak-admin bucket-type create maps '{"props":{"datatype":"map"}}'
riak-admin bucket-type activate maps
More information
http://docs.basho.com/riak/2.0.0/dev/using/data-types/#Maps
Reading = riakc_map:new().
Reading1 = riakc_map:update({<<"ReaderName322323">>, register}, fun(R) -> riakc_register:set(<<0,0,31,64>>, R) end, Reading).
2016-01-14 09:24:36.213 [error] <0.230.0> gen_event riak_repl_ring_handler installed in riak_core_ring_events terminated with reason: {timeout,{gen_server,call,[application_controller,{set_env,riak_repl,rtenabled,false,[]}]}}
2016-01-14 09:24:36.213 [error] <0.2644.0> gen_server <0.2644.0> terminated with reason: {gen_event_EXIT,riak_repl_ring_handler}
2016-01-14 09:24:36.213 [error] <0.2644.0> CRASH REPORT Process <0.2644.0> with 0 neighbours exited with reason: {gen_event_EXIT,riak_repl_ring_handler} in gen_server:terminate/7 line 804
2016-01-14 09:24:36.214 [error] <0.221.0> Supervisor riak_core_eventhandler_sup had child {riak_core_ring_events,riak_repl_ring_handler} started with riak_core_eventhandler_guard:start_link(riak_core_ring_events, riak_repl_ring_handler, [], undefined) at <0.2644.0> exit with reason {gen_event_EXIT,riak_repl_ring_handler} in context child_terminated
2016-01-14 09:24:36.851 [error] <0.705.0> gen_server riak_kv_entropy_manager terminated with reason: {timeout,{gen_server,call,[ap
After taking nodes up and down:
source:
2016-01-18 10:01:36.166 [error] <0.2774.0> Supervisor riak_repl2_fssource_sup had child 685078892498860742907977265335757665463718379520 started with {riak_repl2_fssource,start_link,undefined} at <0.512.13> exit with reason no such process or port in call to gen_server:call(undefined, {get_lock,fullsync_source,<0.499.13>}, infinity) in context child_terminated
2016-01-18 10:01:36.178 [error] <0.523.13> gen_fsm <0.523.13> in state prepare_exchange terminated with reason: no such process or port in call to gen_server:call(undefined, {get_lock,fullsync_source,<0.523.13>}, infinity)
2016-01-18 10:01:36.179 [error] <0.523.13> CRASH REPORT Process <0.523.13> with 1 neighbours exited with reason: no such process or port in call to gen_server:call(undefined, {get_lock,fullsync_source,<0.523.13>}, infinity) in gen_fsm:terminate/7 line 622
Sink:
2016-01-18 09:54:29.167 [error] <0.3744.14> gen_server <0.3744.14> terminated with reason: {tcp_closed,#Port<0.217772>}
2016-01-18 09:
The 3 modules use the sweeper:
AAE tree rebuild
Object expiry
Tombstone reaper
The sweeper adds support for modules to register fold jobs they would like to have scheduled.
This mechanism lets us perform a number of processing tasks on the IOPs/bandwidth needed to sweep the data.
The sweeper keeps track of which partition that needs to be scheduled and ask all partispants if they would like to join.
Object expiry:
riak_kv_index_hashtree stack trace
https://drive.google.com/open?id=0Bxy8PDW9yTsuQ0JwV1lUMEZsMkE
1 {'$gen_call',{<0.578.0>,#Ref<0.0.0.28270>},
{participate_in_sweep,<0.578.0>}}
2 {'$gen_cast',poke}
3 {'$gen_cast',poke}
4 {'$gen_cast',poke}
5 {'$gen_cast',poke}
6 {'$gen_cast',poke}
Lixenstrand-2:dev mikael$ dev2/bin/riak-admin aae-status
RPC to 'dev2@127.0.0.1' failed: {'EXIT',
{badarg,
[{erlang,hd,[[]],[]},
{riak_kv_entropy_info,
compute_exchange_info,4,
[{file,"src/riak_kv_entropy_info.erl"},
{line,218}]},
{riak_kv_entropy_info,
'-compute_exchange_info/2-lc$^1/1-1-',5,
ansible==1.5.3
ERROR: copy is not a legal parameter in an Ansible task or handler
using 2.0.0.2
[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and make sure become_method is 'sudo' (default). This feature will be removed in a
future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
PLAY ***************************************************************************
[config]
## Set cluster name. This is used to identify running instances, so make sure
## it is unique between disjoint clusters under same AWS account.
name = rsltesting
## EC2 instance type to provision.
## rtcloud is designed to work with the following instances:
## cc2.8xlarge, cr1.8xlarge, hi1.4xlarge
## The following table shows instance details:
## ------------------------------------------------------------------------------------------------
@lixen
lixen / redbug
Last active February 11, 2016 07:55
redbug:start(["hashtree:update_tree->return","hashtree:mark_clean_close->return", "hashtree:close->return", "riak_kv_index_hashtree:clear_tree->return", "riak_kv_index_hashtree:fold_fun->return", "riak_kv_index_hashtree:get_all_locks->return"],[{time,12000000},{msgs,50}, {print_depth,7}]).
redbug:start(["hashtree:destroy->return", "riak_kv_index_hashtree:init_trees->return","riak_kv_index_hashtree:close_trees->return", "riak_kv_index_hashtree:clear_tree->return", "riak_kv_index_hashtree:fold_fun->return", "riak_kv_index_hashtree:get_all_locks->return"],[{time,12000000},{msgs,50}, {print_depth,7}]).
14:17:34 <0.755.0>({riak_kv_index_hashtree,init,1}) riak_kv_index_hashtree:clear_tree/1 -> {state,
228359630832953580969325755111919221821239459840,
<0.701.0>,
14:25:34 <0.1330.0>({riak_kv_index_hashtree,init,1}) {riak_kv_index_hashtree,
clear_tree,
[{state,
1027618338748291114361965898003636498195577569280,...}]}
14:27:17 <0.1330.0>({riak_kv_index_hashtree,init,1}) riak_kv_index_hashtree:clear_tree/1 -> {state,
1027618338748291114361965898003636498195577569280,
<0.1282.0>,
false,
false,