aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/manual/cowboy.start_clear.asciidoc
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-06-07 15:15:54 +0200
committerLoïc Hoguin <[email protected]>2017-06-07 15:15:54 +0200
commit6f7b59886ec17027b16ed4d10737452e17f233d0 (patch)
tree6beec34b1f3343ab250d3993d5a0d572cbd956f5 /doc/src/manual/cowboy.start_clear.asciidoc
parent767da623f1f7329cb0b0d86c3c1876ccf098d60a (diff)
downloadcowboy-6f7b59886ec17027b16ed4d10737452e17f233d0.tar.gz
cowboy-6f7b59886ec17027b16ed4d10737452e17f233d0.tar.bz2
cowboy-6f7b59886ec17027b16ed4d10737452e17f233d0.zip
Remove NumAcceptors argument from start_clear/tls
They are now cowboy:start_clear/3 and cowboy:start_tls/3. The NumAcceptors argument can be specified via the num_acceptor transport option. Ranch has been updated to 1.4.0 to that effect.
Diffstat (limited to 'doc/src/manual/cowboy.start_clear.asciidoc')
-rw-r--r--doc/src/manual/cowboy.start_clear.asciidoc21
1 files changed, 2 insertions, 19 deletions
diff --git a/doc/src/manual/cowboy.start_clear.asciidoc b/doc/src/manual/cowboy.start_clear.asciidoc
index e119fc3..7a12a58 100644
--- a/doc/src/manual/cowboy.start_clear.asciidoc
+++ b/doc/src/manual/cowboy.start_clear.asciidoc
@@ -9,7 +9,6 @@ cowboy:start_clear - Listen for connections using plain TCP
[source,erlang]
----
start_clear(Name :: ranch:ref(),
- NumAcceptors :: non_neg_integer(),
TransportOpts :: ranch_tcp:opts(),
ProtocolOpts :: opts())
-> {ok, ListenerPid :: pid()}
@@ -34,22 +33,6 @@ updating the routes defined.
It can be any Erlang term. An atom is generally good enough,
for example `api`, `my_app_clear` or `my_app_tls`.
-NumAcceptors::
-
-The number of acceptors is the number of processes that
-will accept connections. Tweak this value to improve the
-accept rate for incoming connections.
-+
-The ideal value is between 10 and 100 on most systems.
-Larger values may have the opposite effect and reduce the
-accept rate. It's generally safe to start with a value of
-100 (or 10 on low memory systems). Then, when accept rates
-become a concern, measure the performance and update the
-value accordingly.
-+
-This value is unrelated to the maximum number of concurrent
-connections.
-
TransportOpts::
The transport options are where the TCP options, including
@@ -102,7 +85,7 @@ Dispatch = cowboy_router:compile([
]}
]),
-{ok, _} = cowboy:start_clear(example, 100, [{port, 8080}], #{
+{ok, _} = cowboy:start_clear(example, [{port, 8080}], #{
env => #{dispatch => Dispatch}
}).
----
@@ -112,7 +95,7 @@ Dispatch = cowboy_router:compile([
----
Name = example,
-{ok, _} = cowboy:start_clear(Name, 100, [], #{
+{ok, _} = cowboy:start_clear(Name, [], #{
env => #{dispatch => Dispatch}
}),