Skip to content

Commit 2315efa

Browse files
committed
Checkpoint.
1 parent c1ff7e4 commit 2315efa

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

perf/get_put.erl

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ confirm() ->
2424
rt_bench:config(
2525
max,
2626
rt_config:get(perf_duration),
27-
HostList,
27+
[{Host, 10017} || Host <- HostList],
2828
{int_to_bin_bigendian, {truncated_pareto_int, SetSize}},
2929
rt_bench:valgen(rt_config:get(perf_bin_type), BinSize),
3030
%% 4:1 get/put

priv/reporting/summarize1.gpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
unset multiplot
33
reset
44

5-
# set terminal png font "/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf,9" size 850,1100
5+
set terminal png font "/Library/Fonts/Arial.ttf" 8
66
set output outfilename
77

88
#set term x11 size 850, 1100

src/rtperf.erl

+19-3
Original file line numberDiff line numberDiff line change
@@ -556,12 +556,28 @@ deploy_nodes(NodeConfig, Hosts) ->
556556
orddict:from_list(
557557
orddict:to_list(rt_config:get(rt_versions, orddict:new())) ++ VersionMap)),
558558

559+
rt:pmap(fun({Node, _}) ->
560+
{ok,
561+
{_, _, _, _, _, [IP0|_]}} = inet:gethostbyname(
562+
rtssh:node_to_host(Node)),
563+
IP = inet:ntoa(IP0),
564+
Config = [{"listener.protobuf.internal",
565+
IP++":10017"},
566+
{"listener.http.internal",
567+
IP++":10018"}],
568+
rtssh:set_conf(Node, Config)
569+
end, lists:zip(Nodes, Configs)),
570+
timer:sleep(500),
571+
559572
rt:pmap(fun({_, default}) ->
560-
ok;
573+
lager:info("Default configuration detected!"),
574+
ok;
561575
({Node, {cuttlefish, Config}}) ->
562-
rtssh:set_conf(Node, Config);
576+
lager:info("Cuttlefish configuration detected!"),
577+
rtssh:set_conf(Node, Config);
563578
({Node, Config}) ->
564-
rtssh:update_app_config(Node, Config)
579+
lager:info("Legacy configuration detected!"),
580+
rtssh:update_app_config(Node, Config)
565581
end,
566582
lists:zip(Nodes, Configs)),
567583
timer:sleep(500),

0 commit comments

Comments
 (0)