Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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/file_server/spec
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ properties:
loggregator.key:
description: "Private key for the SSH-proxy metron client certificate."

set_ulimit_fds:
description: "Set an ulimit on the number of open file descriptors. NOTE: set this property to 'false' when deploying to a containerized cloud"
default: true

set_kernel_parameters:
description: "Enable tuning /proc/sys kernel parameters. NOTE: set this property to 'false' when deploying to BOSH-Lite or other containerized BOSH clouds."
default: true
2 changes: 2 additions & 0 deletions jobs/file_server/templates/file_server_ctl.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ case $1 in

$bin_dir/set-file-server-kernel-params

<% if p("set_ulimit_fds") %>
# Allowed number of open file descriptors
ulimit -n 100000
<% end %>

exec chpst -u vcap:vcap bash -c '/var/vcap/jobs/file_server/bin/file_server_as_vcap'

Expand Down
4 changes: 4 additions & 0 deletions jobs/rep/spec
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,10 @@ properties:
description: "Enable tuning /proc/sys kernel parameters. NOTE: set this property to 'false' when deploying to BOSH-Lite or other containerized BOSH clouds."
default: true

set_ulimit_fds:
description: "Set an ulimit on the number of open file descriptors. NOTE: set this property to 'false' when deploying to a containerized cloud"
default: true

containers.proxy.configuration_reload_duration:
description: "Duration of time in seconds that the rep grants the container Envoy proxy to reload its listener configuration when shutting down a container gracefully so that TLS-verifying clients will stop making connections. After this time duration, the rep will shut down other processes in the container."
default: 5s
Expand Down
2 changes: 2 additions & 0 deletions jobs/rep/templates/rep_ctl.erb
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ case $1 in
$bin_dir/set-rep-kernel-params
$bin_dir/setup_mounted_data_dirs

<% if p("set_ulimit_fds") %>
# Allowed number of open file descriptors
ulimit -n 100000
<% end %>

exec chpst -u vcap:vcap /var/vcap/jobs/rep/bin/rep_as_vcap

Expand Down