Skip to content

Commit

Permalink
Merge pull request sodafoundation#394 from PravinRanjan10/master
Browse files Browse the repository at this point in the history
Adding Performance installtion to ansible
  • Loading branch information
skdwriting authored Sep 29, 2020
2 parents e89abe8 + ea2ed9b commit 0db0be9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ansible/roles/cleaner/scenarios/delfin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

---
- name: Get running delfin processes
shell: "ps -ef | grep -v grep | grep -i 'python3 /opt/delfin-linux-amd64/delfin/cmd/' | awk '{print $2}'"
shell: "ps -ef | grep -v grep | grep -i 'python3 /opt/delfin-linux-amd64/delfin/' | awk '{print $2}'"
register: running_processes

- name: Kill running delfin processes
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 @@ -73,6 +73,16 @@
- delfin.conf
- api-paste.ini


- name: copy scheduler configs to host
copy:
src: "{{ delfin_work_dir }}/etc/{{ item }}"
dest: "{{ delfin_config_dir }}/{{ item }}"
mode: 0755
become: yes
with_items:
- scheduler_config.json

- name: Update redis ip & port configuration
ini_file:
create: no
Expand Down
1 change: 1 addition & 0 deletions ansible/roles/delfin-installer/scenarios/start-delfin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@
- '{{ venv }}/exec {{ delfin_work_dir }}/delfin/cmd/api.py --config-file {{ delfin_config_dir }}/delfin.conf >/tmp/api.log 2>&1 &'
- '{{ venv }}/exec {{ delfin_work_dir }}/delfin/cmd/task.py --config-file {{ delfin_config_dir }}/delfin.conf >/tmp/task.log 2>&1 &'
- '{{ venv }}/exec {{ delfin_work_dir }}/delfin/cmd/alert.py --config-file {{ delfin_config_dir }}/delfin.conf >/tmp/alert.log 2>&1 &'
- '{{ venv }}/exec {{ delfin_work_dir }}/delfin/exporter/exporter_server.py --config-file {{ delfin_config_dir }}/delfin.conf >/tmp/exporter.log 2>&1 &'
args:
chdir: "{{ delfin_work_dir }}"

0 comments on commit 0db0be9

Please sign in to comment.