From 631c78e655359526e3a71c69cf275440f0e7c6bb Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Wed, 5 Sep 2018 13:16:19 -0700 Subject: [PATCH] Bump up soMaxConn backlog for listener to 2048 (#6416) soMaxConn value is 128 on almost all linux systems, this value is too low for Minio at times when used against large concurrent workload e.g: spark applications this causes a sort of SYN flooding observed by the kernel to allow for large backlog increase this value to 2048. With this value we do not see anymore SYN flooding kernel messages. --- cmd/http/listen_nix.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/http/listen_nix.go b/cmd/http/listen_nix.go index 0904e8df4..07ca5f7fb 100644 --- a/cmd/http/listen_nix.go +++ b/cmd/http/listen_nix.go @@ -27,6 +27,9 @@ import ( var cfg = &tcplisten.Config{ DeferAccept: true, FastOpen: true, + // Bump up the soMaxConn value from 128 to 2048 to + // handle large incoming concurrent requests. + Backlog: 2048, } // Unix listener with special TCP options.