From 979658fd3a6a7a528a72a1e9dde7c67fb0c08b7c Mon Sep 17 00:00:00 2001 From: Joseph Vazhappilly Date: Fri, 1 Oct 2021 13:07:23 +0530 Subject: [PATCH] Add option to enable delfin dynamic process optimization --- ansible/group_vars/delfin.yml | 3 +++ .../roles/delfin-installer/scenarios/source-code.yml | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/ansible/group_vars/delfin.yml b/ansible/group_vars/delfin.yml index 1e60916b..a56396e1 100644 --- a/ansible/group_vars/delfin.yml +++ b/ansible/group_vars/delfin.yml @@ -42,6 +42,9 @@ delfin_rabbitmq_pass: delfinpass # Configurable Perf collection interval in seconds performance_collection_interval: 900 +# Enable dynamic subprocess optimization for Perf collection +enable_dynamic_subprocess: false + # Exporter configurations for Kafka, Prometheus & Alert Manager # Uncomment exporters to enable performance_exporters: #PerformanceExporterPrometheus, PerformanceExporterKafka diff --git a/ansible/roles/delfin-installer/scenarios/source-code.yml b/ansible/roles/delfin-installer/scenarios/source-code.yml index 326e77d3..fd3da00d 100644 --- a/ansible/roles/delfin-installer/scenarios/source-code.yml +++ b/ansible/roles/delfin-installer/scenarios/source-code.yml @@ -76,6 +76,16 @@ value: "{{ performance_collection_interval }}" become: yes +# Telemetry option for enabling dynamic processes +- name: Enable dynamic sub-processes for performance collection + ini_file: + create: no + path: "{{ delfin_work_dir }}/etc/delfin/delfin.conf" + section: TELEMETRY + option: enable_dynamic_subprocess + value: "{{ enable_dynamic_subprocess }}" + become: yes + # Performance Export Configurations - name: Check and remove performance exporters configs ini_file: