VictoriaMetrics/app/vmalert/datasource
Roman Khavronenko f393145843
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 19:23:52 +03:00
..
datasource.go vmalert: support rules backfilling (aka replay) (#1358) 2021-06-09 12:30:54 +03:00
datasource_test.go vmalert: support rules backfilling (aka replay) (#1358) 2021-06-09 12:30:54 +03:00
init.go Adjust http.Transport.MaxIdleConns setting for vmauth/vmalert services (#1704) 2021-10-13 19:23:52 +03:00
type.go Graphite vmalert wip (#112) 2021-02-01 15:28:30 +02:00
vm.go vmalert: support bearer token for datasource, remotewrite and remoteread (#1614) 2021-09-14 14:48:43 +03:00
vm_graphite_api.go vmalert: support rules backfilling (aka replay) (#1358) 2021-06-09 12:30:54 +03:00
vm_prom_api.go Vmalert extra params (#1587) 2021-09-01 12:20:01 +03:00
vm_test.go vmalert: support bearer token for datasource, remotewrite and remoteread (#1614) 2021-09-14 14:48:43 +03:00