From 25e4a681bde49d0b3b9d0bea96772253fe5fa410 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 b313e9b98..60e588075 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() m.Server.Handler.Version = Version fmt.Fprintf(m.Stderr, "Pilosa %s\n", Version)