diff --git a/bench/im_bench/conf/bench.conf b/bench/im_bench/conf/bench.conf index 6f8e969..a8d3aa1 100644 --- a/bench/im_bench/conf/bench.conf +++ b/bench/im_bench/conf/bench.conf @@ -1,5 +1,5 @@ -NUMBER_OF_SLAVE_NODES=13 +NUMBER_OF_SLAVE_NODES=14 -SLAVE_NODES=server_1,server_2,router_1,client_1,client_2,client_3,client_4,client_5,client_6,client_7,client_8,client_9,client_10 +SLAVE_NODES=router_1,server_1,server_2,server_3,client_1,client_2,client_3,client_4,client_5,client_6,client_7,client_8,client_9,client_10 DEPENDENCIES=IM diff --git a/bench/im_bench/src/im_bench.erl b/bench/im_bench/src/im_bench.erl index cdae2f4..0b6fe82 100644 --- a/bench/im_bench/src/im_bench.erl +++ b/bench/im_bench/src/im_bench.erl @@ -9,13 +9,13 @@ run(_, _, Conf) -> %% Setup a coordinator to know when the benchmark finished. This is done by %% counting the number of loggers that have finished. register(coordinator, self()), - launcher:start(2, 1, 2, 10, [greedy], 1), + launcher:start(3, 1, 3, 10, [greedy], 1), {_,DataDir} = lists:keyfind(datadir, 1, Conf), - logger:launch_latency("Bencherl_test", 1, 2, 500, 10, 1, greedy, DataDir ++ "/"), - timer:sleep(10000), - toxic_client:launch(500, 10, greedy), - timer:sleep(10000), - toxic_client:launch_traffic(500, 10, greedy), + logger:launch_latency("Bencherl_test", 1, 3, 8000, 10, 1, greedy, DataDir ++ "/"), + timer:sleep(60000), %XXX: Just to make sure that all clients have logged in. + toxic_client:launch(8000, 10, greedy), + timer:sleep(60000), + toxic_client:launch_traffic(8000, 10, greedy), loop(10). %% loop/1 is a helper function that "prevents" run/3 from finishing until all