Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README.md Fix links in readme Aug 31, 2016
azuredeploy.json [Auto] adding file 201-vmss-bottle-autoscale/azuredeploy.json Mar 26, 2018
installserver.sh Fix service start command Sep 11, 2017
metadata.json added schema propety to metadata.json Jun 14, 2018
workserver.py Fix script locations Aug 30, 2016


Autoscale demo app on Ubuntu 16.04

Simple self-contained Ubuntu 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%.

  • 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.