Commit 6017a9b9 authored by KT315's avatar KT315
Browse files

Set 36 acceptors

parent e89e8c58
......@@ -19,7 +19,7 @@ defmodule Dummy.Application do
{:cowboy, :start_clear,
[
:dummy,
[max_connections: 999_999, port: 5000],
[max_connections: 1_000_000, port: 5000, num_acceptors: 36],
%{max_keepalive: 1_000, request_timeout: :infinity, env: %{dispatch: dispatch}}
]},
restart: :permanent,
......
......@@ -56,7 +56,11 @@ defmodule Dummy.Reporter do
end)
|> Enum.sum()
IO.write(stats_file, "#{next_reductions - last_reductions},#{message_queue_len}\r\n")
IO.write(
stats_file,
"#{length(conns_sup_pids)},#{next_reductions - last_reductions},#{message_queue_len}\r\n"
)
{:noreply, %{state | last_reductions: next_reductions}}
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment