summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiana Corbacho <diana.corbacho@erlang-solutions.com>2016-06-09 15:56:36 +0100
committerDiana Corbacho <diana.corbacho@erlang-solutions.com>2016-06-09 15:56:36 +0100
commit5388143188f8e36274891c9be48438a3342a45c8 (patch)
treef064e2ef27952b52b86b537a8845bc492cd65458
parent5ac8307bfa1006964a4714a391bb3240b8311930 (diff)
parent03d015c3bd2c86dc6df8413b58e2d780c783af08 (diff)
downloadrabbitmq-server-git-5388143188f8e36274891c9be48438a3342a45c8.tar.gz
Merge branch 'stable'
-rw-r--r--src/worker_pool_sup.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/worker_pool_sup.erl b/src/worker_pool_sup.erl
index d846c26246..3b2c3476c2 100644
--- a/src/worker_pool_sup.erl
+++ b/src/worker_pool_sup.erl
@@ -48,7 +48,11 @@ start_link(WCount, PoolName) ->
%%----------------------------------------------------------------------------
init([WCount, PoolName]) ->
- {ok, {{one_for_one, 10, 10},
+ %% we want to survive up to 1K of worker restarts per second,
+ %% e.g. when a large worker pool used for network connections
+ %% encounters a network failure. This is the case in the LDAP authentication
+ %% backend plugin.
+ {ok, {{one_for_one, 1000, 1},
[{worker_pool, {worker_pool, start_link, [PoolName]}, transient,
16#ffffffff, worker, [worker_pool]} |
[{N, {worker_pool_worker, start_link, [PoolName]}, transient,