From d59eef5c737d0b08eb8c16c5316300e863bc935c Mon Sep 17 00:00:00 2001 From: juhlig Date: Wed, 8 May 2019 15:05:27 +0200 Subject: Add the num_conns_sups option This new option allows configuring the number of connection supervisors. The old behavior can be obtained by setting this value to 1. A value larger than num_acceptors will result in some connection supervisors not being used as the acceptors currently only use one connection supervisor. --- doc/src/manual/ranch.set_max_connections.asciidoc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'doc/src/manual/ranch.set_max_connections.asciidoc') diff --git a/doc/src/manual/ranch.set_max_connections.asciidoc b/doc/src/manual/ranch.set_max_connections.asciidoc index 2559afe..cc1bb20 100644 --- a/doc/src/manual/ranch.set_max_connections.asciidoc +++ b/doc/src/manual/ranch.set_max_connections.asciidoc @@ -2,7 +2,7 @@ == Name -ranch:set_max_connections - Set the max number of connections +ranch:set_max_connections - Set the max number of connections per connection supervisor == Description @@ -13,7 +13,7 @@ set_max_connections(Ref :: ranch:ref(), -> ok ---- -Set the max number of connections. +Set the max number of connections per connection supervisor. The change will be applied immediately. If the new value is smaller than the previous one, Ranch will wait for the extra @@ -28,15 +28,19 @@ The listener name. MaxConns:: -The new maximum number of connections. +The new maximum number of connections per connection supervisor. == Return value The atom `ok` is always returned. It can be safely ignored. +== Changelog + +* *2.0*: The maximum number of connections is now per connection supervisor. + == Examples -.Set the max number of connections +.Set the max number of connections per connection supervisor [source,erlang] ---- ranch:set_max_connections(example, 10000). -- cgit v1.2.3