vinfra service compute stat

Display compute cluster statistics:

usage: vinfra service compute stat

Example:

# vinfra service compute stat
+----------+----------------------------------------------+
| Field    | Value                                        |
+----------+----------------------------------------------+
| compute  | block_capacity: 1073741824                   |
|          | block_usage: 268435456                       |
|          | cpu_allocation_ratio: 8                      |
|          | cpu_usage: 0.09                              |
|          | mem_total: 536870912                         |
|          | mem_usage: 176398336                         |
|          | vcpus: 1                                     |
|          | vcpus_free: 47                               |
| datetime | 2020-05-01T16:16:08.120482                   |
| fenced   | compute_mem_total: 0                         |
|          | physical_cpu_cores: 0                        |
|          | physical_cpu_usage: 0                        |
|          | physical_mem_total: 0                        |
|          | reserved_memory: 0                           |
|          | vcpus: 0                                     |
| physical | block_capacity: 1099511627776                |
|          | block_free: 1099213661363                    |
|          | cpu_cores: 12                                |
|          | cpu_usage: 8.31                              |
|          | mem_total: 49967353856                       |
|          | vcpus_total: 96                              |
| reserved | cpus: 6                                      |
|          | memory: 26135298048                          |
|          | vcpus: 48                                    |
| servers  | count: 1                                     |
|          | error: 0                                     |
|          | in_progress: 0                               |
|          | running: 1                                   |
|          | stopped: 0                                   |
|          | top:                                         |
|          |   disk:                                      |
|          |   - id: 32b0f95d-477f-46b5-86d6-e150360ea673 |
|          |     name: vm1                                |
|          |     size: 268435456                          |
|          |   memory:                                    |
|          |   - id: 32b0f95d-477f-46b5-86d6-e150360ea673 |
|          |     name: vm1                                |
|          |     size: 176398336                          |
|          |   vcpus:                                     |
|          |   - count: 0.01                              |
|          |     id: 32b0f95d-477f-46b5-86d6-e150360ea673 |
|          |     name: vm1                                |
+----------+----------------------------------------------+

This command shows the overview of the compute cluster.