Understanding and troubleshooting performance bottlenecks in containers
Now, let us practice what we have learned in this chapter and troubleshoot container performance bottlenecks. Let’s get started.
Workspace
In this section, we will use the same Cloud9 workspace we created in the Set up a Cloud9 development workspace section. It already contains all the necessary tools.
Build the environments
In the Cloud9 workspace, to ensure the service-linked roles exist for load balancers and ECS, run the following commands:
aws iam get-role --role-name "AWSServiceRoleForElasticLoadBalancing" || aws iam create-service-linked-role --aws-service-name "elasticloadbalancing.amazonaws.com" aws iam get-role --role-name "AWSServiceRoleForECS" || aws iam create-service-linked-role --aws-service-name "ecs.amazonaws.com"
Please download the script that will set up a sample application in our AWS environment with the following command:
...