how to identify least utilized node via API?

luphi

Renowned Member
Nov 9, 2015
83
5
73
Hey guys,

for the next VM deployment I want to identify the least utilized node in a cluster via API.
Sorry, but couldn't find it by myself.

Cheers,
luphi
 
Hi,

you must find it yourself.
only the node stats are availible.
Code:
pvesh get nodes/<nodename>/status --output-format json-pretty
 
I want to identify the least utilized node in a cluster via API.

With respect to what?
- physical memory utilization
- load
- storage utilization
- io wait time
- theoretical maximum usage based on VM running on each node (with respect to cpu, memory and storage requirements)
- to-be-backupped VMs
- number of HA VMs