Ubuntu Xenial stemcells have a default ARP cache limit was set to
1024. This may be insufficient in large environments with 600+ instances.
You can double size of ARP cache limit with commands such as:
sysctl -w net.ipv4.neigh.default.gc_thresh2=1024
sysctl -w net.ipv4.neigh.default.gc_thresh3=2048
Note: Settings changed by sysctl will be overwritten when the VM is recreated.
gc_thresh2 will make
gc more aggressive kicks while bumping
gc_thresh3 to
2048 will increase overall limit.
os-conf is the mechanism for arbitrary linux tuning and persisting these settings to BOSH deployed VMs, see:
https://github.com/cloudfoundry/os-conf-releaseFor an example of tuning a kernel parameter with
os-conf, please see:
https://community.pivotal.io/s/article/how-to-update-tcp-keepalive-parameters-in-vms-in-pivotal-cloud-foundry?language=en_US