Add more tunables for cpu hog scenario

This commit exposes the flags to tweak the number of cores and node
count to hog during the node-cpu-hog scenario.
This commit is contained in:
Naga Ravi Chaitanya Elluri
2021-07-28 17:07:40 -04:00
parent 716057eab6
commit c56a8a5356
3 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ kraken:
- scenarios/time_scenarios_example.yml
- litmus_scenarios: # List of litmus scenarios to load
- - https://hub.litmuschaos.io/api/chaos/1.10.0?file=charts/generic/node-cpu-hog/rbac.yaml
- scenarios/node_hog_engine.yaml
- scenarios/node_cpu_hog_engine.yaml
- cluster_shut_down_scenarios:
- - scenarios/cluster_shut_down_scenario.yml
- scenarios/post_action_shut_down.py
+1 -1
View File
@@ -18,7 +18,7 @@ kraken:
- scenarios/time_scenarios_example.yml
- litmus_scenarios: # List of litmus scenarios to load
- - https://hub.litmuschaos.io/api/chaos/1.10.0?file=charts/generic/node-cpu-hog/rbac.yaml
- scenarios/node_hog_engine.yaml
- scenarios/node_cpu_hog_engine.yaml
- cluster_shut_down_scenarios:
- - scenarios/cluster_shut_down_scenario.yml
- scenarios/post_action_shut_down.py
@@ -20,6 +20,15 @@ spec:
# set chaos duration (in sec) as desired
- name: TOTAL_CHAOS_DURATION
value: '60'
# Number of cores of node CPU to be consumed
- name: NODE_CPU_CORE
value: ''
# percentage of total nodes to target
- name: NODES_AFFECTED_PERC
value: ''
# ENTER THE COMMA SEPARATED TARGET NODES NAME
- name: TARGET_NODES
value: ''