您的位置:首页 > 运维架构

OpenStack物理资源虚拟化比率设置

2016-09-14 10:28 351 查看
默认配置文件路径/etc/nova/nova.conf

1. CPU虚拟化比率

1.1 配置参数描述与默认配置

# Virtual CPU to physical CPU allocation ratio which affects all CPU filters.
# This configuration specifies a global ratio for CoreFilter. For
# AggregateCoreFilter, it will fall back to this configuration value if no per-
# aggregate setting found. NOTE: This can be set per-compute, or if set to 0.0,
# the value set on the scheduler node(s) will be used and defaulted to 16.0
# (floating point value)
#cpu_allocation_ratio=0.0


1.2 参数配置

根据实际负载需求修改为合适的值,例如修改为

cpu_allocation_ratio=5.0


2. 内存虚拟化比率

2.1 配置参数描述与默认配置

# Virtual ram to physical ram allocation ratio which affects all ram filters.
# This configuration specifies a global ratio for RamFilter. For
# AggregateRamFilter, it will fall back to this configuration value if no per-
# aggregate setting found. NOTE: This can be set per-compute, or if set to 0.0,
# the value set on the scheduler node(s) will be used and defaulted to 1.5
# (floating point value)
#ram_allocation_ratio=0.0


2.2 参数配置

根据实际负载需求修改为合适的值,例如修改为

ram_allocation_ratio=1.0


3. 磁盘虚拟化比率

3.1 配置参数描述与默认配置

# This is the virtual disk to physical disk allocation ratio used by the
# disk_filter.py script to determine if a host has sufficient disk space to fit
# a requested instance. A ratio greater than 1.0 will result in over-
# subscription of the available physical disk, which can be useful for more
# efficiently packing instances created with images that do not use the entire
# virtual disk,such as sparse or compressed images. It can be set to a value
# between 0.0 and 1.0 in order to preserve a percentage of the disk for uses
# other than instances.NOTE: This can be set per-compute, or if set to 0.0, the
# value set on the scheduler node(s) will be used and defaulted to 1.0
# (floating point value)
#disk_allocation_ratio=0.0


3.2 参数配置

根据实际负载需求修改为合适的值,例如修改为

disk_allocation_ratio=1.0
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  openstack 虚拟化