Giter VIP home page Giter VIP logo

autoscaling's Introduction

Autoscaling

Container as a Service using Azure VM Scale Sets and Docker Swarm (mode)

A solution which scales both at the container and the IaaS levels for providing true compute elasticity, on-demand. Ideal for deploying workloads with variable footprint. Comes with an example monitoring stack.

  • Realized using Azure VM Scale Sets
  • Linux Diagnostics extension used for getting the guest VM metrics used for triggering scaling in/out based on CPU and Memory use.
  • CPU bound tested with stress tool encapsulated as a docker image
  • Azure deployment jsons created with acs-engine chosing DockerCE (Swarm Mode) orchestrator.
  • Grafana dashboard json in /grafana directory.
  • Docker experimental mode enabled before installing monitoring stack.
  • All scripts in /scripts directory.
    • cputest (cputest.sh) is itself deployed as a swarm mode service in the global mode.
    • clean_swarm.sh utility for cleaning up "Down" nodes from swarm master after cluster scales in.
    • Additional container allocation visualization tool can be deployed using setup_visualizer.sh script. This needs to be run on the master on the "local" docker daemon bound to the docker0 eth interface.
    • deploy_monitoring.sh for deploying the monitoring stack consisting of the following components:

Architecture diagram is as follows:

Sample dashboard looks like following when cputest is running, demonstrating scaling out of the smarm mode cluster automatically and scaling in when cputest is stopped:

Deploy and Visualize

Deploy to Azure

MSFT OSCC

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments. All credit goes to contributors of the individual components used in this project, where applicable.

autoscaling's People

Contributors

kbhattmsft avatar

Watchers

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