This article performs tuning recommendations that may provide higher throughput for Antrea pod to pod networking.
VMware NSX
Antrea
VMware Kubernetes Services
Guest Tuning:
| Tuning Configuration | Value | Instruction | Notes |
|
Guest MTU
|
8900 | ip link set eth0 mtu 8900 |
High performance use cases e.g. storage, AI etc. will generally use jumbo frames. |
| LRO / GRO | LRO off, GRO on | ethtool -K eth0 lro off gro on |
Default configuration |
| UDP flow hashing | source and destination ports (Antrea overlay UDP header) | ethtool -N eth0 rx-flow-hash udp4 sdfn |
This will already be configured due to the vmx setting ethernet0.udpRSS = "1" in the next line Validate it is set with:
|
| VM settings | ethernet0.ctxPerDev = "3"ethernet0.pnicFeatures = "4"ethernet0.udpRSS = "1" |
When creating the VKS cluster, edit the Advanced Parameters for the VM class and configure these attributes. |
These values cannot be changed once the cluster is created.
|
ESX Host Tuning:
The ESX host should be prepared for Enhanced Datapath Standard instead of Standard mode, see Enhanced Data Path. Note this is the default configuration for NSX 9.x environments.