Skip to content

A demo of creating an AWS EC2 cluster using Elastic Beanstalk and a load balancer. Included load test report with a request rate of 190-200 requests per second. The application successfully handled the load without errors and is expected to handle a website with up to 1.6 million visitors per day.

Notifications You must be signed in to change notification settings

AmirL/aws-ec2-scale-demo

Repository files navigation

AWS EC2 Cluster Demo

Description

This is a demo of how to create a cluster of EC2 instances under a load balancer using AWS Elastic Beanstalk. The cluster is created using a single configuration file, beanstalk.yml, which is a YAML file that describes the cluster configuration. The configuration file is used by the eb command line tool to create the cluster.

Load Tests Results

The following are the results of the load tests performed on the cluster. The load tests were performed using Locust, a load testing tool written in Python.

It uses one of the smallest EC2 instances, t2.micro, to run the load tests. The load tests were performed with 2000 concurrent users. Each user was making a request in 5-15 seconds interval, to a product page, with data loaded from DynamoDB. There wasn't any cache used in the application. The application was able to handle the load without any errors.

  • Request Per Seconds: 190-200
  • Failure Rate: 0%
  • Concurrent Users: 2000

With RPS 190-200, the application expected to handle a website with up to 1.6 million visitors per day. (Assuming 10 requests per visitor per day)

RPS Response Time Users

Interactive charts and full report

Deployment

  • eb create --sample ec2-scale-demo
  • eb deploy
  • eb open

Cleanup

  • eb terminate ec2-scale-demo

About

A demo of creating an AWS EC2 cluster using Elastic Beanstalk and a load balancer. Included load test report with a request rate of 190-200 requests per second. The application successfully handled the load without errors and is expected to handle a website with up to 1.6 million visitors per day.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages