[PR #3] Feature/only run on master #25

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

Original Pull Request: https://github.com/cvk98/Proxmox-load-balancer/pull/3

State: closed
Merged: Yes


Not sure if this is a direction you wanted to go in with PLB, but I've added a capability for the script to determine if it's running on a cluster master node, and only run if it is. This means I can configure all my proxmox hosts identically using ansible, but the script only actually does anything on one node, even if the cluster HA reconfigures itself.

  • if you set only_on_master to ON, the script will skip migrating any VMs if hostname != cluster_master.
  • defaults to OFF because if you're running it from a different machine altogether, it would never run.
  • defaults to OFF if the only_on_master is not in config.yml, to prevent users having to update config on upgrade.
**Original Pull Request:** https://github.com/cvk98/Proxmox-load-balancer/pull/3 **State:** closed **Merged:** Yes --- Not sure if this is a direction you wanted to go in with PLB, but I've added a capability for the script to determine if it's running on a cluster master node, and only run if it is. This means I can configure all my proxmox hosts identically using ansible, but the script only actually does anything on one node, even if the cluster HA reconfigures itself. * if you set `only_on_master` to `ON`, the script will skip migrating any VMs if `hostname != cluster_master`. * defaults to `OFF` because if you're running it from a different machine altogether, it would never run. * defaults to `OFF` if the `only_on_master` is not in config.yml, to prevent users having to update config on upgrade.
kerem 2026-02-26 17:46:10 +03:00
kerem changed title from [PR #3] [MERGED] Feature/only run on master to [PR #3] Feature/only run on master 2026-03-01 15:58:45 +03:00
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#25
No description provided.