stress.yml 805 Bytes
Newer Older
1
2
3
---

- name: Set templated stress configuration
Ross McDonald's avatar
Ross McDonald committed
4
  template:
5
    src: stress/stress_nightly_round_robin_autoprovision.toml
6
    dest: "{{ influxdb_configuration_dir }}/stress.toml"
Ross McDonald's avatar
Ross McDonald committed
7
    force: yes
8
9
10
  when: influxdb_run_stress

- name: Run stress tool
11
  command: influx_stress -config {{ influxdb_configuration_dir }}/stress.toml {% if influxdb_stress_metric_endpoint != None %}-addr "{{ influxdb_stress_metric_endpoint }}" {% endif %}{% if influxdb_stress_metric_database != None %}-database "{{ influxdb_stress_metric_database }}" {% endif %}{% if influxdb_stress_metric_tags != None %}-tags "{{ influxdb_stress_metric_tags }}" {% endif %}
12
13
14
  register: influx_stress_run
  when: influxdb_run_stress

15
- name: Display stress results output
16
17
  debug:
    var: influx_stress_run.stdout
18
  when: influxdb_run_stress