nova-scheduler
1、主要原因可能是or的配置有错误placement-api
,但是我们使用默认的配置,我搞不清楚。
2,我发现默认内存会被1.5的比例过度使用,这样就有机会将实例分派给具有负值的管理程序free_ram_mb
。
从此文件nova-stable-train/doc/source/admin/configuration/schedulers.rst检查:
Prior to the 19.0.0 Stein release, if left unset, the ``cpu_allocation_ratio``
defaults to 16.0, the ``ram_allocation_ratio`` defaults to 1.5, and the
``disk_allocation_ratio`` defaults to 1.0.
Starting with the 19.0.0 Stein release, the following configuration options
control the initial allocation ratio values for a compute node:
* :oslo.config:option:`initial_cpu_allocation_ratio`: the initial VCPU
inventory allocation ratio for a new compute node record, defaults to 16.0
* :oslo.config:option:`initial_ram_allocation_ratio`: the initial MEMORY_MB
inventory allocation ratio for a new compute node record, defaults to 1.5
* :oslo.config:option:`initial_disk_allocation_ratio`: the initial DISK_GB
inventory allocation ratio for a new compute node record, defaults to 1.0
该文件中还有一些常见Usage scenarios
的用于调整比率。
在我的场景中,我们设置reserved_host_memory_mb = 102400
并ram_allocation_ratio = 1.0
防止内存过度使用并且它可以工作。