1 Star 0 Fork 0

中国信息通信研究院云计算与大数据研究所大数据与区块链部 / databench-c

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
start.yml 1.62 KB
一键复制 编辑 原始数据 按行查看 历史
yangzod 提交于 2023-07-24 11:23 . init
---
#This is the entry file of this chaos injection tool. different chaos type & node combinations will be selected.
#All of the parameter setting needs to be done in group_vars/all file when performing the offical stability test organized by CAICT
#copyright @CAICT
#setting up experiment, copy and unarchive chaos injection tool to cluster to be tested
- hosts: test
remote_user: root
roles:
- role: experiment_setup
tags: "always"
#testing, localhost has been used as scheduler to send command to cluster to be tested, and inject different type of chaos to varies of node combination.
- hosts: localhost
tasks:
#inject random chaos
- name: executing test with random chaos
command: "ansible-playbook testgroup.yml --tags={{(chaos_combinations|shuffle)[0]}} --extra-vars '{\"i\":{{injected_node_number|int}} }' "
async: "{{period}}"
poll: "{{period}}"
with_sequence: start=1 end={{max_peak_number|int}} stride=1 format="peak No.%d chaos type:{{test_case}}, number of nodes injected:{{injected_node_number}}"
when: test_case == "random"
#inject specific chaos
- name: executing test with specific chaos
command: "ansible-playbook testgroup.yml --tags={{test_case}} --extra-vars '{\"i\":{{injected_node_number|int}} }' "
async: "{{period}}"
poll: "{{period}}"
with_sequence: start=1 end={{max_peak_number|int}} stride=1 format="peak No.%d chaos type:{{test_case}}, number of nodes injected:{{injected_node_number}}"
when: test_case != "random"
#cleaning the environment.
- hosts: test
remote_user: root
roles:
- role: cleaning
tags: "always"
1
https://gitee.com/caict-databench/databench-c.git
git@gitee.com:caict-databench/databench-c.git
caict-databench
databench-c
databench-c
master

搜索帮助