Merge branch 'multiple-hackney-pools' into 'develop'
authorkaniini <nenolod@gmail.com>
Wed, 30 Jan 2019 19:01:57 +0000 (19:01 +0000)
committerkaniini <nenolod@gmail.com>
Wed, 30 Jan 2019 19:01:57 +0000 (19:01 +0000)
Use multiple hackney pools

See merge request pleroma/pleroma!739

1  2 
docs/config.md

diff --combined docs/config.md
index d100ead10526c8ed8eafb3ff1865de1ea9ad30ec,a00532d16f41eec1612cc08226fbd339b1bf7aba..4f4a4378c1f0405f5c48b02100291d40e6678b25
@@@ -110,9 -110,9 +110,9 @@@ Frontends can access these settings at 
  
  To add your own configuration for PleromaFE, use it like this:
  
 -`config :pleroma, :frontend_configurations, :pleroma_fe, %{theme: "my-theme", ...}`
 +`config :pleroma, :frontend_configurations, pleroma_fe: %{redirectRootNoLogin: "/main/all", ...}`
  
 -These settings need to be complete, they will overide the defaults.
 +These settings need to be complete, they will override the defaults. See `priv/static/static/config.json` for the available keys.
  
  ## :fe
  __THIS IS DEPRECATED__
@@@ -234,3 -234,20 +234,20 @@@ curl "http://localhost:4000/api/pleroma
    * Pleroma.Web.Metadata.Providers.OpenGraph
    * Pleroma.Web.Metadata.Providers.TwitterCard
  * `unfurl_nsfw`: If set to `true` nsfw attachments will be shown in previews
+ ## :hackney_pools
+ Advanced. Tweaks Hackney (http client) connections pools.
+ There's three pools used:
+ * `:federation` for the federation jobs.
+   You may want this pool max_connections to be at least equal to the number of federator jobs + retry queue jobs.
+ * `:media` for rich media, media proxy
+ * `:upload` for uploaded media (if using a remote uploader and `proxy_remote: true`)
+ For each pool, the options are:
+ * `max_connections` - how much connections a pool can hold
+ * `timeout` - retention duration for connections