Git Product home page Git Product logo

zfq308 / simplisticspringbootec2autoscalingloadbalancingrdsclidemo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chtz/simplisticspringbootec2autoscalingloadbalancingrdsclidemo

0.0 2.0 0.0 14 KB

Deploy Springboot-based Demo Java-App to AWS (AutoScaling, Elastic Load Balancer, RDS) via AWS CLI script and demonstrate "reactive scaling" via CloudWatch Alarms.

License: Apache License 2.0

Shell 71.79% Java 28.21%

simplisticspringbootec2autoscalingloadbalancingrdsclidemo's Introduction

CAS Cloud 2015

Simplistic Springboot EC2-Autoscaling-Loadbalancing-RDS-CLI-Demo

Deploy Springboot-based Demo Java-App to AWS (AutoScaling, Elastic Load Balancer, RDS) via AWS CLI script and demonstrate "reactive scaling" via CloudWatch Alarms.

Demonstrates what can be done, not that it shall be done this way...

Instructions

  1. Understand every single line in ec2/launch_aws_env.sh
  2. Adjust ec2/launch_aws_env.sh (e.g. choose unique S3 bucket name, ...)
  3. Ensure all dependencies are installed & configured (AWS CLI, AWS access- & secret key, AWS region, jq, ...)
  4. mvn clean install
  5. . ./ec2/launch_aws_env.sh
  6. Wait for script completion (and browse the Amazon Web Services Console in meanwhile: RDS, EC2, S3, CloudWatch, ...)
  7. Check for errors. There should be none. Otherwise, "cleanup the mess" (delete all $/h AWS resources)
  8. Expect answers from 2 web servers (try multiple times): curl http://$LB_DNS
  9. curl http://$LB_DNS?cmd=sleep&time=1000
  10. Generate some load (a few HTTP GETs every now and then). Wait for up-scaling
  11. Expect answers from 3 web servers (try multiple times): curl http://$LB_DNS
  12. curl http://$LB_DNS?cmd=sleep&time=50
  13. Generate some load (a few HTTP GETs every now and then). Wait for 2x down-scaling
  14. Expect answers from 1 web server (try multiple times): curl http://$LB_DNS
  15. Cleanup the mess manually in the AWS Console: delete AWS RDS, AutoScaling Group, Load Balancer, SGs, Keys, S3, Bucket, etc (delete all $/h AWS resources)

Troubleshooting

Works on my homebrew-powered OSX machine. Ask Google ;-) or browse the AWS docs...

simplisticspringbootec2autoscalingloadbalancingrdsclidemo's People

Contributors

chtz avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.