how to identify least utilized node via API?

luphi

Renowned Member
Nov 9, 2015
82
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!