Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 08ae723

Browse files
Updated readme with corrupt_diskspace
1 parent 76714cf commit 08ae723

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

‎README.md‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* Support for Latency injection using ```delay```
88
* Support for Exception injection using ```exception_msg```
99
* Support for HTTP Error status code injection using ```error_code```
10+
* Support for disk space failure injection using ```file_size```
1011
* Using for SSM Parameter Store to control the experiment using ```isEnabled```
1112
* Per Lambda function injection control using Environment variable (```FAILURE_INJECTION_PARAM```) (thanks to Gunnar Grosch)
1213
* Support for Serverless Framework using ```sls deploy``` (thanks to Gunnar Grosch)
@@ -19,13 +20,14 @@
1920
"isEnabled": true,
2021
"error_code": 404,
2122
"exception_msg": "I FAILED",
23+
"file_size": 100,
2224
"rate": 0.5
2325
}
2426
```
2527
Deploy the chaos config in paramater store.
2628
* run the following command:
2729
```
28-
$ aws ssm put-parameter --region eu-north-1 --name chaoslambda.config --type String --overwrite --value "{ \"delay\": 400, \"isEnabled\": true, \"error_code\": 404, \"exception_msg\": \"I really failed seriously\" }"
30+
$ aws ssm put-parameter --region eu-north-1 --name chaoslambda.config --type String --overwrite --value "{ \"delay\": 400, \"isEnabled\": true, \"error_code\": 404, \"exception_msg\": \"I really failed seriously\", \"file_size\": 100, \"rate\": 1 }"
2931
```
3032
3133
### Building and deploying
@@ -82,5 +84,14 @@ Deploy the chaos config in paramater store.
8284
@corrupt_statuscode
8385
```
8486

87+
* For disk space failure injection, use
88+
```python
89+
@corrupt_diskspace
90+
```
91+
Note that disabling the disk space failure experiment will not cleanup /tmp for you. One way of doing this is by updating the configuration (timeout value or env vars) of you Lambda function so that a new instance is deployd:
92+
```
93+
aws lambda update-function-configuration --function-name YOUR_FUNCTION_NAME --timeout 6
94+
```
95+
8596

8697
## Happy breaking!

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /