Giter VIP home page Giter VIP logo

copa_threshold's Introduction

copa_threshold

O algoritmo faz uso da API do Copa para monitorar e realizar migração de containers de forma automatizada

Como utilizar

Edite as seguintes primeiras linhas do treshold.py:

copaUrl = 'http://copaserver:8000/'
poolStart = 'Server2'
poolDestiny = 'Server1'
containerName = 'landoserver'
threshold = 10

copaUrl é a URL do Copa Server.
poolStart o nome do Copa Pool onde o container a ser migrado se encontra originalmente.
poolDestiny é o nome do Copa Pool para qual o container será migrado.
containerName é o nome do container a ser migrado na rede.
treshold é o limite em MB de throughput da rede em que, ao ser batido, inicia o processo de migração.

Em seguida, rode o algoritmo em um n que tenha acesso á URL do Copa Server:

python3 treshold.py

O algoritmo deve exibir sua execução a cada 5 segundos, e alertar em logs quando a migração ocorrer.

copa_threshold's People

Contributors

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