How do I benchmark and scale an application in an AWS Elastic Beanstalk environment?

2 minute read
1

I want to benchmark and scale an application that’s hosted on AWS Elastic Beanstalk for optimal performance, scalability, and continual availability.

Resolution

AWS Elastic Beanstalk provisions resources such as Auto Scaling groups, load balancers, and Amazon Elastic Compute Cloud (Amazon EC2) instances. When you benchmark your applications, they remain continually available.

To optimally benchmark and scale your Elastic Beanstalk environment, update the scaling triggers metric of your auto scaling configuration based on your application's behavior. The following are the most common metrics for benchmarking and scaling your application:

  • NetworkOut- This is the default metric. Use this metric to scale your application based on the traffic flow from an instance.
  • CPUUtilization- Use this metric to scale your application based on its sensitivity to an instance's CPU utilization.
  • RequestCount- This metric tracks the number of client requests that hit the application. Use this metric to scale your application based on its sensitivity to the number of requests.
  • TargetResponseTime- This metric tracks your application's response time. Use this metric to scale your application based on its sensitivity to response time.

For more information on how to update your scaling triggers, see Configuring Auto Scaling triggers.

To evaluate performance, use a load test tool to configure and simulate a load test.

Important:

AWS OFFICIAL
AWS OFFICIALUpdated 3 months ago