Merge pull request #1321 from aledbf/keepalive
Enable keepalive in upstreams
This commit is contained in:
commit
7b4d8cb1c3
1 changed files with 2 additions and 2 deletions
|
@ -335,7 +335,7 @@ type Configuration struct {
|
||||||
// upstream servers that are preserved in the cache of each worker process. When this
|
// upstream servers that are preserved in the cache of each worker process. When this
|
||||||
// number is exceeded, the least recently used connections are closed.
|
// number is exceeded, the least recently used connections are closed.
|
||||||
// http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive
|
// http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive
|
||||||
// Default: 0 (disabled)
|
// Default: 32
|
||||||
UpstreamKeepaliveConnections int `json:"upstream-keepalive-connections,omitempty"`
|
UpstreamKeepaliveConnections int `json:"upstream-keepalive-connections,omitempty"`
|
||||||
|
|
||||||
// Sets the maximum size of the variables hash table.
|
// Sets the maximum size of the variables hash table.
|
||||||
|
@ -429,7 +429,7 @@ func NewDefault() Configuration {
|
||||||
LimitRate: 0,
|
LimitRate: 0,
|
||||||
LimitRateAfter: 0,
|
LimitRateAfter: 0,
|
||||||
},
|
},
|
||||||
UpstreamKeepaliveConnections: 0,
|
UpstreamKeepaliveConnections: 32,
|
||||||
LimitConnZoneVariable: defaultLimitConnZoneVariable,
|
LimitConnZoneVariable: defaultLimitConnZoneVariable,
|
||||||
BindAddressIpv4: defBindAddress,
|
BindAddressIpv4: defBindAddress,
|
||||||
BindAddressIpv6: defBindAddress,
|
BindAddressIpv6: defBindAddress,
|
||||||
|
|
Loading…
Reference in a new issue