Replication and HA confusion

LordRatner

Member
Jun 20, 2022
50
13
8
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!