When running latency-sensitive applications inside a virtual machine, you can use virtual CPU pinning to eliminate the extra latency that is imposed by virtualization.
Important: This feature is offered in
VMware Integrated OpenStack
Carrier Edition only. For more information, see
VMware Integrated OpenStack Licensing.
Virtual CPU pinning enables high latency sensitivity and ensures that all memory and an entire physical core are reserved for the virtual CPU of an OpenStack instance. You configure virtual CPU pinning on a flavor and then create instances with that flavor.
Procedure
- Log in to the VMware Integrated OpenStack dashboard as a cloud administrator.
- Select the admin project from the drop-down menu in the title bar.
- Select
- Create a new flavor or choose an existing flavor to use for virtual CPU pinning.
- Select Update Metadata next to the flavor that you want to use.
- In the Available Metadata pane, select and configure the required metadata.
- Expand CPU Pinning and click the Add (plus sign) icon next to CPU Pinning policy.
- Set the value of hw:cpu_policy to dedicated.
- Expand VMware Policies and click the Add (plus sign) icon next to VM latency sensitivity.
- Set the value of vmware:latency_sensitivity_level to high.
- Expand VMware Quota and click the Add (plus sign) icon next to CPU Reservation in Percentage and Memory Reservation in Percentage.
- Set the value of quota:cpu_reservation_percent and quota:memory_reservation_percent to 100.
- Click Save.
What to do next
You can now enable virtual CPU pinning on an instance by configuring it with the flavor that you modified in this procedure.