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