Giter Site home page Giter Site logo

linkerd-scaler's Introduction

Linkerd Scaler

About

Linkerd Scaler collects metrics from the Kubernetes metrics server and Linkerd proxy prometheus metrics server. An HPA style scaling algorithm can be used to scale pods.

Usage

Start by running:

./start.sh

Keep this script running for as long as you want the cluster alive, ^C to exit.

With the cluster running, in another terminal, kubectl and other commands can be executed on the cluster.

Outputs of the watcher are found in metrics/, these persist but are deleted on each new watcher start.

Run settings are found at the top of watcher/src/main.py. To configure Kubernetes HPA either comment out or run the nodevoto-hpa.yaml line in start.sh. Kubernetes HPA and the ACTIVE setting in main.py should not both be enabled.

To restart Linkerd Scaler without restarting the cluster run:

./start-watcher.sh

While Linkerd Scaler is running, follow its logs using:

./follow-logs.sh

To watch pod counts for Nodevoto as well as the bots, run:

./watch-pods.sh

To get stats on a run use:

python watcher/src/calc_responsiveness.py some/path/to/a/run.json

Samples

See the runs folder

Nodevoto

Nodevoto can be found here. Nodevoto is used as a test application for Linkerd Scaler to effect. Web, Voting, and Gif are placed in the nodevoto namespace. VoteBots are used as traffic generators and placed in the nodevoto-bot namespace.

linkerd-scaler's People

Contributors

ltrinks avatar

Watchers

 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.