summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Klishin <michael@clojurewerkz.org>2016-06-09 17:03:39 +0300
committerMichael Klishin <michael@clojurewerkz.org>2016-06-09 17:03:39 +0300
commitae501fde2f3e8bea5a4fbd53979027cecc6b9a77 (patch)
tree17a70e2b2e90370fdf66d9324942fcf429292d07 /src
parentd59ac4c4700e370a8bb27864fdcd15cc5dcece19 (diff)
downloadrabbitmq-server-git-ae501fde2f3e8bea5a4fbd53979027cecc6b9a77.tar.gz
Significantly bump max restarts intensity for worker_pool_sup, fixes #834
Diffstat (limited to 'src')
-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..0fb8d0176b 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, 10 * 1000, 10},
[{worker_pool, {worker_pool, start_link, [PoolName]}, transient,
16#ffffffff, worker, [worker_pool]} |
[{N, {worker_pool_worker, start_link, [PoolName]}, transient,