Customers can utilize fault injection with Amazon ECS on both Amazon EC2 and Fargate to test how their application responds to certain impairment scenarios. These tests provide information you can use to optimize your application's performance and resiliency.
When fault injection is enabled, the Amazon ECS container agent allows tasks access to new fault injection endpoints. You need to opt-in in order to use fault injection by setting the enableFaultInjection
task definition parameter value to true
. The default value is false
.
{
...
"enableFaultInjection": true
}
Note
Fault injection only works with tasks using the awsvpc
or host
network modes.
Fault injection isn't available on Windows.
For information on how to enable fault injection in the AWS Management Console, see Creating an Amazon ECS task definition using the console.
You'll need to enable the feature for testing in the AWS Fault Injection Service. For more information, see Use the AWS FIS aws:ecs:task actions.
NoteIf you don't use thenew Amazon ECS optimized AMIs, or have a custom AMI, install the following dependencies:
tc
sch_netem
kernel module
Task scale-in protection endpoint
Amazon ECS fault injection endpoints
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4