Explorar o código

Update limits

Update client connection pool to 5k, to mirror test harness 5k connlimit on my.cnf

Update spawned Cowboy to 5k to match what Elli does and increase throughput instead of spawning more listeners dynamically (which is more expensive than a simple Erlang process.)
Mike "mox" Oxford %!s(int64=12) %!d(string=hai) anos
pai
achega
9cdd7a65cd
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      cowboy/src/hello_world_app.erl

+ 2 - 2
cowboy/src/hello_world_app.erl

@@ -13,7 +13,7 @@
 start(_Type, _Args) ->
         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 = ?">>),
@@ -23,7 +23,7 @@ start(_Type, _Args) ->
 			{"/db", db_handler, []}
 		]}
 	]),
-	{ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [
+	{ok, _} = cowboy:start_http(http, 5000, [{port, 8080}], [
 		{env, [{dispatch, Dispatch}]}
 	]),
 	hello_world_sup:start_link().