Merge "Defining fs.aio-max-nr for hosts with libvirt service" into stable/train
This commit is contained in:
commit
10e6ce2108
|
@ -102,9 +102,26 @@ parameters:
|
|||
type: json
|
||||
tags:
|
||||
- role_specific
|
||||
FsAioMaxNumber:
|
||||
default: 0
|
||||
description: >
|
||||
The kernel allocates aio memory on demand, and this number limits the
|
||||
number of parallel aio requests; the only drawback of a larger limit is
|
||||
that a malicious guest could issue parallel requests to cause the kernel
|
||||
to set aside memory. Set this number at least as large as
|
||||
128 * (number of virtual disks on the host)
|
||||
Libvirt uses a default of 1M requests to allow 8k disks, with at most
|
||||
64M of kernel memory if all disks hit an aio request at the same time.
|
||||
type: number
|
||||
tags:
|
||||
- role_specific
|
||||
|
||||
conditions:
|
||||
ipv6_disabled: {equals: [{get_param: KernelDisableIPv6}, 1]}
|
||||
fs_aio_max_number_set:
|
||||
and:
|
||||
- not: {equals: [{get_param: [RoleParameters, FsAioMaxNumber]}, 0]}
|
||||
- not: {equals: [{get_param: [RoleParameters, FsAioMaxNumber]}, '']}
|
||||
|
||||
resources:
|
||||
# Merging role-specific parameters (RoleParameters) with the default parameters.
|
||||
|
@ -173,4 +190,9 @@ outputs:
|
|||
value: {get_param: BridgeNfCallIp6Tables}
|
||||
fs.inotify.max_user_instances:
|
||||
value: {get_param: InotifyIntancesMax}
|
||||
- if:
|
||||
- fs_aio_max_number_set
|
||||
- fs.aio-max-nr:
|
||||
value: {get_param: [RoleParameters, FsAioMaxNumber]}
|
||||
- {}
|
||||
- {get_attr: [RoleParametersValue, value, extra_sysctl_settings]}
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
fixes:
|
||||
- |
|
||||
When we install libvirt on a host, the system parameter ``fs.aio-max-nr`` is
|
||||
to 1048576. Since we containerized libvirtd, we lost this system parameter.
|
||||
We now make sure it's defined by adding it from the nova-libvirt-common
|
||||
template.
|
|
@ -17,6 +17,7 @@
|
|||
subnet: storage_subnet
|
||||
HostnameFormatDefault: '%stackname%-novacompute-%index%'
|
||||
RoleParametersDefault:
|
||||
FsAioMaxNumber: 1048576
|
||||
TunedProfileName: "virtual-host"
|
||||
# Deprecated & backward-compatible values (FIXME: Make parameters consistent)
|
||||
# Set uses_deprecated_params to True if any deprecated params are used.
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
subnet: storage_subnet
|
||||
HostnameFormatDefault: '%stackname%-novacomputealt-%index%'
|
||||
RoleParametersDefault:
|
||||
FsAioMaxNumber: 1048576
|
||||
TunedProfileName: "virtual-host"
|
||||
update_serial: 25
|
||||
ServicesDefault:
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
subnet: storage_subnet
|
||||
HostnameFormatDefault: '%stackname%-novacompute-dvr-%index%'
|
||||
RoleParametersDefault:
|
||||
FsAioMaxNumber: 1048576
|
||||
TunedProfileName: "virtual-host"
|
||||
update_serial: 25
|
||||
ServicesDefault:
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
StorageMgmt:
|
||||
subnet: storage_mgmt_subnet
|
||||
RoleParametersDefault:
|
||||
FsAioMaxNumber: 1048576
|
||||
TunedProfileName: "throughput-performance"
|
||||
# CephOSD present so serial has to be 1
|
||||
update_serial: 1
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
# CephOSD present so serial has to be 1
|
||||
update_serial: 1
|
||||
RoleParametersDefault:
|
||||
FsAioMaxNumber: 1048576
|
||||
TunedProfileName: "cpu-partitioning"
|
||||
VhostuserSocketGroup: "hugetlbfs"
|
||||
NovaLibvirtRxQueueSize: 1024
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
subnet: storage_subnet
|
||||
HostnameFormatDefault: '%stackname%-novacomputeiha-%index%'
|
||||
RoleParametersDefault:
|
||||
FsAioMaxNumber: 1048576
|
||||
TunedProfileName: "virtual-host"
|
||||
update_serial: 25
|
||||
ServicesDefault:
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
update_serial: 25
|
||||
HostnameFormatDefault: '%stackname%-novacompute-local-%index%'
|
||||
RoleParametersDefault:
|
||||
FsAioMaxNumber: 1048576
|
||||
TunedProfileName: "virtual-host"
|
||||
NovaEnableRbdBackend: false
|
||||
ServicesDefault:
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
subnet: storage_subnet
|
||||
deprecated_nic_config_name: 'compute-dpdk.yaml'
|
||||
RoleParametersDefault:
|
||||
FsAioMaxNumber: 1048576
|
||||
VhostuserSocketGroup: "hugetlbfs"
|
||||
TunedProfileName: "cpu-partitioning"
|
||||
NovaLibvirtRxQueueSize: 1024
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
subnet: storage_subnet
|
||||
ImageDefault: overcloud-realtime-compute
|
||||
RoleParametersDefault:
|
||||
FsAioMaxNumber: 1048576
|
||||
VhostuserSocketGroup: "hugetlbfs"
|
||||
TunedProfileName: "realtime-virtual-host"
|
||||
NovaLibvirtRxQueueSize: 1024
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
- Tenant
|
||||
- Storage
|
||||
RoleParametersDefault:
|
||||
FsAioMaxNumber: 1048576
|
||||
VhostuserSocketGroup: "hugetlbfs"
|
||||
TunedProfileName: "cpu-partitioning"
|
||||
NovaLibvirtRxQueueSize: 1024
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
- Storage
|
||||
ImageDefault: overcloud-realtime-compute
|
||||
RoleParametersDefault:
|
||||
FsAioMaxNumber: 1048576
|
||||
VhostuserSocketGroup: "hugetlbfs"
|
||||
TunedProfileName: "realtime-virtual-host"
|
||||
NovaLibvirtRxQueueSize: 1024
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
HostnameFormatDefault: '%stackname%-novacomputeppc64le-%index%'
|
||||
ImageDefault: ppc64le-overcloud-full
|
||||
RoleParametersDefault:
|
||||
FsAioMaxNumber: 1048576
|
||||
TunedProfileName: "virtual-host"
|
||||
update_serial: 25
|
||||
ServicesDefault:
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
update_serial: 25
|
||||
HostnameFormatDefault: '%stackname%-novacompute-rbd-%index%'
|
||||
RoleParametersDefault:
|
||||
FsAioMaxNumber: 1048576
|
||||
TunedProfileName: "virtual-host"
|
||||
NovaEnableRbdBackend: true
|
||||
ServicesDefault:
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
HostnameFormatDefault: '%stackname%-computerealtime-%index%'
|
||||
ImageDefault: overcloud-realtime-compute
|
||||
RoleParametersDefault:
|
||||
FsAioMaxNumber: 1048576
|
||||
TunedProfileName: "realtime-virtual-host"
|
||||
KernelArgs: "" # these must be set in an environment file or
|
||||
IsolCpusList: "" # similar according to the hardware of
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
Storage:
|
||||
subnet: storage_subnet
|
||||
RoleParametersDefault:
|
||||
FsAioMaxNumber: 1048576
|
||||
TunedProfileName: "cpu-partitioning"
|
||||
update_serial: 25
|
||||
ServicesDefault:
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
Storage:
|
||||
subnet: storage_subnet
|
||||
RoleParametersDefault:
|
||||
FsAioMaxNumber: 1048576
|
||||
TunedProfileName: "cpu-partitioning"
|
||||
update_serial: 25
|
||||
ServicesDefault:
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
subnet: storage_subnet
|
||||
ImageDefault: overcloud-realtime-compute
|
||||
RoleParametersDefault:
|
||||
FsAioMaxNumber: 1048576
|
||||
TunedProfileName: "realtime-virtual-host"
|
||||
NovaLibvirtMemStatsPeriodSeconds: 0
|
||||
NovaComputeDisableIrqBalance: True
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
Storage:
|
||||
subnet: storage_subnet
|
||||
RoleParametersDefault:
|
||||
FsAioMaxNumber: 1048576
|
||||
TunedProfileName: "virtual-host"
|
||||
update_serial: 25
|
||||
ServicesDefault:
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
StorageMgmt:
|
||||
subnet: storage_mgmt_subnet
|
||||
RoleParametersDefault:
|
||||
FsAioMaxNumber: 1048576
|
||||
TunedProfileName: "throughput-performance"
|
||||
# CephOSD present so serial has to be 1
|
||||
update_serial: 1
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
StorageDashboard:
|
||||
subnet: storage_dashboard_subnet
|
||||
RoleParametersDefault:
|
||||
FsAioMaxNumber: 1048576
|
||||
TunedProfileName: "throughput-performance"
|
||||
# CephOSD present so serial has to be 1
|
||||
update_serial: 1
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
StorageMgmt:
|
||||
subnet: storage_mgmt_subnet
|
||||
RoleParametersDefault:
|
||||
FsAioMaxNumber: 1048576
|
||||
TunedProfileName: "throughput-performance"
|
||||
# CephOSD present so serial has to be 1
|
||||
update_serial: 1
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
Storage:
|
||||
subnet: storage_subnet
|
||||
RoleParametersDefault:
|
||||
FsAioMaxNumber: 1048576
|
||||
TunedProfileName: "virtual-host"
|
||||
update_serial: 25
|
||||
ServicesDefault:
|
||||
|
|
|
@ -213,6 +213,7 @@
|
|||
subnet: storage_subnet
|
||||
HostnameFormatDefault: '%stackname%-novacompute-%index%'
|
||||
RoleParametersDefault:
|
||||
FsAioMaxNumber: 1048576
|
||||
TunedProfileName: "virtual-host"
|
||||
# Deprecated & backward-compatible values (FIXME: Make parameters consistent)
|
||||
# Set uses_deprecated_params to True if any deprecated params are used.
|
||||
|
|
Loading…
Reference in New Issue