aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/benchmark/scenarios/availability/attacker_conf.yaml
blob: aa144ab50e2127cd8ef4666e7d63638f2a8b4f3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
##############################################################################
# Copyright (c) 2017 Huawei Technologies Co.,Ltd and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
---
# sample config file for ha test
#
schema: "yardstick:task:0.1"

kill-process:
  check_script: ha_tools/check_process_python.bash
  inject_script: ha_tools/fault_process_kill.bash
  recovery_script: ha_tools/start_service.bash

kill-lxc-process:
  check_script: ha_tools/check_lxc_process_python.bash
  inject_script: ha_tools/fault_lxc_process_kill.bash
  recovery_script: ha_tools/start_lxc_service.bash

bare-metal-down:
  check_script: ha_tools/check_host_ping.bash
  recovery_script: ha_tools/ipmi_power.bash

stop-service:
  inject_script: ha_tools/stop_service.bash
  recovery_script: ha_tools/start_service.bash

close-interface:
 inject_script: ha_tools/network/close_interface.bash
 recovery_script: ha_tools/network/open_interface.bash

stress-cpu:
 inject_script: ha_tools/node/stress_cpu.bash
 recovery_script: ha_tools/node/release_cpu.bash

block-io:
  inject_script: ha_tools/disk/block_io.bash
  recovery_script: ha_tools/disk/recovery_disk_io.bash