aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/sysctl.d
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/sysctl.d
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/sysctl.d')
-rw-r--r--support/sysctl.d/30-peertube-tcp.conf9
1 files changed, 9 insertions, 0 deletions
diff --git a/support/sysctl.d/30-peertube-tcp.conf b/support/sysctl.d/30-peertube-tcp.conf
new file mode 100644
index 000000000..09285bb56
--- /dev/null
+++ b/support/sysctl.d/30-peertube-tcp.conf
@@ -0,0 +1,9 @@
1# In a video server, we are often sending files to a client
2# which can't accept it as fast as our local network connection
3# could produce packets. To prevent packet loss and buffer bloat,
4# it's especially important to use a modern CoDel scheduler which
5# knows how to delay outgoing packets to match slower client links.
6
7net.core.default_qdisc = fq_codel
8net.ipv4.tcp_congestion_control = bbr
9