可以使用 viocli update nova 命令更新 Nova 服務組態中的特定參數。
如需有關 Nova 組態的詳細資訊,請參閱 OpenStack Nova 組態說明文件。
如需有關 Nova 服務組態範例的詳細資訊,請參閱 OpenStack Nova 組態檔。
使用
viocli update nova 的組態選項範例。
conf:
nova:
DEFAULT:
force_config_drive: false
rpc_response_timeout: 6000
executor_thread_pool_size: 64
conductor:
workers: 2
vmware:
network_passthrough: false
tenant_vdc: false
filter_scheduler:
max_instance_per_host: 50
max_io_ops_per_host: 8
available_filters: nova.scheduler.filters.all_filters
enabled_filters: AvailabilityZoneFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,
ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter,PciPassthroughFilter,AggregateInstanceExtraSpecsFilter
pci:
alias: [{"device_type": "type-VF", "name": "sriov"}, {"vendor_id":"8086", "product_id":"1520",
"device_type": "type-PF", "name":"fpt"}]
passthrough_whitelist: [{"vendor_id": "*", "product_id": "*"}]
cinder:
cross_az_attach: true
scheduler:
max_attempts: 3
database:
max_pool_size: 50
| 參數 | 預設值 | 說明 |
|---|---|---|
| force_config_drive |
false |
輸入 |
| rpc_response_timeout |
60 |
輸入等待呼叫回應的值 (以秒為單位)。 |
| executor_thread_pool_size |
64 |
輸入執行程式執行緒集區的大小,使執行程式完成執行緒或 eventlet。 |
| workers |
none |
輸入 OpenStack Conductor 服務的工作數目。 |
| max_instances_per_host |
50 |
輸入主機上可以存在的執行個體數目上限。 |
| max_io_ops_per_host |
8 |
輸入可以在主機上主動執行輸入和輸出作業的執行個體數目上限。 |
| available_filters |
nova.scheduler.filters.all_filters |
輸入排程器可以使用的篩選器。 |
| enabled_filters |
輸入排程器必須使用的篩選器。
Supported filters: AvailabilityZoneFilter, ComputeFilter,, ImagePropertiesFilter,, ServerGroupAffinityFilter PciPassthroughFilter, AggregateInstanceExtraSpecsFilter, AggregateMultiTenancyIsolation |
|
| alias |
'' |
輸入符合 PCI 傳遞裝置需求的 alias。 |
| passthrough_whitelist |
'' |
輸入可供虛擬機器使用之周邊元件互連裝置的白名單。 |
| cross_az_attach |
true |
輸入不同可用性區域中執行個體和磁碟區之間的連結。如果此值為 |
| max_attempt |
3 |
輸入所選主機的排程嘗試次數上限。 |
| max_pool_size |
none |
輸入要在集區中保持開啟的最大 SQL 連線數目。值 |