VictoriaMetrics/app/vmalert/datasource
Roman Khavronenko 7fcbd3fa4b
Adjust http.Transport.MaxIdleConns setting for vmauth/vmalert services (#1704)
* vmalert: adjust `http.Transport.MaxIdleConns` value accordingly to `http.Transport.MaxIdleConnsPerHost`

`http.Transport.MaxIdleConnsPerHost` setting is controlled by `datasource.maxIdleConnections` flag,
while `http.Transport.MaxIdleConns` is inherited from DefaultTransport and is equal to `100`.
The fix adjusts `http.Transport.MaxIdleConns` value if it is lower than `http.Transport.MaxIdleConnsPerHost`.

Signed-off-by: hagen1778 <roman@victoriametrics.com>

* vmauth: adjust `http.Transport.MaxIdleConns` value accordingly to `http.Transport.MaxIdleConnsPerHost`

`http.Transport.MaxIdleConnsPerHost` setting is controlled by `maxIdleConnsPerBackend` flag,
while `http.Transport.MaxIdleConns` is inherited from DefaultTransport and is equal to `100`.
The fix adjusts `http.Transport.MaxIdleConns` value if it is lower than `http.Transport.MaxIdleConnsPerHost`.

Signed-off-by: hagen1778 <roman@victoriametrics.com>
2021-10-13 17:29:28 +03:00
..
datasource.go vmalert: support rules backfilling (aka replay) (#1358) 2021-06-09 12:20:38 +03:00
datasource_test.go vmalert: support rules backfilling (aka replay) (#1358) 2021-06-09 12:20:38 +03:00
init.go Adjust http.Transport.MaxIdleConns setting for vmauth/vmalert services (#1704) 2021-10-13 17:29:28 +03:00
type.go Graphite vmalert wip (#112) 2021-02-01 15:05:32 +02:00
vm.go vmalert: support bearer token for datasource, remotewrite and remoteread (#1614) 2021-09-14 14:32:06 +03:00
vm_graphite_api.go vmalert: support rules backfilling (aka replay) (#1358) 2021-06-09 12:20:38 +03:00
vm_prom_api.go Vmalert extra params (#1587) 2021-08-31 14:57:47 +03:00
vm_test.go vmalert: support bearer token for datasource, remotewrite and remoteread (#1614) 2021-09-14 14:32:06 +03:00