Browse Source

Update client connection pool to mirror benchmark's MySQL pool limit of 5k

Erlang is highly concurrent, so under load, especially to a remote system it is quite conceivable to utilize very high numbers of connections if available.
Mike "mox" Oxford 12 years ago
parent
commit
f796d0fbf0
1 changed files with 1 additions and 2 deletions
  1. 1 2
      elli/src/elli_bench_sup.erl

+ 1 - 2
elli/src/elli_bench_sup.erl

@@ -1,4 +1,3 @@
-
 -module(elli_bench_sup).
 -module(elli_bench_sup).
 
 
 -behaviour(supervisor).
 -behaviour(supervisor).
@@ -26,7 +25,7 @@ start_link() ->
 init([]) ->
 init([]) ->
     crypto:start(),
     crypto:start(),
     application:start(emysql),
     application:start(emysql),
-    emysql:add_pool(test_pool, 32,
+    emysql:add_pool(test_pool, 5000,
        "benchmarkdbuser", "benchmarkdbpass", "localhost", 3306,
        "benchmarkdbuser", "benchmarkdbpass", "localhost", 3306,
        "hello_world", utf8),
        "hello_world", utf8),
     emysql:prepare(db_stmt, <<"SELECT * FROM World where id = ?">>),
     emysql:prepare(db_stmt, <<"SELECT * FROM World where id = ?">>),