From a35dd5e5861db6d9059dffa4963b7cd673692ebd Mon Sep 17 00:00:00 2001 From: Travis Date: Wed, 1 Feb 2017 12:57:06 -0600 Subject: [PATCH] add comments to the MaxIdleConnsPerHost tweak --- cmd/pilosa/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/pilosa/main.go b/cmd/pilosa/main.go index 8513a5ce3..4d19ef808 100644 --- a/cmd/pilosa/main.go +++ b/cmd/pilosa/main.go @@ -35,7 +35,10 @@ const ( ) func main() { + // Limit the number of connections that a server can make to a single node + // in order to prevent a cluster storm. http.DefaultTransport.(*http.Transport).MaxIdleConnsPerHost = 64 + m := NewMain() fmt.Fprintf(m.Stderr, "Pilosa %s\n", Build)