Replication and HA confusion

LordRatner

Member
Jun 20, 2022
50
14
13
Hi there,

This should be a short one. I have 2 nodes and one Q-device for quorom. I have VMs and CTs set with replication to the other node. Then I have HA set. All VM/containers have 2 max restarts set, and some have 1 max relocate, others have 0 max relocate.

However when one of the nodes fails, the VMs and CTs with "Max Relocate" set to zero are still ending up on the online node. Since some have passed through hardware, I don't want them to move when their node fails, since they can't work without the hardware anyways,

What am I setting up wrong?

Thanks!
 
Hi,
the documentation states:
Code:
max_relocate
Maximal number of service relocate tries when a service fails to start.
So if starting a service doesn't fail, the setting doesn't have an effect. If you want to restrict a HA service to certain nodes, create a HA group with only those nodes and set the Restricted flag for the group. Then add the desired HA services to the group.