Customer may observe severe network degradation and routing failures within the Tanzu Platform for Cloud Foundry (TPCF) environment. Symptoms include:
ERR: Request error: Post "https://api.<system_domain>/v3/spaces": dial tcp X.X.X.X:443: i/o timeoutmonit-actual: error connecting to the monit daemon
Tanzu Platform for Cloud Foundry (TPCF) / Elastic Application Runtime (EAR) v10.x
The root cause is the exhaustion of the Linux kernel's connection tracking table (nf_conntrack).
The nf_conntrack module tracks all active network connections traversing the Gorouter. When the number of concurrent connections exceeds the maximum limit configured in the kernel (nf_conntrack_max), the kernel begins aggressively dropping new packets.
Because packets are dropped at the kernel level:
During troubleshooting, it was observed that the concurrent connections on the Gorouters were rapidly reaching ~55,000 to 60,000, hitting the maximum threshold allowed for a VM with 4GB of RAM.
Note: Scaling out the number of Gorouter VMs horizontally (e.g., from 6 to 9) does not adequately resolve this issue if the traffic profile inherently drives high per-node connection counts.
Temporary Workaround:-
To immediately restore service and stop the kernel from dropping packets, you can dynamically increase the maximum connection tracking limit directly on the affected Gorouter VMs without a reboot.
sudo sysctl -w net.netfilter.nf_conntrack_max=262144Permanent Solution:-
The nf_conntrack_max value is automatically calculated by the Linux kernel based on the total amount of RAM allocated to the VM.
To permanently resolve this issue so that the configuration survives VM recreation and BOSH deployments:
By increasing the VM memory to 8GB, the kernel will automatically calculate a much higher nf_conntrack_max limit upon boot, safely accommodating the environment's high connection volume.
To monitor the current connection tracking usage and limits on a Linux VM, you can run the following commands:
sudo sysctl net.netfilter.nf_conntrack_countsudo sysctl net.netfilter.nf_conntrack_max