mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Datasource: Remove deprecated max_idle_connections_per_host setting (#49948)
This commit is contained in:
parent
1c659814b5
commit
b03657b0e0
@ -434,12 +434,6 @@ For more details check the [Transport.MaxConnsPerHost](https://golang.org/pkg/ne
|
|||||||
|
|
||||||
The maximum number of idle connections that Grafana will maintain. Default is `100`. For more details check the [Transport.MaxIdleConns](https://golang.org/pkg/net/http/#Transport.MaxIdleConns) documentation.
|
The maximum number of idle connections that Grafana will maintain. Default is `100`. For more details check the [Transport.MaxIdleConns](https://golang.org/pkg/net/http/#Transport.MaxIdleConns) documentation.
|
||||||
|
|
||||||
### max_idle_connections_per_host
|
|
||||||
|
|
||||||
[Deprecated - use max_idle_connections instead]
|
|
||||||
|
|
||||||
The maximum number of idle connections per host that Grafana will maintain. Default is `2`. For more details check the [Transport.MaxIdleConnsPerHost](https://golang.org/pkg/net/http/#Transport.MaxIdleConnsPerHost) documentation.
|
|
||||||
|
|
||||||
### idle_conn_timeout_seconds
|
### idle_conn_timeout_seconds
|
||||||
|
|
||||||
The length of time that Grafana maintains idle connections before closing them. Default is `90` seconds. For more details check the [Transport.IdleConnTimeout](https://golang.org/pkg/net/http/#Transport.IdleConnTimeout) documentation.
|
The length of time that Grafana maintains idle connections before closing them. Default is `90` seconds. For more details check the [Transport.IdleConnTimeout](https://golang.org/pkg/net/http/#Transport.IdleConnTimeout) documentation.
|
||||||
|
@ -23,10 +23,5 @@ func readDataProxySettings(iniFile *ini.File, cfg *Cfg) error {
|
|||||||
cfg.DataProxyRowLimit = defaultDataProxyRowLimit
|
cfg.DataProxyRowLimit = defaultDataProxyRowLimit
|
||||||
}
|
}
|
||||||
|
|
||||||
if val, err := dataproxy.Key("max_idle_connections_per_host").Int(); err == nil {
|
|
||||||
cfg.Logger.Warn("[Deprecated] the configuration setting 'max_idle_connections_per_host' is deprecated, please use 'max_idle_connections' instead")
|
|
||||||
cfg.DataProxyMaxIdleConns = val
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user