aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/doc
diff options
context:
space:
mode:
authorMicah Elizabeth Scott <beth@scanlime.org>2018-08-28 00:29:29 -0700
committerChocobozzz <me@florianbigard.com>2018-08-28 09:29:29 +0200
commitf74c294a0d5e9f61f13d64f3f7c028b512431995 (patch)
treecb346d79c6661c123af71e21c6c91002e3c0f95e /support/doc
parent83b5fe9c5536ed11ef90bf821d38700607f39f82 (diff)
downloadPeerTube-f74c294a0d5e9f61f13d64f3f7c028b512431995.tar.gz
PeerTube-f74c294a0d5e9f61f13d64f3f7c028b512431995.tar.zst
PeerTube-f74c294a0d5e9f61f13d64f3f7c028b512431995.zip
Suggest TCP/IP tuning to prevent buffer bloat + latency (#976)
* Suggest TCP/IP CoDel and BBR congestion control in production guide This seems to be helping lots on my server, where the default (Debian 9) was to use FIFO queueing which would cause buffer bloat and huge latency for clients on slower network links.
Diffstat (limited to 'support/doc')
-rw-r--r--support/doc/production.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/support/doc/production.md b/support/doc/production.md
index 3d1be6b45..35c7de3b5 100644
--- a/support/doc/production.md
+++ b/support/doc/production.md
@@ -134,6 +134,19 @@ On FreeBSD you can use [Dehydrated](https://dehydrated.io/) `security/dehydrated
134$ sudo pkg install dehydrated 134$ sudo pkg install dehydrated
135``` 135```
136 136
137### TCP/IP Tuning
138
139**On Linux**
140
141```
142$ sudo cp /var/www/peertube/peertube-latest/support/sysctl.d/30-peertube-tcp.conf /etc/sysctl.d/
143$ sudo sysctl -p /etc/sysctl.d/30-peertube-tcp.conf
144```
145
146Your distro may enable this by default, but at least Debian 9 does not, and the default FIFO
147scheduler is quite prone to "Buffer Bloat" and extreme latency when dealing with slower client
148links as we often encounter in a video server.
149
137### systemd 150### systemd
138 151
139If your OS uses systemd, copy the configuration template: 152If your OS uses systemd, copy the configuration template: