How does the PVE API work if API node is down?

aradabir007

New Member
Nov 8, 2023
12
1
3
Hi,

I'm trying to build a 5-node cluster (which will be expanded in the future) and a Python wrapper for PVE API to create/delete VMs/CTs.

From my understanding, I need to send the API request to one of my HVs/nodes in the cluster.

But what if that specific HV is down? How can I make this fail-safe so the request can go to any HV if another one is down?
 
But what if that specific HV is down? How can I make this fail-safe so the request can go to any HV if another one is down?
There are different approches to this problem:
  • load balacing proxy that does the keep-alive stuff
  • iterate yourself through the nodes
  • round robin dns entry and try again after connect error