Ver Fonte

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 há 12 anos atrás
pai
commit
0cd0f0256b
1 ficheiros alterados com 1 adições e 2 exclusões
  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).
 
 -behaviour(supervisor).
@@ -26,7 +25,7 @@ start_link() ->
 init([]) ->
     crypto:start(),
     application:start(emysql),
-    emysql:add_pool(test_pool, 32,
+    emysql:add_pool(test_pool, 5000,
        "benchmarkdbuser", "benchmarkdbpass", "localhost", 3306,
        "hello_world", utf8),
     emysql:prepare(db_stmt, <<"SELECT * FROM World where id = ?">>),