Skip to content

mahathiamencherla/CSE546-IaaS-Proj1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSE546-IaaS-Project-1

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.

Project Members

  • Mahathi Amencherla
  • Siddhant Sorann
  • Vidushi Raturi

TODO - Add pem key and AWS creds and specify location here

AWS Resources

Run locally

  1. Create a key.env file to store the AWS access keys
AWS_KEY=EXAMPLE
AWS_SECRET=EXAMPLE
  1. Navigate to web-tier-server folder
$ cd web-tier-server
  1. Run this command to download all dependencies
$ npm install
  1. Run the code
$ node web-tier-server.js
  1. Start a new terminal and navigate to app-tier folder
$ cd app-tier
$ python3 queue-listener.py
  1. 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/"   

About

Handling scaling in EC2 based on SQS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published