An elastic application that can automatically scale out and in on-demand and cost-effectively by using the AWS cloud using SQS, EC2 and S3.
- Mahathi Amencherla
- Siddhant Sorann
- Vidushi Raturi
TODO - Add pem key and AWS creds and specify location here
- S3 Buckets
- Input - input-bucket-images-cc
- Output - output-bucket-images-cc
- SQS Queues
- RequestQueue - https://sqs.us-east-1.amazonaws.com/246156685396/RequestQueue
- ResponseQueue - https://sqs.us-east-1.amazonaws.com/246156685396/ResponseQueue
- Web Tier
- URL - TODO
- EIP - TODO
- Create a key.env file to store the AWS access keys
AWS_KEY=EXAMPLE
AWS_SECRET=EXAMPLE
- Navigate to web-tier-server folder
$ cd web-tier-server
- Run this command to download all dependencies
$ npm install
- Run the code
$ node web-tier-server.js
- Start a new terminal and navigate to app-tier folder
$ cd app-tier
$ python3 queue-listener.py
- Start a new terminal and navigate to workload-generator folder, run the code
$ cd CSE546_Sum22_workload_generator/
$ python3 workload_generator.py \
--num_request 1 \ // number of images to be sent
--url 'http://localhost:3001/api/image' \ // change ip to instance
--image_folder "imagenet-100/"