Coder Social home page Coder Social logo

tma-planning's Introduction

This repository is DEPRECATED! The development continues in the ATMOSPHERE project

TMA Planning

This project aims to:

  • Consume the items from a topic queue;
  • Check if the scores from the queue are in the proper threshold;
  • Add a action item to a queue when an adaption is needed.

Prerequisites

This component requires the software available in tma-utils.

Installation

This is a simple module to validate the score of the metrics from Kubernetes.

To build the jar, you should run the following command on the worker node:

sh build.sh

The planning will consume the items from the topic topic-planning, and it will add new topics to topic-execute. To create the topic, you should run on the master node:

kubectl exec -ti kafka-0 -- kafka-topics.sh --create --topic topic-execute --zookeeper zk-0.zk-hs.default.svc.cluster.local:2181 --partitions 1 --replication-factor 1

To deploy the pod in the cluster, you should run the following command on the master node:

kubectl create -f tma-planning.yaml

You can also check the items on topic. In order to do that, you should connect to the Kafka pod and execute the consumer:

kubectl exec -ti kafka-0 -- bash
kafka-console-consumer.sh --topic topic-execute --bootstrap-server localhost:9093

tma-planning's People

Contributors

joseadp avatar

Watchers

Nuno Antunes avatar  avatar James Cloos avatar Amanda Calatrava 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.