Giter Site home page Giter Site logo

keda-demo's Introduction

keda-demo

Demo showing scaling with Keda in OpenShift

This is a demo which deploys AMQ-Broker and OpenShift Custom Metrics Autoscaler based on KEDA

It establishes a broker with 2 queues q1 & q2 and scales a deployment. In this case the deployment is not related to the queue we are merely showing how keda behaves scaling a workload. The deployment used is pacman but this can be adjusted as required.

Once setup you can send a message to either queue via the Fuse broker console and the scaling will kick in.

To set up the demo

  1. Install the AMQ Broker Operator

  2. oc new-project keda-demo

  3. Install the custom metrics Operator in the keda-demo project

  4. Install the broker and queues

    oc project keda-demo

    oc apply -f https://raw.githubusercontent.com/bfarr-rh/keda-demo/master/yaml/amq-broker.yaml

  5. Create the application

    oc new-app https://github.com/redhat-gpte-devopsautomation/pacman-1

  6. Expose the application as a route and test Pacman runs

  7. Create the Scaler Object

    oc apply -f https://raw.githubusercontent.com/bfarr-rh/keda-demo/master/yaml/keda.yaml

  8. Navigate to the Fuse console (find the route) and login with admin/admin and use it to send and delete messages from either queue and watch the pods dynamically scale.

keda-demo's People

Contributors

bfarr-rh avatar

Watchers

 avatar

Forkers

nu3p

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.