From 0982884e13555928157d3f5dbe16d98141f76fbe Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 3 May 2024 19:22:02 +0900 Subject: [PATCH] Adjust default polling interval The default polling interval was updated from 600 to 300 in ceilometer itself[1] but the default value in the polling class wasn't updated. This updates the default value in our module so that we use the value consistent with what is maintained in ceilometer repo. [1] fc086ba3b38683765eabcdb45613463d85cb38fa Change-Id: I7bcbbebf093228b0885b2647d86e47e2b673e518 --- manifests/agent/polling.pp | 4 ++-- .../update-default-polling_interval-7a956d2399cac9fa.yaml | 5 +++++ spec/classes/ceilometer_agent_polling_spec.rb | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 releasenotes/notes/update-default-polling_interval-7a956d2399cac9fa.yaml diff --git a/manifests/agent/polling.pp b/manifests/agent/polling.pp index 3bf8bd57..d19a531d 100644 --- a/manifests/agent/polling.pp +++ b/manifests/agent/polling.pp @@ -61,7 +61,7 @@ # # [*polling_interval*] # (Optional) Number of seconds between polling cycle -# Defaults to 600 seconds, used only if manage_polling is true. +# Defaults to 300 seconds, used only if manage_polling is true. # # [*polling_meters*] # (Optional) Array of strings with meters to add to @@ -94,7 +94,7 @@ class ceilometer::agent::polling ( $resource_update_interval = $facts['os_service_default'], $resource_cache_expiry = $facts['os_service_default'], Boolean $manage_polling = false, - $polling_interval = 600, + $polling_interval = 300, Array[String[1]] $polling_meters = $::ceilometer::params::polling_meters, Optional[Hash]$polling_config = undef, $batch_size = $facts['os_service_default'], diff --git a/releasenotes/notes/update-default-polling_interval-7a956d2399cac9fa.yaml b/releasenotes/notes/update-default-polling_interval-7a956d2399cac9fa.yaml new file mode 100644 index 00000000..57d78a0a --- /dev/null +++ b/releasenotes/notes/update-default-polling_interval-7a956d2399cac9fa.yaml @@ -0,0 +1,5 @@ +--- +upgrade: + - | + Default value of ``ceilometer::agent::polling::polling_interval`` has been + updated from 600 to 300. diff --git a/spec/classes/ceilometer_agent_polling_spec.rb b/spec/classes/ceilometer_agent_polling_spec.rb index e6383f7a..40c9c995 100644 --- a/spec/classes/ceilometer_agent_polling_spec.rb +++ b/spec/classes/ceilometer_agent_polling_spec.rb @@ -197,7 +197,7 @@ describe 'ceilometer::agent::polling' do :content => '--- sources: - name: some_pollsters - interval: 600 + interval: 300 meters: - cpu - cpu_l3_cache