可以使用 viocli update nova-compute 命令更新 Nova 计算服务配置中的某些参数。
conf:
nova_compute:
DEFAULT:
debug: true
default_schedule_zone: nova1
host: compute-7e8d8b50-c8
cpu_allocation_ratio: 16
ram_allocation_ratio: 1.5
disk_allocation_ratio: 0.0
max_concurrent_builds: 20
always_resize_on_same_host: False
sync_power_state_interval: 600
sync_power_state_action: dbsync
use_hypervisor_stats: true
update_resources_interval: 0
# Options of the interval (in second) to schedule the cache image cleanup worker thread
image_cache_manager_interval: 2400
# Options of the expiration (in second) for unused image cache to be deleted
remove_unused_original_minimum_age_seconds: 86400
vmware:
host_ip: .VCenter:vcenter1:spec.hostname
host_password: .VCenter:vcenter1:spec.password
host_username: .VCenter:vcenter1:spec.username
insecure: .VCenter:vcenter1:spec.insecure
cluster_name: domain-c8
datastore_regex: sharedVmfs\-1|sharedVmfs\-0
network_passthrough: false
tenant_vdc: false
pbm_enabled: true
pbm_default_policy: <policy_name>
set_asset_tag: <value>
import_vm_enabled: true
import_vm_relocate: true
datastore_selection_policy: max_free_space
import_net_id: None
datastore_cluster: dsc
shared_datastore_regex: sharedVmfs\-1|sharedVmfs\-0
dvs_moid:
# compute01: dvs-35
# compute02: dvs-36
default_vif_model: vmxnet3
gpu_profile: grid_p100-4a
profile_fb_size_kb: 4096
| 参数 | 默认值 | 说明 |
|---|---|---|
| debug |
false |
输入 |
| default_schedule_zone |
none |
输入实例的默认可用区。 |
| host |
<current_hostname> |
输入此主机的主机名、FQDN 或 IP 地址。 |
| cpu_allocation_ratio |
none |
输入虚拟 CPU 与物理 CPU 的分配比率。 |
| ram_allocation_ratio |
none |
输入虚拟 RAM 与物理 RAM 的分配比率。 |
| disk_allocation_ratio |
none |
输入虚拟磁盘与物理磁盘的分配比率。 |
| max_concurrent_builds |
10 |
输入 |
| always_resize_on_same_host |
输入强制目标节点以与要调整大小的源匹配。 |
|
| sync_power_state_interval |
600 |
输入数据库与管理程序之间同步电源状态时间间隔。 |
| sync_power_state_action |
当数据库实例状态与实例的实际状态不一致时要执行的操作。 |
|
| use_hypervisor_stats |
此选项指定是使用 vCenter 统计信息还是依赖 Nova 资源跟踪。 |
|
| update_resources_interval |
0 |
此选项指定 |
| image_cache_manager_interval |
2400 |
此选项指定调度缓存映像清理工作线程的时间间隔(以秒为单位)。 |
| remove_unused_original_minimum_age_seconds |
86400 |
此选项指定未使用的映像缓存过期多久后(以秒表示)删除。 |
| host_ip |
none |
输入用于连接到 VMware vCenter 主机的主机名或 IP 地址。 |
| host_password |
none |
输入用于连接到 VMware vCenter 主机的密码。 |
| host_username |
none |
输入用于连接到 VMware vCenter 主机的用户名 |
| insecure |
false |
验证 HTTPS 连接。 |
| cluster_name |
none |
输入 VMware 集群 ComputeResource 的名称。 |
| datastore_regex |
none |
输入正则表达式设置,该设置指定了要用于计算的数据存储。 |
| network_passthrough |
启用或禁用网络直通功能的标记。 |
|
| tenant_vdc |
启用或禁用租户 vDC 的标记。 |
|
| pbm_enabled |
false |
此选项可启用或禁用基于存储策略的实例放置。 |
| pbm_default_policy |
none |
此选项指定使用的默认策略。 |
| use_linked_clone |
true |
输入链接克隆。 |
| set_asset_tag |
此选项可提供修复缺陷的解决办法。 |
|
| import_vm_enabled |
启用或禁用 import vm 的标记。 |
|
| import_vm_relocate |
此选项可以重新组织导入的虚拟机,以遵循默认命名约定和文件夹放置(根据 VMware 驱动程序)。 |
|
| datastore_selection_policy |
max_connected_hosts |
输入 Nova 数据存储选择策略。 |
| import_net_id |
输入启用虚拟机以插入到正确的 Neutron 端口所需的 NSXT 交换机 UUID。 |
|
| datastore_cluster |
输入数据存储集群的名称或 moid。 |
|
| shared_datastore_regex |
输入正则表达式以获取 CD-ROM 的共享数据存储。 |
|
| default_vif_model |
输入默认虚拟网卡模型。 |
|
| gpu_profile |
输入 GPU 直通设备的配置文件。 |
|
| profile_fb_size_kb |
输入 GPU 配置文件帧缓冲区大小(以千字节为单位)。 |