Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
236 additions
and
44 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
-module('2iperf'). | ||
-compile(export_all). | ||
-include_lib("eunit/include/eunit.hrl"). | ||
|
||
-define(HARNESS, (rt_config:get(rt_harness))). | ||
|
||
confirm() -> | ||
lager:info("entering get_put:confirm()"), | ||
HostList = rt_config:get(rt_hostnames), | ||
Count = length(HostList), | ||
BinSize = rt_config:get(perf_bin_size), | ||
|
||
Config = rtperf:standard_config(Count), | ||
|
||
ok = rtperf:build_cluster(Config), | ||
|
||
SetSize = rtperf:target_size(rt_config:get(perf_target_pct), | ||
BinSize, | ||
rt_config:get(perf_ram_size), | ||
Count), | ||
LoadConfig = [], | ||
%% rt_bench:config( | ||
%% 50, | ||
%% rt_config:get(perf_duration), | ||
%% HostList, | ||
%% {int_to_bin_bigendian, {truncated_pareto_int, SetSize}}, | ||
%% rt_bench:valgen(rt_config:get(perf_bin_type), BinSize), | ||
%% %% 4:1 get/put | ||
%% [{get, 3}, {update, 1}] | ||
%% ), | ||
|
||
TwoIConfig = | ||
rt_bench:config( | ||
max, | ||
rt_config:get(perf_duration), | ||
HostList, | ||
{truncated_pareto_int, SetSize}, | ||
rt_bench:valgen(rt_config:get(perf_bin_type), BinSize), | ||
[{{query_pb, 100}, 5}, {{query_pb, 1000}, 1}, | ||
{{put_pb, 2}, 1}, {get_pb, 5}], | ||
<<"testbucket">>, '2i' | ||
), | ||
|
||
ok = rtperf:maybe_prepop(HostList, BinSize, SetSize), | ||
|
||
ok = rtperf:run_test(HostList, TwoIConfig, LoadConfig), | ||
pass. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
if [ ! -d "$1/" ]; then | ||
echo "a directory must be specified" | ||
exit 1 | ||
fi | ||
if [ "x$2" == "xtrue" ]; then | ||
(cd $1; rm -f *-digest; escript ~/bin/riak-digest.escript) | ||
fi | ||
|
||
D1=`basename "$1"` | ||
|
||
#generate our comparison graph | ||
gnuplot -e "dir1=\"$1\"; outfilename=\"${D1}-report.png\";" priv/reporting/summarize2i.gpl |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
#clean up the environment for interactive use | ||
unset multiplot | ||
reset | ||
|
||
set terminal png font "/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf,9" size 850,1100 | ||
set output outfilename | ||
|
||
#set term x11 size 850, 1100 | ||
|
||
set multiplot | ||
set grid | ||
|
||
#set key below | ||
set tics out | ||
|
||
set lmargin 12 | ||
set rmargin 10 | ||
|
||
rd = dir1."/".'rstats-digest' | ||
|
||
## graph system stats | ||
set size .5, .315 | ||
|
||
## graph latencies | ||
set origin 0, .315 | ||
|
||
#set xtics 10 | ||
|
||
#set yrange [500:150000] | ||
#set y2range [1000:1100000] | ||
#set y2tics nomirror | ||
|
||
set xlabel "5 second intervals" | ||
set ylabel "usec" | ||
unset y2label | ||
|
||
plot rd using "node_put_fsm_time_95" with lines, \ | ||
rd using "node_put_fsm_time_99" with lines, \ | ||
rd using "node_get_fsm_time_95" with lines, \ | ||
rd using "node_get_fsm_time_99" with lines | ||
|
||
unset y2tics | ||
unset y2range | ||
|
||
## graph ops performance | ||
set origin 0, .63 | ||
|
||
#ymax = median(rd) + 1000 | ||
|
||
#set yrange [0:50000] | ||
set ylabel "operations per node" | ||
set y2label "errors" | ||
set y2tics nomirror | ||
|
||
plot rd using "index_fsm_create" with lines, \ | ||
rd using "vnode_gets" with lines axis x1y2, \ | ||
rd using "vnode_puts" with lines axis x1y2 | ||
|
||
## graph system stats | ||
set origin .48, 0 | ||
|
||
set xlabel "5 second intervals" | ||
set y2tics nomirror | ||
|
||
plot rd using "memory_page_dirty" with lines, \ | ||
rd using "memory_page_writeback" with lines axis x1y2 | ||
|
||
unset y2tics | ||
unset y2range | ||
|
||
## graph latencies | ||
set origin .48, .315 | ||
#set yrange [500:150000] | ||
#set y2range [1000:1100000] | ||
#set y2tics nomirror | ||
|
||
#set xtics 10 | ||
|
||
set xlabel "5 second intervals" | ||
set ylabel "usec" | ||
unset y2label | ||
|
||
plot rd using "node_get_fsm_time_median" with lines, \ | ||
rd using "node_put_fsm_time_median" with lines | ||
|
||
unset y2tics | ||
unset y2range | ||
|
||
## graph ops performance | ||
set origin .48, .63 | ||
|
||
#set yrange [0:50000] | ||
set ylabel "operations per node" | ||
|
||
#hack to set the title for the whole graph | ||
set label dir1 at screen 0.5,0.97 center front | ||
|
||
plot rd using "message_queue_max" with lines, \ | ||
rd using "dropped_vnode_requests_total" with lines | ||
|
||
set origin 0, 0 | ||
|
||
#set xtics 60 | ||
|
||
set yrange [0:100] | ||
|
||
set xlabel "5 second intervals" | ||
set ylabel "percentage" | ||
|
||
plot rd using "cpu_utilization" with lines, \ | ||
rd using "cpu_iowait" with lines, \ | ||
rd using "disk_utilization" with lines, \ | ||
rd using "memory_utilization" with lines | ||
|
||
unset yrange | ||
unset y2tics | ||
|
||
unset multiplot | ||
reset |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
priv/reporting/report-2i.sh |
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 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 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