Skip to content

Commit

Permalink
Merge pull request #480 from joseph-v/delfin-dynamic-process-option
Browse files Browse the repository at this point in the history
Add option to enable delfin dynamic process optimization
  • Loading branch information
anvithks authored Oct 1, 2021
2 parents 53205f4 + 979658f commit b71576f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ansible/group_vars/delfin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions ansible/roles/delfin-installer/scenarios/source-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b71576f

Please sign in to comment.