Open Tradeforlife opened 9 months ago
NOTE : I just commented out
self.master_node = rr.json()['data']['manager_status']['master_node']
any it seems to be running, not sure if this is required anywhere else.
This is required if the script is installed on all nodes. In this case, only 1 should decide how to balance. And thus the HA master is selected. If you have 1 instance, this mechanism is not needed at all.
Without HA, there is no master node in the cluster.
I uncommented the line and enabled HA and now it's working as expected, thanks.
As of 1/03/2024 Proxmox hosts fully patched using a ubuntu 23.x LXC within a python env and the current build of Proxmox-load-balancer of 1/03/2024. when I run the program after updating the config file with correct info I get.
I edit the plb.py to show the output of the rr.json() within the cluster_hosts(self) function and it showed the below output. there is no master_node key. I'm not sure if it's not required anymore of I have something changed in my cluster.. either way it's not working.
Cluster Information