From 721be5f0d1874da3e623b4eeea81952909fdfee2 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 3 May 2009 20:35:36 -0700 Subject: TUNING: add a note about somaxconn with UNIX sockets --- TUNING | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TUNING b/TUNING index c0f633b..6445fd4 100644 --- a/TUNING +++ b/TUNING @@ -43,6 +43,10 @@ WARNING: Do not change system parameters unless you know what you're doing! size of :rcvbuf and :sndbuf respectively. This is mostly only useful for UNIX domain sockets which do not have auto-tuning buffer sizes. +* For load testing/benchmarking with UNIX domain sockets, you should + consider increasing net.core.somaxconn or else nginx will start + failing to connect under heavy load. + * If you're running out of local ports, consider lowering net.ipv4.tcp_fin_timeout to 20-30 (default: 60 seconds). Also consider widening the usable port range by changing -- cgit v1.2.3-24-ge0c7