diff --git a/cmd/bluepages/server.go b/cmd/bluepages/server.go index b7ac746f..b2b26d5b 100644 --- a/cmd/bluepages/server.go +++ b/cmd/bluepages/server.go @@ -60,6 +60,7 @@ func NewServer(config Config) (*Server, error) { HTTPClient: http.Client{ Timeout: time.Second * 10, Transport: &http.Transport{ + Proxy: http.ProxyFromEnvironment, // would want this around 100ms for services doing lots of handle resolution (to reduce number of idle connections). Impacts PLC connections as well, but not too bad. IdleConnTimeout: time.Millisecond * 100, MaxIdleConns: 1000, diff --git a/cmd/palomar/main.go b/cmd/palomar/main.go index 28c3c8d0..213ae2ee 100644 --- a/cmd/palomar/main.go +++ b/cmd/palomar/main.go @@ -490,6 +490,7 @@ func createEsClient(cmd *cli.Command) (*es.Client, error) { Password: cmd.String("elastic-password"), CACert: cert, Transport: &http.Transport{ + Proxy: http.ProxyFromEnvironment, MaxIdleConnsPerHost: 20, TLSClientConfig: &tls.Config{ InsecureSkipVerify: insecure,