Add provisioned memory to node info
Adds a separate field to the node memory, "provisioned", which totals the amount of memory provisioned to all VMs on the node, regardless of state, and in contrast to "allocated" which only counts running VMs. Allows for the detection of potential overprovisioned states when factoring in non-running VMs. Includes the supporting code to get this data, since the original implementation of VM memory selection was dependent on the VM being running and getting this from libvirt. Now, if the VM is not active, it gets this from the domain XML instead.
This commit is contained in:
@ -427,13 +427,17 @@
|
||||
"memory": {
|
||||
"properties": {
|
||||
"allocated": {
|
||||
"description": "The total amount of RAM allocated to domains in MB",
|
||||
"description": "The total amount of RAM allocated to running domains in MB",
|
||||
"type": "integer"
|
||||
},
|
||||
"free": {
|
||||
"description": "The total free RAM on the node in MB",
|
||||
"type": "integer"
|
||||
},
|
||||
"provisioned": {
|
||||
"description": "The total amount of RAM provisioned to all domains (regardless of state) on this node in MB",
|
||||
"type": "integer"
|
||||
},
|
||||
"total": {
|
||||
"description": "The total amount of node RAM in MB",
|
||||
"type": "integer"
|
||||
|
Reference in New Issue
Block a user