Using resource policies
In addition to the VM scheduler, which determines the initial compute node for launching a VM, you can dynamically manage resources using resource policies. These policies enable automatic live migration of virtual machines to optimize workload distribution and resource usage within your compute cluster.
-
Dynamic consolidation automatically places tagged VMs on the minimum number of compute nodes. This policy is especially useful for addressing licensing requirements for Windows and Oracle VMs. For example, if all Windows VMs in the cluster can fit on a single node, dynamic consolidation will migrate them to that node.
Who should use dynamic consolidation: Users who need to report the number of physical hosts for licensing purposes.
-
Dynamic distribution ensures an even distribution of available compute resources by continuously analyzing the resources consumed by VMs and those provisioned through flavors. This policy enhances workload stability by reducing resource contention and simplifies cluster operations by automating VM distribution after maintenance or outages.
Who should use dynamic distribution: Virtually everyone.
Before you can start using resource policies, you need to install the corresponding service.
Limitations
- In the current version of Virtuozzo Infrastructure, the installed service cannot be removed.
Prerequisites
- The compute cluster is created, as described in Creating the compute cluster.
To install resource policies
Admin panel
- Go to the Compute > Settings > Add-on services screen.
- In the Resource policies section, click Install.
Command-line interface
Run the following command:
# vinfra service compute set --enable-resource-policies