From 9c2e0b81d5143c421cb1c36437841cd556ad410e Mon Sep 17 00:00:00 2001 From: Doug Szumski Date: Tue, 25 Sep 2018 11:03:16 +0000 Subject: [PATCH] Support configuring Monasca Persister performance On a single node deployment, the Monasca persister can limit the rate at which Monasca can persist metrics to InfluxDB. Increasing the thread count can remove this bottle neck. Partially-Implements: blueprint monasca-roles Change-Id: I763a5ae6aa8c8ab3bf766ab5b58c386da74a188b --- ansible/roles/monasca/defaults/main.yml | 1 + .../roles/monasca/templates/monasca-persister/persister.conf.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ansible/roles/monasca/defaults/main.yml b/ansible/roles/monasca/defaults/main.yml index a95acc25a3..8e80bdb5ea 100644 --- a/ansible/roles/monasca/defaults/main.yml +++ b/ansible/roles/monasca/defaults/main.yml @@ -123,6 +123,7 @@ monasca_periodic_notifications_period: 60 # the total number of threads across all instances of a service does not # exceed the Kafka topic partition count. monasca_log_pipeline_threads: 2 +monasca_metric_pipeline_threads: 2 #################### # Docker diff --git a/ansible/roles/monasca/templates/monasca-persister/persister.conf.j2 b/ansible/roles/monasca/templates/monasca-persister/persister.conf.j2 index 2610c5b49f..ac0681a4dd 100644 --- a/ansible/roles/monasca/templates/monasca-persister/persister.conf.j2 +++ b/ansible/roles/monasca/templates/monasca-persister/persister.conf.j2 @@ -17,7 +17,7 @@ num_processors = 1 [kafka_metrics] uri = {{ monasca_kafka_servers }} topic = {{ monasca_metrics_topic }} -num_processors = 1 +num_processors = {{ monasca_metric_pipeline_threads }} [zookeeper] uri = {{ monasca_zookeeper_servers }}