[GH-ISSUE #8] HA priority & Hardware Pass Through #5

Closed
opened 2026-02-26 17:46:04 +03:00 by kerem · 5 comments
Owner

Originally created by @VibroAxe on GitHub (Aug 18, 2022).
Original GitHub issue: https://github.com/cvk98/Proxmox-load-balancer/issues/8

Does this script take into account ha priority (if a machine has a node affinity set, migrating it will only cause it to bounce back to the original node) and will it ignore (/pin) machines with hardware pass through, as they are not able to be migrated?

Originally created by @VibroAxe on GitHub (Aug 18, 2022). Original GitHub issue: https://github.com/cvk98/Proxmox-load-balancer/issues/8 Does this script take into account ha priority (if a machine has a node affinity set, migrating it will only cause it to bounce back to the original node) and will it ignore (/pin) machines with hardware pass through, as they are not able to be migrated?
kerem closed this issue 2026-02-26 17:46:04 +03:00
Author
Owner

@cvk98 commented on GitHub (Aug 18, 2022):

No. It focuses only on loading the RAM of the node.

<!-- gh-comment-id:1219574736 --> @cvk98 commented on GitHub (Aug 18, 2022): No. It focuses only on loading the RAM of the node.
Author
Owner

@VibroAxe commented on GitHub (Aug 19, 2022):

Might be worth a note in the readme, as running the script in this situation would end up with the server flapping :D

Shame, any chance of getting this accounted for, it looks like an awesome script but wont work in my environment! I'd PR but having looked at it, it's way beyond my Python experience :D

<!-- gh-comment-id:1220494402 --> @VibroAxe commented on GitHub (Aug 19, 2022): Might be worth a note in the readme, as running the script in this situation would end up with the server flapping :D Shame, any chance of getting this accounted for, it looks like an awesome script but wont work in my environment! I'd PR but having looked at it, it's way beyond my Python experience :D
Author
Owner

@cvk98 commented on GitHub (Aug 19, 2022):

Our cluster does not use HA. Therefore, I wrote the script without taking into account its needs. I didn't even know that HA had priority of node selection. But I can tell you how you can use this script at home. In the config, you can specify a list of exceptions for nodes by entering nodes not participating in HA there. Then your virtual machines from the HA cluster will not migrate to a random node. Next to it, you can run a second instance, in the config of which there will be nodes with HA in exceptions. You will get 2 load balancers for 2 parts of the cluster. Maybe (not 100%), this is what you need.
And in the readme I will add the warning you recommended. Thanks.

<!-- gh-comment-id:1220556751 --> @cvk98 commented on GitHub (Aug 19, 2022): Our cluster does not use HA. Therefore, I wrote the script without taking into account its needs. I didn't even know that HA had priority of node selection. But I can tell you how you can use this script at home. In the config, you can specify a list of exceptions for nodes by entering nodes not participating in HA there. Then your virtual machines from the HA cluster will not migrate to a random node. Next to it, you can run a second instance, in the config of which there will be nodes with HA in exceptions. You will get 2 load balancers for 2 parts of the cluster. Maybe (not 100%), this is what you need. And in the readme I will add the warning you recommended. Thanks.
Author
Owner

@VibroAxe commented on GitHub (Aug 19, 2022):

Oh thats cool, didn't realise it had the exemptions added, looking at the config I assume use the

exclusions:
  vms: []    # Example: [100] or [100, 101, 102, 113, 125, 131]

Perfect thanks!

<!-- gh-comment-id:1220560818 --> @VibroAxe commented on GitHub (Aug 19, 2022): Oh thats cool, didn't realise it had the exemptions added, looking at the config I assume use the ``` exclusions: vms: [] # Example: [100] or [100, 101, 102, 113, 125, 131] ``` Perfect thanks!
Author
Owner

@cvk98 commented on GitHub (Aug 19, 2022):

It is worth adding that all virtual machines that run on nodes added to "exclusions: nodes" will be ignored.
If the script works for you, I'm waiting for a screenshot in issue #7))

<!-- gh-comment-id:1220580172 --> @cvk98 commented on GitHub (Aug 19, 2022): It is worth adding that all virtual machines that run on nodes added to "exclusions: nodes" will be ignored. If the script works for you, I'm waiting for a screenshot in issue #7))
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Proxmox-load-balancer#5
No description provided.