Giter VIP home page Giter VIP logo

ovirt-storage-balancer's Introduction

oVirt storage balancer

This script takes all configured Storage Domains of oVirt and balances their disks under a defined threshold of occupation. You may exclude certain storage domains, focus it on a concrete data center, adjust the desired threshold and even apply a migration policy (only disks from machines that are up/down at that time, whatever VM's disks...).

This project uses ovirt-engine-sdk-python version 4.x.

Note: This is an unofficial oVirt-related project

Installation

virtualenv venv
. venv/bin/activate
pip install --install-option="--with-nss" pycurl
pip install -r requirements.txt

Note: In case you want to use python3 instead of python2 (which is by the way recommended), you can specify the -p python3 parameter to your virtualenv command instead:

virtualenv -p python3 venv

Configuration

Copy the config.py.example file as config.py and adjust parameters to your needs. An explaination can be found inside the file comments.

Script invocation

# python storage_balancer.py -h
usage: storage_balancer.py [-h] [--one-run] [--daemon] [--show-occupation]

optional arguments:
  -h, --help         show this help message and exit
  --one-run          Just executes the balancer once (one step)
  --daemon           Executes balancer as daemon. By default.
  --show-occupation  Only shows current storage domain occupation, then
                     exits..
  • If run without parameters, daemon mode will be invoked.
  • --one-run and --show-occupation are incompatible with --daemon mode, and they have precedence over this latter.

Version

This is version 1.5.

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.