diff --git a/deployment/nova/nova-compute-container-puppet.yaml b/deployment/nova/nova-compute-container-puppet.yaml index 6713759096..a48e41cc3c 100644 --- a/deployment/nova/nova-compute-container-puppet.yaml +++ b/deployment/nova/nova-compute-container-puppet.yaml @@ -294,6 +294,14 @@ parameters: type: number tags: - 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 resources: @@ -356,6 +364,7 @@ resources: nfs_options: NovaNfsOptions nfs_vers: NovaNfsVersion nova::compute::libvirt::num_pcie_ports: NovaLibvirtNumPciePorts + nova::compute::libvirt::mem_stats_period_seconds: NovaLibvirtMemStatsPeriodSeconds - values: {get_param: [RoleParameters]} - values: NovaVcpuPinSet: {get_param: NovaVcpuPinSet} @@ -376,6 +385,7 @@ resources: NovaNfsOptions: {get_param: NovaNfsOptions} NovaNfsVersion: {get_param: NovaNfsVersion} NovaLibvirtNumPciePorts: {get_param: NovaLibvirtNumPciePorts} + NovaLibvirtMemStatsPeriodSeconds: {get_param: NovaLibvirtMemStatsPeriodSeconds} conditions: enable_instance_ha: {equals: [{get_param: EnableInstanceHA}, true]} diff --git a/releasenotes/notes/nova_libvirt_mem_stats_period_seconds-b9b606232629cb38.yaml b/releasenotes/notes/nova_libvirt_mem_stats_period_seconds-b9b606232629cb38.yaml new file mode 100644 index 0000000000..90c4f0f164 --- /dev/null +++ b/releasenotes/notes/nova_libvirt_mem_stats_period_seconds-b9b606232629cb38.yaml @@ -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. diff --git a/roles/ComputeOvsDpdkRT.yaml b/roles/ComputeOvsDpdkRT.yaml index 7ae703e43d..8becbf45c6 100644 --- a/roles/ComputeOvsDpdkRT.yaml +++ b/roles/ComputeOvsDpdkRT.yaml @@ -18,6 +18,7 @@ TunedProfileName: "realtime-virtual-host" NovaLibvirtRxQueueSize: 1024 NovaLibvirtTxQueueSize: 1024 + NovaLibvirtMemStatsPeriodSeconds: 0 update_serial: 25 ServicesDefault: - OS::TripleO::Services::Aide diff --git a/roles/ComputeOvsDpdkSriovRT.yaml b/roles/ComputeOvsDpdkSriovRT.yaml index e865eaaacc..d72fa81590 100644 --- a/roles/ComputeOvsDpdkSriovRT.yaml +++ b/roles/ComputeOvsDpdkSriovRT.yaml @@ -15,6 +15,7 @@ TunedProfileName: "realtime-virtual-host" NovaLibvirtRxQueueSize: 1024 NovaLibvirtTxQueueSize: 1024 + NovaLibvirtMemStatsPeriodSeconds: 0 update_serial: 25 ServicesDefault: - OS::TripleO::Services::Aide diff --git a/roles/ComputeRealTime.yaml b/roles/ComputeRealTime.yaml index 78ff0e9420..0931990c3e 100644 --- a/roles/ComputeRealTime.yaml +++ b/roles/ComputeRealTime.yaml @@ -22,6 +22,7 @@ KernelArgs: "" # these must be set in an environment file or similar IsolCpusList: "" # according to the hardware of real-time nodes NovaVcpuPinSet: "" # + NovaLibvirtMemStatsPeriodSeconds: 0 update_serial: 25 ServicesDefault: - OS::TripleO::Services::Aide diff --git a/roles/ComputeSriovRT.yaml b/roles/ComputeSriovRT.yaml index f22ceeb8a4..7cc773b870 100644 --- a/roles/ComputeSriovRT.yaml +++ b/roles/ComputeSriovRT.yaml @@ -15,6 +15,7 @@ ImageDefault: overcloud-realtime-compute RoleParametersDefault: TunedProfileName: "realtime-virtual-host" + NovaLibvirtMemStatsPeriodSeconds: 0 update_serial: 25 ServicesDefault: - OS::TripleO::Services::Aide