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: