mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
add comments to the MaxIdleConnsPerHost tweak
This commit is contained in:
parent
ab9627012c
commit
a35dd5e586
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue