aboutsummaryrefslogtreecommitdiffstats
path: root/build/f_repos/patch/fuel-library/0001-Reduce-ceilometer-memory-usage.patch
blob: a1ee0364fa17f1af04a94f784921ff1427e6f4c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From 3c0a101279ef225c6d14b13a5424d0d190df1079 Mon Sep 17 00:00:00 2001
From: Michael Polenchuk <mpolenchuk@mirantis.com>
Date: Mon, 19 Dec 2016 16:03:37 +0400
Subject: [PATCH] Reduce ceilometer memory usage

Change-Id: I11045c233eeb833108ffdee4a8952cd61b91c840
---
 .../puppet/openstack_tasks/manifests/ceilometer/controller.pp      | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/deployment/puppet/openstack_tasks/manifests/ceilometer/controller.pp b/deployment/puppet/openstack_tasks/manifests/ceilometer/controller.pp
index f531b617d..7f811f276 100644
--- a/deployment/puppet/openstack_tasks/manifests/ceilometer/controller.pp
+++ b/deployment/puppet/openstack_tasks/manifests/ceilometer/controller.pp
@@ -243,5 +243,12 @@ class openstack_tasks::ceilometer::controller {
         'DEFAULT/use_syslog_rfc_format': value => true;
       }
     }
+
+    # Reduce memory usage
+    ceilometer_config {
+      'DEFAULT/executor_thread_pool_size':               value => ceiling($service_workers*0.5);
+      'notification/pipeline_processing_queues':         value => ceiling($service_workers*1.5);
+      'oslo_messaging_rabbit/rabbit_qos_prefetch_count': value => 100;
+    }
   }
 }
-- 
2.11.0