Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.
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: 3 additions & 1 deletion jobs/proxy/spec
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,6 @@ properties:
cf_mysql.proxy.consul_service_name:
description: "Switchboard will register with consul using this name"
default: "mysql"

cf_mysql.proxy.max_open_files:
description: 'Configure this number to be twice as large as mysql.max_connections'
default: 3000
2 changes: 2 additions & 0 deletions jobs/proxy/templates/switchboard_ctl.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export PATH=$GOROOT/bin:$PWD/bin:$PATH

source /var/vcap/packages/cf-mysql-common/pid_utils.sh

ulimit -n <%= p('cf_mysql.proxy.max_open_files') %>

case $1 in

start)
Expand Down