From 6c5b96c19202d3830b0a066a65198a7a909e7fe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=A1gr?= Date: Mon, 14 May 2018 11:20:45 +0200 Subject: [PATCH] Enable default polling interval override By default collectd polling interval is set to 10 seconds for all plugins, which is bringing down the entire cloud if the default Gnocchi deployment (Swift on controllers) is used. We have to override the default higher value. Closes-Bug: #1771083 Change-Id: I210c72028da35068ed8469b2d2deb75797a2b08f --- puppet/services/metrics/collectd.yaml | 9 +++++++++ .../notes/collectd-polling-4aac123faaebd1bc.yaml | 6 ++++++ 2 files changed, 15 insertions(+) create mode 100644 releasenotes/notes/collectd-polling-4aac123faaebd1bc.yaml diff --git a/puppet/services/metrics/collectd.yaml b/puppet/services/metrics/collectd.yaml index 3b1d97d866..ad6bf40e58 100644 --- a/puppet/services/metrics/collectd.yaml +++ b/puppet/services/metrics/collectd.yaml @@ -37,6 +37,14 @@ parameters: type: string description: Keystone region for endpoint default: 'regionOne' + CollectdDefaultPollingInterval: + default: 120 + type: number + description: > + Controls how often registered read functions are called and with that + the resolution of the collected data. This value can be overriden per + plugin(per role) by setting "::collectd::plugin::::interval" + key in ExtraConfig(ExtraConfig). CollectdDefaultPlugins: default: - disk @@ -217,6 +225,7 @@ outputs: collectd::minimum_version: "5.7" collectd::plugin::unixsock::socketgroup: root collectd::plugin::unixsock::socketfile: /var/run/collectd-socket + collectd::interval: {get_param: CollectdDefaultPollingInterval} tripleo.collectd.plugins.collectd: yaql: data: diff --git a/releasenotes/notes/collectd-polling-4aac123faaebd1bc.yaml b/releasenotes/notes/collectd-polling-4aac123faaebd1bc.yaml new file mode 100644 index 0000000000..415a9d62fa --- /dev/null +++ b/releasenotes/notes/collectd-polling-4aac123faaebd1bc.yaml @@ -0,0 +1,6 @@ +--- +features: + - | + Adds possibility to override default polling interval for collectd and set + default value to 120 seconds, because current default (10s) + was too aggressive.