Giter Site home page Giter Site logo

pirocks / slurm-banking-plugins Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ucb-rit/slurm-banking-plugins

0.0 2.0 0.0 101 KB

๐Ÿฆ Slurm banking plugins to manage service unit usage based on the myBRC API

Makefile 2.47% Dockerfile 1.00% Rust 94.21% Shell 2.05% Nix 0.20% C++ 0.08%

slurm-banking-plugins's Introduction

Slurm Banking Plugins

Travis Build Status

Currently in development - Not ready for use

Slurm banking plugins provide allocation management to Slurm. The plugins deduct service units for completed and running jobs and prevent jobs from running if there are insufficient service units available. There are two plugins, one running on job submission and the other on job completion. The job completion plugin will reimburse service units if the job ran for less time than was expected based on its submission options. The plugins interact with an HTTP-based API to keep track of service units per account and user.

These plugins are written in Rust, an efficient and memory-safe programming language. It uses rust-bindgen to automatically generate the Rust foreign function interface (FFI) bindings based on the Slurm C header files.

Build Requirements

Building

Since the Slurm jobcomp plugins need access to the "src/common/slurm_jobcomp.h" header, we need access to the Slurm source code src directory in order to build (as well as the normal <slurm/slurm.h> headers on the CPATH).

  1. Edit the path at the top of the Makefile to point to the Slurm source code directory
  2. Once you have all the dependencies, just run make :)
  3. After building, you will find the .so files in the same directory as the Makefile

NixOS

shell.nix provides the environment for development on NixOS. I run the following:

nix-shell 
make

Developing

I use the docker-centos7-slurm Docker container as a base, and build the plugins on top of it.

make docker-dev builds the development container with Slurm plus all the other necessary dependencies for the plugins and drops you into a shell. The code is stored in /slurm-banking-plugins in the container. After making your changes, use make && make install to compile and install the plugins, then restart Slurm with supervisorctl restart all.

slurm-banking-plugins's People

Contributors

nicolaschan avatar

Watchers

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