可以使用 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 |
輸入資料庫與 Hypervisor 之間同步電源狀態的間隔。 |
| 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 |
輸入預設 vNIC 模型。 |
|
| gpu_profile |
輸入 GPU 傳遞裝置的設定檔。 |
|
| profile_fb_size_kb |
輸入 GPU 設定檔框架緩衝區大小 (以 KB 為單位)。 |