Giter VIP home page Giter VIP logo

ignite2019vmss-hol's Introduction

Autoscale demo app on RHEL 7.7 with cloud-init

This demo app was modifed from the Azure Quickstart templates

The original demo app was the Autoscale demo app on Ubuntu 16.04, located here.

Deploy with:

az group create --name <resource gorup name> --location <location>
az group deployment create -g <resource group name> -n <deployment name> --template-file azuredeploy.json --parameters @azuredeploy.parameters.json

Description

Simple self-contained RHEL autoscale example which includes a Python Bottle server to do work. The VM Scale Set scales up when average CPU across all VMs > 60%, scales down when avg CPU < 30%.

This app provisions a VM scale set using the latest RHEL 7.7 cloud-init enabled image using ARM, and deploys a simple web application to it. You can use the web application to increase the load on your VM scale set instances, which will in turn cause the scale set to automatically scale out more instances.

  • Deploy the scale set with an instance count of 1
  • After it is deployed look at the resource group public IP address resource (in portal or resources explorer). Get the IP or domain name.
  • Browse to the website of vm#0 (port 9000), which shows the current backend VM name.
  • To start doing work on the first VM browse to dns:9000/do_work
  • After a few minutes the VM Scale Set capacity will increase. Note that the first scale out takes longer than subsequent ones whlie the autoscale pipeline gets initialized (i.e. wait up to half an hour before you concluding there's a problem).
  • You can stop doing work by browsing to dns:9000/stop_work.
  • To SSH into a VMSS instance, run ssh dns -p 50000

ignite2019vmss-hol's People

Contributors

asinn826 avatar prernanagori09 avatar

Watchers

James Cloos 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.