Giter Site home page Giter Site logo

kumo-leasing's Introduction

Leasing scripts is used to free a node from a specific project after a certain amount of time.

The procedure is as follows: Cron job will call the leasing script in pre-defined time intervals (e.g., every 30 seconds). Leasing script checks node's status in the status file and updates the number of times cron job has called the leasing script while the node has been asigned to a project. If this number of times passes the threshold, the node will be freed from that project. So, threshould * cron_job_interval = the time that the node will be released after. For example, if threshold is 5 and intervals are set to 1 minutes, then after 5*1 = 5 minutes, the node will be released.

Tenants who need more time should ask time extension. One can change the "assigned to a project" time for all nodes (by chanigng threshold in config file) or for one node (by changing the line in the status file related to the node.)

Script reads a config file from /etc/leasing.cfg which includes the name of the nodes, time threshold, admin user name and password, status file and endpoint which specifies the ip address and port number which hil runs at.

status file includes each node's status, which node is in which project, and which node is free or for how long the node has been assigned to a project.

Note: this script does NOT support other auth backends such as keystone.


Config file format (/etc/leasing.cfg): Read the comments in the config file.


Status file format (e.g., var/lib/leasing): node_name project_name cron_job_called_script_times

kumo-leasing's People

Contributors

knikolla avatar mosayyebzadeh avatar naved001 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kumo-leasing's Issues

Docs for using kumo

We need to document what commands the user should run to provision their nodes for the first time (using BMI) or re-provision/reconnect using the script.

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.