Skip to content

limits_not_recommended job from os-conf/21.0.0

This job is not recommended. Firstly, it blindly copies in a configuration file with no error-checking, potentially causing deployment failures. Secondly, it encourages the increase of system limits to work around broken BOSH jobs, when effort is better spent fixing the BOSH jobs (e.g. increasing `nofile` to get around a faulty long-running BOSH job that leaks file descriptors and finally fails).

Github source: bc342b9 or master branch

Properties

limits_conf

Linux limits.conf file https://linux.die.net/man/5/limits.conf' Does not overwrite the existing limits.conf file; instead, it installs a secondary limits.conf file in /etc/security/limits.d/.

Default
""
Example
|+
  vcap  soft  nofile  16384
  vcap  hard  nofile  16384

limits_systemd_default_nofile

Ubuntu xenial needs this set for systemd.conf, DefaultLimitNOFILE All limits.conf and limit.d settings are ignored.

Templates

Templates are rendered and placed onto corresponding instances during the deployment process. This job's templates will be placed into /var/vcap/jobs/limits_not_recommended/ directory (learn more).

  • bin/pre-start (from pre-start.sh.erb)
  • etc/limits.conf (from limits.conf.erb)

Packages

Packages are compiled and placed onto corresponding instances during the deployment process. Packages will be placed into /var/vcap/packages/ directory.

This job relies on no runtime packages.