Skip to content

Commit

Permalink
Change im_bench scenario to something bigger
Browse files Browse the repository at this point in the history
  • Loading branch information
yiannist committed Oct 29, 2014
1 parent d1fe8ce commit d5fc77e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions bench/im_bench/conf/bench.conf
Original file line number Diff line number Diff line change
@@ -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
12 changes: 6 additions & 6 deletions bench/im_bench/src/im_bench.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d5fc77e

Please sign in to comment.