Giter VIP home page Giter VIP logo

brownout-controller's Introduction

Hello, I'm Lakshan

Software Engineer - WSO2

Skills

Programming Languages

python java javascript javascript

Cloud Technologies

kubernetes docker terraform azure

Web Development

nodejs express flask react html5 css3 bootstrap

Mobile Development

flutter

Databases

postgresql mysql mongodb mongodb

My GitHub Stats

Connect with me

ย  ย 

brownout-controller's People

Contributors

dhaura avatar lakshan-banneheke avatar thushani-jayasekera avatar

Watchers

 avatar

brownout-controller's Issues

Issue with using LUCF per node within NISP

Lucf uses GetPodsPower to calculate the power when used within NISP. It doesnt consider that some nodes have been turned off. GetPodsPower uses the full worker node count when calculating power.

DeactivateNode needs to prevent new pods from being created in the deactivated node.

Issue

New pods may get scheduled on a node that is deactivated and made idle.
Eg: If the user creates a new deployment, those pods may get created on the deactivated node.
If that node is turned off after a new pod has gotten scheduled, that will cause issues

This will help when doing container migration as well

Solutions

  • Cordon off the node - But then how can it be reconnected
  • Add a label to mark a node as idle

Integrate the power model with the abstract policy and nisp

The following functions are required in the power model

  • Get the power given a set of pods in the cluster
  • Get the power given a set of nodes in the cluster

Once the functions are available, need to use them in the executePolicy method in both abstract policy and nisp

Container Migration to improve the power saved in NISP

Migrating containers from the least utilized nodes to the other nodes will allow more nodes to be idle.

Since some containers of the "i"th node will be removed based on LUCF within the NISP policy, it is possible to migrate these containers to other nodes to make the "i"th node idle as well which will further improve the power saved.

Draining the "i"th node using the Kubernetes API will automatically make that node idle and migrate its containers to other nodes

Develop the API

API Endpoints

  • Activate Brownout
    - [POST] /brownout/activate
    - Empty body
  • Deactivate Brownout
    - [POST] /brownout/deactivate
    - Empty body
  • Set battery percentage
    - [POST] /brownout/battery/set
    - Body: {"Battery":50}

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.