Previous page

Next page

Locate page in Contents

Print this page

Configuring HA Priority for Virtual Machines and Containers

HA priority defines which virtual machines and Containers will be relocated first if the node where they are hosted gets broken. The more priority, the more chances a virtual machine or Container has to be relocated to a healthy node, if the Virtuozzo Storage cluster does not have enough disk resources.

By default, all newly created virtual machines and Containers have the priority set to 0. You can use the prlctl set command to configure the default priority of a virtual machine or Container, for example:

# prlctl set MyVM1 --ha-prio 1

# prlctl set MyVM2 --ha-prio 2

This command set the HA priority for the MyVM1 and MyVM2 virtual machines to 1 and 2, respectively. If the node where the virtual machines are hosted fails, MyVM2 will be relocated to a healthy node first, followed by MyVM1 and then by all other virtual machines that have the default priority of 0.