Browse Source

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 12 years ago
parent
commit
9cdd7a65cd
1 changed files with 2 additions and 2 deletions
  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().