Skip to content

Commit

Permalink
Merge pull request #1321 from aledbf/keepalive
Browse files Browse the repository at this point in the history
Enable keepalive in upstreams
  • Loading branch information
aledbf authored Sep 8, 2017
2 parents 949b83e + 3e4542e commit 7b4d8cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/nginx/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ type Configuration struct {
// upstream servers that are preserved in the cache of each worker process. When this
// number is exceeded, the least recently used connections are closed.
// http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive
// Default: 0 (disabled)
// Default: 32
UpstreamKeepaliveConnections int `json:"upstream-keepalive-connections,omitempty"`

// Sets the maximum size of the variables hash table.
Expand Down Expand Up @@ -429,7 +429,7 @@ func NewDefault() Configuration {
LimitRate: 0,
LimitRateAfter: 0,
},
UpstreamKeepaliveConnections: 0,
UpstreamKeepaliveConnections: 32,
LimitConnZoneVariable: defaultLimitConnZoneVariable,
BindAddressIpv4: defBindAddress,
BindAddressIpv6: defBindAddress,
Expand Down

0 comments on commit 7b4d8cb

Please sign in to comment.