Upstream keepalive time (#8319)
* nginx 1.19.10 keepalive_time parameter * nginx v1.19.10 base image * keepalive_time documentation * base image * restore base image * e2e test * replace default value in test
This commit is contained in:
parent
db4aeea723
commit
d4b9b486e6
4 changed files with 29 additions and 6 deletions
|
|
@ -468,6 +468,10 @@ type Configuration struct {
|
|||
// http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive
|
||||
UpstreamKeepaliveConnections int `json:"upstream-keepalive-connections,omitempty"`
|
||||
|
||||
// Sets the maximum time during which requests can be processed through one keepalive connection
|
||||
// https://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive_time
|
||||
UpstreamKeepaliveTime string `json:"upstream-keepalive-time,omitempty"`
|
||||
|
||||
// Sets a timeout during which an idle keepalive connection to an upstream server will stay open.
|
||||
// http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive_timeout
|
||||
UpstreamKeepaliveTimeout int `json:"upstream-keepalive-timeout,omitempty"`
|
||||
|
|
@ -892,6 +896,7 @@ func NewDefault() Configuration {
|
|||
ServiceUpstream: false,
|
||||
},
|
||||
UpstreamKeepaliveConnections: 320,
|
||||
UpstreamKeepaliveTime: "1h",
|
||||
UpstreamKeepaliveTimeout: 60,
|
||||
UpstreamKeepaliveRequests: 10000,
|
||||
LimitConnZoneVariable: defaultLimitConnZoneVariable,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue