OpenStack allows you to overcommit CPU and RAM and DISK on compute nodes. This allows you to increase the number of instances running on your cloud at the cost of reducing the performance of the instances.
Note:
7.x
The default allocation ratios are as follows.
cpu_allocation_ratio = 10
ram_allocation_ratio = 1.5
disk_allocation_ratio = 1
openstack allocation candidate list --os-placement-api-version 1.10 --resource VCPU=1 --resource MEMORY_MB=2048 --resource DISK_GB=20
+---+----------------------------------+--------------------------------------+----------------------------------------------+
| # | allocation | resource provider | inventory used/capacity |
+---+----------------------------------+--------------------------------------+----------------------------------------------+
| 1 | VCPU=1,MEMORY_MB=2048,DISK_GB=20 | ########-####-####-####-############ | VCPU=3/40,MEMORY_MB=1536/36862,DISK_GB=3/699 |
+---+----------------------------------+--------------------------------------+----------------------------------------------+
[root@vioadmin1-vioshim-6dbdb59f56-mq7lb /]# openstack resource provider list
+--------------------------------------+-------------------------------------------------+------------+
| uuid | name | generation |
+--------------------------------------+-------------------------------------------------+------------+
| ########-####-####-####-############ | domain-c20.########-####-####-####-############ | 6
+--------------------------------------+-------------------------------------------------+------------+
[root@vioadmin1-vioshim-6dbdb59f56-mq7lb /]# openstack resource provider inventory list ########-####-####-####-############
Password:
+----------------+------------------+----------+----------+-----------+----------+-------+
| resource_class | allocation_ratio | max_unit | reserved | step_size | min_unit | total |
+----------------+------------------+----------+----------+-----------+----------+-------+
| VCPU | 10.0 | 8 | 0 | 1 | 1 | 16 |
| MEMORY_MB | 1.5 | 20479 | 0 | 1 | 1 | 40958 |
| DISK_GB | 1.0 | 670 | 0 | 1 | 1 | 1199 |
+----------------+------------------+----------+----------+-----------+----------+-------+