Coder Social home page Coder Social logo

khazit / broker Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 292 KB

Simple scheduler to manage a team's access to limited computational resources.

License: MIT License

Python 24.38% Dockerfile 0.70% JavaScript 16.14% HTML 0.20% Vue 14.22% Shell 0.62% SCSS 43.73%
gpu-computing scheduler dashboard runners managing

broker's Introduction

⚠️ No longer maintained

Broker

Broker was created as a tool for a team of 9 ML practitioners to manage their access to a single GPU machine. The idea was to avoid running multiple jobs at once (which would cause OOM errors), and to have a dashboard to visualize the jobs and their respective states.

According to Wikipedia:

A broker's prime responsibility is to bring sellers and buyers together and thus a broker is the third-person facilitator between a buyer and a seller.

In the same way, the global architecture of the system was designed around the Scheduler, the API that connects users with runners.

Theoretically, the system could scale to multiple runners. But has yet to be tested.

Install

Scheduler

To install the Scheduler on the main host machine (API + Dashboard):

Use docker-compose to build the two images

$ docker-compose -f docker/docker-compose-dev.yml build

And run the app:

$ docker-compose -f docker/docker-compose-dev.yml up

You can either use the Web UI ...

... or the bash script broker for command line usage.

Runners

Runners are single file python scripts, that you can run directly on your python env or on a docker container using docker/runner-dev.Dockerfile. The only dependancy is requests.

$ cd runner
$ python runner.py --scheduler_ip [IP] --scheduler_port [PORT]

Caveats

This is my first time writing an API / doing web dev. This is a development version that has no security at all.

Aknowledgements

The dashboard uses this template https://github.com/BootstrapDash/StarAdmin-Free-Vue-Admin-Template

broker's People

Contributors

khazit avatar

Stargazers

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