diff options
| author | D Corbacho <dcorbacho@users.noreply.github.com> | 2016-06-09 15:55:09 +0100 |
|---|---|---|
| committer | D Corbacho <dcorbacho@users.noreply.github.com> | 2016-06-09 15:55:09 +0100 |
| commit | 03d015c3bd2c86dc6df8413b58e2d780c783af08 (patch) | |
| tree | dfad85f28c4bb61df009bb1c689c4a70b08b8d78 /src | |
| parent | 8c0700e809b9a1efcbb9a8394a9b4241b7c3f415 (diff) | |
| parent | 765b9c4aaeae2875c176516e38a6d47ff2affc19 (diff) | |
| download | rabbitmq-server-git-03d015c3bd2c86dc6df8413b58e2d780c783af08.tar.gz | |
Merge pull request #835 from rabbitmq/rabbitmq-server-834
Significantly bump max restarts intensity for worker_pool_sup
Diffstat (limited to 'src')
| -rw-r--r-- | src/worker_pool_sup.erl | 6 |
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, |
