You can configure a high-performance host switch profile for hosts to achieve higher network performance.
You can configure a default high-performance host switch profile or a custom high-performance host switch profile, but not both.
You can apply the high-performance host switch profile to sub-TNP as well. See Sub-TNPs and Sub-clusters topic in the NSX Installation Guide.
Procedure
- Determine whether you want to configure a default or a custom high-performance host switch profile. Do not configure both.
- To configure a default high-performance host switch profile, make the following API call.
PATCH https://<policy-mgr>/policy/api/v1/infra/host-switch-profiles/HPprofile-default-a
{
"high_performance_configs":[],
"auto_config":0,
"display_name": "HPprofile-default-a",
"description": "",
"resource_type": "HighPerformanceHostSwitchProfile",
"_system_owned": true,
"_revision": 0
}
- To configure a custom high-performance host switch profile, make the following API call.
PATCH https://<policy-mgr>/policy/api/v1/infra/host-switch-profiles/HPprofile-customized-a
{
"high_performance_configs": [
{
"high_performance_config_type": "ADV_CONFIG",
"version": [
"8.0.2"
],
"high_performance_config_params": [
{
"key": "/Net/NetSchedHClkVnicMQ",
"value": "1"
}
]
},
{
"high_performance_config_type": "DRIVER_CONFIG",
"driver_info": ["nmlx5_core"],
"version": [
"default"
],
"high_performance_config_params": [
{
"key": "netq_rss_ens",
"value": "1"
}
]
},
{
"high_performance_config_type": "MISC_CONFIG",
"version": [
"default"
],
"uplink_tx_ring_size": 4096,
"uplink_rx_ring_size": 4096
}
],
"auto_config": 0,
"resource_type": "PolicyHighPerformanceHostSwitchProfile"
}
- Identify a host to apply the default or custom high-performance host switch profile.
- Log in to the NSX UI.
- Select .
- Select a standalone host or a host within a cluster.
- Click the menu icon (three dots) and select Copy ID to Clipboard.
- Identify the transport node profile ID.
- Select .
- Identify the transport node profile ID.
- In the vSphere Client, set the selected host into the maintenance mode.
When you activate the pending_host_maintenance_mode parameter, the host goes into maintenance mode. When in maintenance mode, applying the high-performance configuration on the host starts.
Note: When the host is in maintenance mode, an alarm appears, indicating the state of the host.
After the host is out of maintenance mode, the alarm resolves automatically.
Note: If you do not put the host in maintenance mode, the high-performance host switch profile is not applied to the host.
The relevant log messages about the failed operation and its cause are generated if the operation fails.
- Attach the custom high-performance host switch profile to the transport node profile.
PUT https://<nsx-policy-manager>/policy/api/v1/infra/host-transport-node-profiles/<tnp-id>
In the <tnp-id>
parameter, enter the transport node profile ID.
...
{
"host_switch_name": "DSwitch",
"host_switch_id": "50 31 7d a4 26 52 3a 8f-71 cf 8c 89 8c 09 d5 89",
"host_switch_type": "VDS",
"host_switch_mode": "ENS_INTERRUPT",
"host_switch_profile_ids": [
{
"key": "UplinkHostSwitchProfile",
"value": "/infra/host-switch-profiles/fb38b6c9-379b-42cf-b78c-13fc05da2e0d"
},
{ "key": "HighPerformanceHostSwitchProfile",
"value": "/infra/host-switch-profiles/HPprofile-customized-a" # <--- This is the profile created in step 3.
}
],
...
- Verify that the high-performance host switch profile is applied to transport nodes.
GET https://<nsx-manager>/policy/api/v1/infra/host-transport-nodes-profiles/<tnp_id>
After the default or custom high-performance host profile is successfully applied, all the required networking sub-configuration is configured, and a success log is generated.
- (Optional) Manually reset all the high-performance host profile configurations to default for emergency recovery.
- Locate the DVS switch name on the server.
- Run the hp_dp_script.py script.
python3 <pathname of hp_dp_script.py> -d <DVSSwitchName> -r
The pathname of hp_dp_script.py is usually /usr/lib/vmware/high-performance-dp/hp_dp_script.py on an ESXi host.