Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Add option to run ProxLB only on the Proxmox's master node in the cluster. #43

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

gyptazy
Copy link
Owner

@gyptazy gyptazy commented Aug 4, 2024

feature: Add option to run ProxLB only on the Proxmox's master node in the cluster.

General

Tests

Running on a different node:

<6> ProxLB: Info: [logger]: Logger verbosity got updated to: INFO.
<4> ProxLB: Warning: [api-connection]: API connection does not verify SSL certificate.
<6> ProxLB: Info: [api-connection]: API connection succeeded to host: 10.10.10.211.
<6> ProxLB: Info: [cluster-master-getter]: Getting master node from cluster.
<6> ProxLB: Info: [cluster-master-getter]: Master node: virt03
<6> ProxLB: Info: [cluster-master-validator]: Node executor hostname is: dev-nfs01
<6> ProxLB: Info: [cluster-master-validator]: dev-nfs01 is not the cluster master (virt03).
<6> ProxLB: Info: [daemon]: Running in daemon mode. Next run in 24 hours.

Running on the master node:

<6> ProxLB: Info: [logger]: Logger verbosity got updated to: INFO.
<4> ProxLB: Warning: [api-connection]: API connection does not verify SSL certificate.
<6> ProxLB: Info: [api-connection]: API connection succeeded to host: 10.10.10.211.
<6> ProxLB: Info: [cluster-master-getter]: Getting master node from cluster.
<6> ProxLB: Info: [cluster-master-getter]: Master node: virt03
<6> ProxLB: Info: [cluster-master-validator]: Node executor hostname is: virt03
<6> ProxLB: Info: [cluster-master-validator]: virt03 is the cluster master (virt03).
<6> ProxLB: Info: [node-statistics]: Added node virt02.
<6> ProxLB: Info: [node-statistics]: Added node virt01.
<6> ProxLB: Info: [node-statistics]: Added node virt03.
<6> ProxLB: Info: [node-statistics]: Created node statistics.
<6> ProxLB: Info: [api-get-vm-tags]: Got VM/CT tag from API.
<6> ProxLB: Info: [api-get-vm-tags]: Got VM/CT tag from API.
<6> ProxLB: Info: [api-get-vm-tags]: Got VM/CT tag from API.
<6> ProxLB: Info: [api-get-vm-tags]: Got VM/CT tag from API.
<6> ProxLB: Info: [vm-statistics]: Added vm test08-fat01.
<6> ProxLB: Info: [api-get-vm-tags]: Got VM/CT tag from API.
<6> ProxLB: Info: [api-get-vm-tags]: Got VM/CT tag from API.
<6> ProxLB: Info: [api-get-vm-tags]: Got VM/CT tag from API.
<6> ProxLB: Info: [api-get-vm-include-exclude-tags]: Got PLB include group.
<4> ProxLB: Warn: [vm-statistics]: Rebalancing on LXC containers (CT) always requires them to shut down.
<4> ProxLB: Warn: [vm-statistics]: gyp02 is from type CT and cannot be live migrated!
<6> ProxLB: Info: [api-get-vm-tags]: Got VM/CT tag from API.
<6> ProxLB: Info: [api-get-vm-tags]: Got VM/CT tag from API.
<6> ProxLB: Info: [api-get-vm-tags]: Got VM/CT tag from API.
<6> ProxLB: Info: [api-get-vm-include-exclude-tags]: Got PLB include group.
<6> ProxLB: Info: [api-get-vm-tags]: Got VM/CT tag from API.
<6> ProxLB: Info: [vm-statistics]: Added vm test05.
<6> ProxLB: Info: [api-get-vm-tags]: Got VM/CT tag from API.
<4> ProxLB: Warn: [vm-statistics]: Rebalancing on LXC containers (CT) always requires them to shut down.
<4> ProxLB: Warn: [vm-statistics]: ct-fat is from type CT and cannot be live migrated!
<6> ProxLB: Info: [api-get-vm-tags]: Got VM/CT tag from API.
<6> ProxLB: Info: [api-get-vm-tags]: Got VM/CT tag from API.
<6> ProxLB: Info: [vm-statistics]: Added vm test06-gyptazy01.
<6> ProxLB: Info: [api-get-vm-tags]: Got VM/CT tag from API.
<6> ProxLB: Info: [api-get-vm-tags]: Got VM/CT tag from API.
<6> ProxLB: Info: [vm-statistics]: Added vm test09-fat02.
<6> ProxLB: Info: [api-get-vm-tags]: Got VM/CT tag from API.
<6> ProxLB: Info: [api-get-vm-include-exclude-tags]: Got PLB include group.
<6> ProxLB: Info: [api-get-vm-tags]: Got VM/CT tag from API.
<4> ProxLB: Warn: [vm-statistics]: Rebalancing on LXC containers (CT) always requires them to shut down.
<4> ProxLB: Warn: [vm-statistics]: gyp01 is from type CT and cannot be live migrated!
<6> ProxLB: Info: [api-get-vm-tags]: Got VM/CT tag from API.
<6> ProxLB: Info: [vm-statistics]: Created VM statistics.
<4> ProxLB: Warning: [node-update-statistics]: Node virt01 is overprovisioned for memory by 137%.
<4> ProxLB: Warning: [node-update-statistics]: Node virt03 is overprovisioned for memory by 103%.
<4> ProxLB: Warning: [node-update-statistics]: Node virt03 is overprovisioned for disk by 128%.
<6> ProxLB: Info: [node-update-statistics]: Updated node resource assignments by all VMs.
<6> ProxLB: Info: [balancing-method-validation]]: Valid balancing method: memory
<6> ProxLB: Info: [balancing-mode-validation]]: Valid balancing method: used
<6> ProxLB: Info: [balanciness-validation]: Rebalancing for memory is not needed. Highest usage: 66% | Lowest usage: 61%.
<6> ProxLB: Info: [rebalancing-calculator]: Balancing calculations done.
<6> ProxLB: Info: [rebalancing-executor]: No rebalancing needed.
<6> ProxLB: Info: [cli-output-generator-dry-run]: Starting dry-run to rebalance vms to their new nodes.
<6> ProxLB: Info: [cli-output-generator-dry-run]: No rebalancing needed.
<6> ProxLB: Info: [post-validations]: All post-validations succeeded.
<6> ProxLB: Info: [daemon]: Not running in daemon mode. Quitting.

Notes

Requested by: @wkleinhenz
Fixes: #40

@gyptazy gyptazy added the feature label Aug 4, 2024
@gyptazy gyptazy added this to the Release 1.1.0 milestone Aug 4, 2024
@gyptazy gyptazy self-assigned this Aug 4, 2024
@gyptazy gyptazy force-pushed the feature/40-option-run-only-on-master-node branch from e0ef147 to 26c73a2 Compare August 6, 2024 15:56
@gyptazy gyptazy force-pushed the feature/40-option-run-only-on-master-node branch from 26c73a2 to 3a2c16b Compare August 6, 2024 15:58
@gyptazy
Copy link
Owner Author

gyptazy commented Aug 6, 2024

Extended tests passed, pipeline for flake8 fixed.

merging....

@gyptazy gyptazy merged commit 8791007 into main Aug 6, 2024
1 check passed
@gyptazy gyptazy modified the milestones: Release 1.1.0, Release 1.0.2 Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Target Master Only
1 participant