HA migration selection critera?

konaya

Active Member
Sep 16, 2017
24
0
41
I have been experimenting a bit with how a cluster behaves in terms of migrations when a node is removed from an HA group. As far as I can tell, when the removed node is evacuated by HA, the target node seems to be selected based on which remaining node has the lowest CPU usage at the time of selection. Is it possible to set it to select based on the lowest memory usage instead?
 
As far as I can tell, when the removed node is evacuated by HA, the target node seems to be selected based on which remaining node has the lowest CPU usage at the time of selection
Not exactly, the HA manager is using something far simpler at the moment (to avoid high dynamic changes triggering unstable behavior), it simply balances the recovered service to the remaining nodes by active service count.

A more elaborate target selection is on the long-term roadmap, but nothing currently actively being worked on.
 
Does active service count mean number of VPSes/containers or simply the number of active processes?

Would you mind pointing me in the right direction to find where in the code this check happens? I'd like to study it and see if we can find a workaround in-house.
 

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!