]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - support/sysctl.d/30-peertube-tcp.conf
Suggest TCP/IP tuning to prevent buffer bloat + latency (#976)
[github/Chocobozzz/PeerTube.git] / support / sysctl.d / 30-peertube-tcp.conf
diff --git a/support/sysctl.d/30-peertube-tcp.conf b/support/sysctl.d/30-peertube-tcp.conf
new file mode 100644 (file)
index 0000000..09285bb
--- /dev/null
@@ -0,0 +1,9 @@
+# In a video server, we are often sending files to a client
+# which can't accept it as fast as our local network connection
+# could produce packets. To prevent packet loss and buffer bloat,
+# it's especially important to use a modern CoDel scheduler which
+# knows how to delay outgoing packets to match slower client links.
+
+net.core.default_qdisc = fq_codel
+net.ipv4.tcp_congestion_control = bbr
+