Skip to content

Commit

Permalink
added BLOCK_SIZE variable for dd failover
Browse files Browse the repository at this point in the history
Signed-off-by: Tullio Sebastiani <[email protected]>
  • Loading branch information
tsebastiani authored and chaitanyaenr committed Oct 28, 2024
1 parent c0d823c commit b3942c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pvc-scenarios.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ POD_NAME | Targeted pod in the cluster (if null, PVC_NAME is requ
NAMESPACE | Targeted namespace in the cluster (required) | |
FILL_PERCENTAGE | Targeted percentage to be filled up in the PVC | 50 |
DURATION | Duration in seconds with the PVC filled up | 60 |

BLOCK_SIZE | Block size (used by dd if fallocate not available in the container) | 102400
**NOTE** Set NAMESPACE environment variable to `openshift-.*` to pick and disrupt pods randomly in openshift system namespaces, the DAEMON_MODE can also be enabled to disrupt the pods every x seconds in the background to check the reliability.
1 change: 1 addition & 0 deletions pvc-scenario/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ export FILL_PERCENTAGE=${FILL_PERCENTAGE:="50"}
export DURATION=${DURATION:="60"}
export SCENARIO_TYPE=${SCENARIO_TYPE:=pvc_scenarios}
export SCENARIO_FILE=${SCENARIO_FILE:=scenarios/pvc_scenario.yaml}
export BLOCK_SIZE=${BLOCK_SIZE:="102400"}

1 change: 1 addition & 0 deletions pvc-scenario/pvc_scenario.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ pvc_scenario:
namespace: $NAMESPACE # Namespace where the PVC is
fill_percentage: $FILL_PERCENTAGE # Target percentage to fill up the cluster, value must be higher than current percentage, valid values are between 0 and 99
duration: $DURATION # Duration in seconds for the fault
block_size: $BLOCK_SIZE # used only by dd if fallocate not present in the container

0 comments on commit b3942c7

Please sign in to comment.