Pivotal Cloud Foundry 1.7
To persist TCP keepalive parameters to the kernel configuration in virtual machines (VMs) in a Pivotal Cloud Foundry cluster.
In PCF 1.7, there is a new feature called "add-ons" using bosh. This feature enables operators to run software is not part of the bosh release - typically third-party monitoring agents, antivirus, security software, operating system kernel parameters etc.
To change TCP keepalive parameters in a kernel configuration, see detailed instructions below:
- Upload the
The tar bundle of the release is provided here:
bosh upload release https://bosh.io/d/github.com/cloudfoundry/os-conf-release
runtime.ymlmanifest file and copy contents of
releasesection of the manifest file to match the
bosh releasesoutput, note the
Add the TCP keep-alive properties in the yml file.
releases: - name: os-conf version: 6 addons: - name: networking jobs: - name: tcp_keepalive release: os-conf properties: tcp_keepalive: time: 121 interval: 31 probes: 9
- Update the runtime config on the director:
bosh update runtime-config ./runtime.yml
bosh runtime-configto confirm
Click "Apply Changes" in the Ops Manager.
- To verify the changes, ssh to the VM and run the following command:
sysctl -a | grep tcp_keepalive
Note that the above procedure will update the kernel parameters across all of the VMs in the Pivotal Cloud Foundry cluster. There is no provision to update and persist the kernel settings on a per VM basis.