An NSX Edge node experiences significant performance degradation characterized by high CPU utilization spikes.
The datapathd process consumes excessive CPU (e.g., >200%), impacting fast-path processing, while the bgpd process shows high CPU usage (e.g., >190%), affecting routing stability. Management agents fail to communicate with the datapath, resulting in the following error in the syslog.log file. "unixctl|WARN|failed to connect to /var/run/vmware/edge/dpd.ctl"
The Edge Health monitor reports Event ID mega_flow_cache_hit_rate_low, indicating a decrease in Mega Flow Cache hit rates while CPU usage remains high.
VMware NSX
The issue is caused by high Datapath CPU utilization which prevents timely processing of flow-cache entries and management communication.
This is driven by high flow creation where a continuous stream of new flows forces the first packet of each flow into the slow path for cache setup, or by physical CPU contention and spikes on the underlying ESXi host where the Edge VM resides.
To resolve this issue, perform the following steps to isolate and mitigate the performance constraints:
get datapath memoryclear edge-datapath flowcache