Add new role parameter NovaLibvirtMemStatsPeriodSeconds

Add role parameter NovaLibvirtMemStatsPeriodSeconds which allows to
set `libvirt/mem_stats_period_seconds` parameter value to
number of seconds to memory usage statistics period, where
zero or negative value mean to disable memory usage statistics.

Default value for the parameter is 10.
Also set the default value to 0 for Real-Time Compute roles.

Depends-On: https://review.opendev.org/#/c/671232/
Change-Id: I8e1a81bc69b4d266755ba3c2a4bf17f37d276fd7
(cherry picked from commit 66c4e23654)
This commit is contained in:
Rajesh Tailor 2019-06-06 12:20:23 +05:30
parent 2871ce0fa9
commit abf34de6c8
6 changed files with 22 additions and 0 deletions

View File

@ -292,6 +292,14 @@ parameters:
type: number type: number
tags: tags:
- role_specific - role_specific
NovaLibvirtMemStatsPeriodSeconds:
description: >
A number of seconds to memory usage statistics period, zero or negative
value mean to disable memory usage statistics.
default: 10
type: number
tags:
- role_specific
NeutronMechanismDrivers: NeutronMechanismDrivers:
default: 'ovn' default: 'ovn'
description: | description: |
@ -364,6 +372,7 @@ resources:
nfs_options: NovaNfsOptions nfs_options: NovaNfsOptions
nfs_vers: NovaNfsVersion nfs_vers: NovaNfsVersion
nova::compute::libvirt::num_pcie_ports: NovaLibvirtNumPciePorts nova::compute::libvirt::num_pcie_ports: NovaLibvirtNumPciePorts
nova::compute::libvirt::mem_stats_period_seconds: NovaLibvirtMemStatsPeriodSeconds
- values: {get_param: [RoleParameters]} - values: {get_param: [RoleParameters]}
- values: - values:
NovaVcpuPinSet: {get_param: NovaVcpuPinSet} NovaVcpuPinSet: {get_param: NovaVcpuPinSet}
@ -384,6 +393,7 @@ resources:
NovaNfsOptions: {get_param: NovaNfsOptions} NovaNfsOptions: {get_param: NovaNfsOptions}
NovaNfsVersion: {get_param: NovaNfsVersion} NovaNfsVersion: {get_param: NovaNfsVersion}
NovaLibvirtNumPciePorts: {get_param: NovaLibvirtNumPciePorts} NovaLibvirtNumPciePorts: {get_param: NovaLibvirtNumPciePorts}
NovaLibvirtMemStatsPeriodSeconds: {get_param: NovaLibvirtMemStatsPeriodSeconds}
conditions: conditions:
enable_instance_ha: {equals: [{get_param: EnableInstanceHA}, true]} enable_instance_ha: {equals: [{get_param: EnableInstanceHA}, true]}

View File

@ -0,0 +1,8 @@
---
features:
- |
Add parameter NovaLibvirtMemStatsPeriodSeconds, which allows to
set `libvirt/mem_stats_period_seconds` parameter value to number
of seconds to memory usage statistics period, zero or negative
value mean to disable memory usage statistics.
Default value for NovaLibvirtMemStatsPeriodSeconds is 10.

View File

@ -18,6 +18,7 @@
TunedProfileName: "realtime-virtual-host" TunedProfileName: "realtime-virtual-host"
NovaLibvirtRxQueueSize: 1024 NovaLibvirtRxQueueSize: 1024
NovaLibvirtTxQueueSize: 1024 NovaLibvirtTxQueueSize: 1024
NovaLibvirtMemStatsPeriodSeconds: 0
update_serial: 25 update_serial: 25
ServicesDefault: ServicesDefault:
- OS::TripleO::Services::Aide - OS::TripleO::Services::Aide

View File

@ -15,6 +15,7 @@
TunedProfileName: "realtime-virtual-host" TunedProfileName: "realtime-virtual-host"
NovaLibvirtRxQueueSize: 1024 NovaLibvirtRxQueueSize: 1024
NovaLibvirtTxQueueSize: 1024 NovaLibvirtTxQueueSize: 1024
NovaLibvirtMemStatsPeriodSeconds: 0
update_serial: 25 update_serial: 25
ServicesDefault: ServicesDefault:
- OS::TripleO::Services::Aide - OS::TripleO::Services::Aide

View File

@ -22,6 +22,7 @@
KernelArgs: "" # these must be set in an environment file or similar KernelArgs: "" # these must be set in an environment file or similar
IsolCpusList: "" # according to the hardware of real-time nodes IsolCpusList: "" # according to the hardware of real-time nodes
NovaVcpuPinSet: "" # NovaVcpuPinSet: "" #
NovaLibvirtMemStatsPeriodSeconds: 0
update_serial: 25 update_serial: 25
ServicesDefault: ServicesDefault:
- OS::TripleO::Services::Aide - OS::TripleO::Services::Aide

View File

@ -15,6 +15,7 @@
ImageDefault: overcloud-realtime-compute ImageDefault: overcloud-realtime-compute
RoleParametersDefault: RoleParametersDefault:
TunedProfileName: "realtime-virtual-host" TunedProfileName: "realtime-virtual-host"
NovaLibvirtMemStatsPeriodSeconds: 0
update_serial: 25 update_serial: 25
ServicesDefault: ServicesDefault:
- OS::TripleO::Services::Aide - OS::TripleO::Services::Aide