Add sipp trafficgen based SampleVNFTrafficGen
[yardstick.git] / samples / serviceha.yaml
1 ##############################################################################
2 # Copyright (c) 2017 Huawei Technologies Co.,Ltd and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 ---
10 # Sample test case for ha
11
12 schema: "yardstick:task:0.1"
13
14 scenarios:
15 -
16   type: ServiceHA
17   options:
18     attackers:
19     - fault_type: "kill-process"
20       process_name: "nova-api"
21       host: node1
22
23     monitors:
24     - monitor_type: "openstack-cmd"
25       command_name: "nova image-list"
26       monitor_time: 10
27       sla:
28         max_outage_time: 5
29     - monitor_type: "process"
30       process_name: "nova-api"
31       host: node1
32       monitor_time: 10
33       sla:
34         max_recover_time: 5
35
36   nodes:
37     node1: node1.LF
38
39   runner:
40     type: Duration
41     duration: 1
42   sla:
43     outage_time: 5
44     action: monitor
45
46
47 context:
48   type: Node
49   name: LF
50   file: /root/yardstick/etc/yardstick/nodes/fuel_virtual/pod.yaml