OpenStack Xena CentOS 8流
我的任务是从16 vCPU增加到32 vCPU。我想多做点事,但不管用。
我有一个控制器和一个计算。计算输出:
[root@controller ~(keystone)]# openstack hypervisor stats show
+----------------------+-------+
| field | value |
+----------------------+-------+
| count | 1 |
| current_workload | 0 |
| disk_available_least | 62 |
| free_disk_gb | 69 |
| free_ram_mb | 31326 |
| local_gb | 69 |
| local_gb_used | 0 |
| memory_mb | 31838 |
| memory_mb_used | 512 |
| running_vms | 0 |
| vcpus | 16 |
| vcpus_used | 0 |
+----------------------+-------+默认情况下,在/etc/nova/nova.conf中计算:
# Virtual CPU to physical CPU allocation ratio. For more information, refer to
# the documentation. (floating point value)
# Minimum value: 0.0
#cpu_allocation_ratio=<None>我做了这个:cpu_allocation_ratio=2.0,然后是systemctl restart openstack-nova-compute。在那之后,我又做了一次openstack hypervisor stats show,并看到16个vCPU仍然可用。
/etc/nova/nova.conf还有一种选择:
#
# Initial virtual CPU to physical CPU allocation ratio. For more information,
# refer to the documentation. (floating point value)
# Minimum value: 0.0
#initial_cpu_allocation_ratio=16.0我试着设置initial_cpu_allocation_ratio=32.0,但这也没有帮助。
此外,我只发现了关于过度提交https://docs.openstack.org/arch-design/design-compute/design-compute-overcommit.html的此类文档,但没有说明如何正确配置它。
发布于 2023-01-27 09:42:15
检查分配比率:
openstack resource provider inventory list 4f35070b-df79-41d1-88e0-831e5f210497
+----------------+------------------+----------+----------+----------+-----------+--------+--------+
| resource_class | allocation_ratio | min_unit | max_unit | reserved | step_size | total | used |
+----------------+------------------+----------+----------+----------+-----------+--------+--------+
| VCPU | 2.08 | 1 | 112 | 0 | 1 | 112 | 222 |
| MEMORY_MB | 1.18 | 1 | 515164 | 8192 | 1 | 515164 | 395264 |
| DISK_GB | 0.98 | 1 | 7150 | 0 | 1 | 7150 | 2985 |
+----------------+------------------+----------+----------+----------+-----------+--------+--------+如果您需要得到计算值:
openstack allocation candidate list --resource MEMORY_MB=1 -f json -c "inventory used/capacity" -c "resource provider"
[
{
"resource provider": "4f35070b-df79-41d1-88e0-831e5f210497",
"inventory used/capacity": "VCPU=222/232,MEMORY_MB=395264/598226,DISK_GB=2985/7007"
}
]https://serverfault.com/questions/1121247
复制相似问题