- What can be traced?
- How can trace events be specified?
- "match specifications": twisty passages, all alike
- WTF, can I just use DTrace and drink my coffee/beer/whisky in peace?
- Trace delivery mechanisms: pick one of two
This file contains 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
$ ack app_helper:get_env src | |
src/riak_client.erl:759: case app_helper:get_env(riak_kv, overload_backoff, undefined) of | |
src/riak_index.erl:444: Timeout = app_helper:get_env(riak_kv, secondary_index_timeout, ?DEFAULT_TIMEOUT), | |
src/riak_kv_app.erl:51: FSM_Limit = app_helper:get_env(riak_kv, fsm_limit, ?DEFAULT_FSM_LIMIT), | |
src/riak_kv_app.erl:60: case app_helper:get_env(riak_kv, direct_stats, false) of | |
src/riak_kv_app.erl:72: case app_helper:get_env(riak_kv, add_paths) of | |
src/riak_kv_app.erl:100: StorageBackend = app_helper:get_env(riak_kv, storage_backend), | |
src/riak_kv_app.erl:193: HealthCheckOn = app_helper:get_env(riak_kv, enable_health_checks, false), | |
src/riak_kv_app.erl:273: {Low, High} = app_helper:get_env(riak_kv, vnode_mailbox_limit, {1, 5000}), | |
src/riak_kv_app.erl:324: case app_helper:get_env(riak_kv, object_format, v0) of |
This file contains 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
This gist captures what needs to be done to add a new field to Riak's Yokozuna | |
search index. | |
Sources: | |
- https://github.com/basho/yokozuna/issues/130 | |
- http://riak-users.197444.n3.nabble.com/How-to-update-existed-schema-td4032143.html | |
The code below is for illustration purposes only. Use at your own risk. | |
1. Create/Update new schema file |
tanodb is a distributed in memory key value store built on top of riak_core.
It is used as the example code for the Little Riak Core Book.
(kudos to @cv for the original version)
I found the following piece of code in a gist, but when I tried to execute it under taminodb, it returned an empty array.
This is the process of setting up erlang, rebar3, and cowboy for a Hello World, starting with a clean Debian 8 install.
Update apt and install deps:
root@046edcaea45a:~# apt-get update
root@046edcaea45a:~# apt-get install erlang erlang-dev gcc
root@046edcaea45a:~# wget https://s3.amazonaws.com/rebar3/rebar3
root@046edcaea45a:~# mkdir ~/bin/
root@046edcaea45a:~# mv rebar3 ~/bin/
root@046edcaea45a:~# chmod +x ~/bin/rebar3
This file contains 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
@startuml | |
' uncomment the line below if you're using computer with a retina display | |
' skinparam dpi 300 | |
!define Table(name,desc) class name as "desc" << (T,#FFAAAA) >> | |
' we use bold for primary key | |
' green color for unique | |
' and underscore for not_null | |
!define primary_key(x) <b>x</b> | |
!define unique(x) <color:green>x</color> | |
!define not_null(x) <u>x</u> |
DON'T BOTHER USING - BROKE CODE
%% Author: PCHAPIER
%% Created: 25 mai 2010
-module(utility).
%%
%% Include files
%%
OlderNewer