Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions jobs/cloud_controller_ng/spec
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,10 @@ properties:
description: "Configure keep alive timeout for connections to cloud controller. This is a temporary field used for testing."
default: 100

cc.nginx_upstream_keepalive_timeout:
description: "Keepalive timeout in seconds for nginx upstream connections to Puma. Must be less than cc.puma.persistent_timeout (default 20s) to prevent stale keepalive connections causing broken pipe errors."
default: 15

cc.jobs.local.number_of_workers:
default: 2
description: "Number of local cloud_controller_worker workers"
Expand Down
2 changes: 2 additions & 0 deletions jobs/cloud_controller_ng/templates/nginx.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ limit_req_zone $http_authorization zone=<%= zone['name'] %>:10m rate=<%= zone['l

upstream cloud_controller {
server unix:/var/vcap/data/cloud_controller_ng/cloud_controller.sock;
keepalive 32;
Comment thread
stephanme marked this conversation as resolved.
Outdated
keepalive_timeout <%= p("cc.nginx_upstream_keepalive_timeout") %>s;
}

upstream cloud_controller_metrics {
Expand Down