Make the number of load workers configurable.

This commit is contained in:
Sean Cribbs 2013-02-07 22:20:43 -06:00
parent 02591fdb9d
commit 59845fef1d

View File

@ -50,9 +50,11 @@ confirm() ->
%% Let's spawn workers against it.
timer:sleep(10000),
Concurrent = rt:config(load_workers, 10),
Sups = [
{rt_worker_sup:start_link([
{concurrent, 10},
{concurrent, Concurrent},
{node, Node},
{backend, Backend}
]), Node}
@ -65,7 +67,7 @@ confirm() ->
lager:info("Upgrading ~p", [Node]),
rt:upgrade(Node, current),
NewSup = rt_worker_sup:start_link([
{concurrent, 10},
{concurrent, Concurrent},
{node, Node},
{backend, Backend}
]),