lib/promscrape/discoveryutils: remove limit on the number of concurrently running blocking queries

Too low limit could result in unexpected errors when performing big number of blocking queries.
This commit is contained in:
Aliaksandr Valialkin 2020-12-05 12:13:57 +02:00
parent 528587deef
commit 1430bbcf33

View File

@ -94,7 +94,7 @@ func NewClient(apiServer string, ac *promauth.Config) (*Client, error) {
ReadTimeout: time.Minute * 3, ReadTimeout: time.Minute * 3,
WriteTimeout: 10 * time.Second, WriteTimeout: 10 * time.Second,
MaxResponseBodySize: 300 * 1024 * 1024, MaxResponseBodySize: 300 * 1024 * 1024,
MaxConns: 20 * *maxConcurrency, MaxConns: 64 * 1024,
Dial: dialFunc, Dial: dialFunc,
} }
return &Client{ return &Client{