|
7 | 7 | * Support for Latency injection using ```delay``` |
8 | 8 | * Support for Exception injection using ```exception_msg``` |
9 | 9 | * Support for HTTP Error status code injection using ```error_code``` |
| 10 | +* Support for disk space failure injection using ```file_size``` |
10 | 11 | * Using for SSM Parameter Store to control the experiment using ```isEnabled``` |
11 | 12 | * Per Lambda function injection control using Environment variable (```FAILURE_INJECTION_PARAM```) (thanks to Gunnar Grosch) |
12 | 13 | * Support for Serverless Framework using ```sls deploy``` (thanks to Gunnar Grosch) |
|
19 | 20 | "isEnabled": true, |
20 | 21 | "error_code": 404, |
21 | 22 | "exception_msg": "I FAILED", |
| 23 | + "file_size": 100, |
22 | 24 | "rate": 0.5 |
23 | 25 | } |
24 | 26 | ``` |
25 | 27 | Deploy the chaos config in paramater store. |
26 | 28 | * run the following command: |
27 | 29 | ``` |
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 }" |
29 | 31 | ``` |
30 | 32 | |
31 | 33 | ### Building and deploying |
@@ -82,5 +84,14 @@ Deploy the chaos config in paramater store. |
82 | 84 | @corrupt_statuscode |
83 | 85 | ``` |
84 | 86 |
|
| 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 | + |
85 | 96 |
|
86 | 97 | ## Happy breaking! |
0 commit comments