diff options
author | rinpatch <rinpatch@sdf.org> | 2020-05-17 22:16:02 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-07-15 15:26:35 +0300 |
commit | 4128e3a84a2b6d75a8f92759e65ee673b47cec01 (patch) | |
tree | b2202efe95dbb008bdbfda6e879bacaf7c116d0d /config | |
parent | 94c8f3cfafb92c6d092549b24bb69f3870e1c0d8 (diff) | |
download | pleroma-4128e3a84a2b6d75a8f92759e65ee673b47cec01.tar.gz pleroma-4128e3a84a2b6d75a8f92759e65ee673b47cec01.zip |
HTTP: Implement max request limits
Diffstat (limited to 'config')
-rw-r--r-- | config/config.exs | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/config/config.exs b/config/config.exs index 577ccc198..dfc7a99d1 100644 --- a/config/config.exs +++ b/config/config.exs @@ -648,7 +648,8 @@ config :pleroma, Pleroma.Repo, config :pleroma, :connections_pool, reclaim_multiplier: 0.1, - checkin_timeout: 250, + connection_acquisition_wait: 250, + connection_acquisition_retries: 5, max_connections: 250, max_idle_time: 30_000, retry: 1, @@ -658,23 +659,19 @@ config :pleroma, :connections_pool, config :pleroma, :pools, federation: [ size: 50, - max_overflow: 10, - timeout: 150_000 + max_waiting: 10 ], media: [ size: 50, - max_overflow: 10, - timeout: 150_000 + max_waiting: 10 ], upload: [ size: 25, - max_overflow: 5, - timeout: 300_000 + max_waiting: 5 ], default: [ size: 10, - max_overflow: 2, - timeout: 10_000 + max_waiting: 2 ] config :pleroma, :hackney_pools, |