aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAlexander Strizhakov <alex.strizhakov@gmail.com>2020-04-08 16:01:03 +0300
committerAlexander Strizhakov <alex.strizhakov@gmail.com>2020-05-06 13:25:46 +0300
commit96bc9670082a9b86a4694fbaaba3bc300b436be2 (patch)
tree94ff52b219403c3bd142376ca4f60e9b42282f8d /docs
parent07e7c80bc9e919cd92ca9dda1e21384142e5bd77 (diff)
downloadpleroma-96bc9670082a9b86a4694fbaaba3bc300b436be2.tar.gz
closing idle gun connections
Diffstat (limited to 'docs')
-rw-r--r--docs/configuration/cheatsheet.md9
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/configuration/cheatsheet.md b/docs/configuration/cheatsheet.md
index 705c4c15e..e7a9b8836 100644
--- a/docs/configuration/cheatsheet.md
+++ b/docs/configuration/cheatsheet.md
@@ -394,15 +394,20 @@ For each pool, the options are:
Advanced settings for connections pool. Pool with opened connections. These connections can be reused in worker pools.
-For big instances it's recommended to increase `config :pleroma, :connections_pool, max_connections: 500` up to 500-1000.
-It will increase memory usage, but federation would work faster.
+For big instances it's recommended to increase `max_connections` up to 500-1000. It will increase memory usage, but federation would work faster.
* `:checkin_timeout` - timeout to checkin connection from pool. Default: 250ms.
* `:max_connections` - maximum number of connections in the pool. Default: 250 connections.
+* `:max_idle_time` - maximum of time, while connection can be idle. Default: 10 minutes.
+* `:closing_idle_conns_interval` - interval between cleaning pool from idle connections. Default: 10 minutes.
* `:retry` - number of retries, while `gun` will try to reconnect if connection goes down. Default: 1.
* `:retry_timeout` - time between retries when `gun` will try to reconnect in milliseconds. Default: 1000ms.
* `:await_up_timeout` - timeout while `gun` will wait until connection is up. Default: 5000ms.
+*If you are increasing `max_connections` setting, dont't forget to increase limit for file descriptors:*
+* `installation/pleroma.service` - `LimitNOFILE`
+* `installation/pleroma.supervisord` - `minfds`
+
### :pools
*For `gun` adapter*