Giter VIP home page Giter VIP logo

g5k-executor's Introduction

Grid'5000 executor

This repository contains the source code of the BtrPlace g5k-executor. It allows to execute BtrPlace JSON converted plans into Grid'5000 infrastructure.

For a full usage example, have a look at this repository that contains all the informations to reproduce the experiments from the paper "Scheduling Live-Migrations for Fast, Adaptable and Energy Efficient Relocation Operation" published at UCC'15.

Requirements:

  • JDK 8+
  • maven 3+

Get the latest version

First, get the latest version (master branch) and compile it using maven:

# Get it and compile it
git clone https://github.com/btrplace/g5k-executor.git
cd g5k-executor
mvn -Dmaven.test.skip=true package

A distribution tarball is generated into the target folder, you can now extract and start to use the executor. The main script is g5kExecutor For example, execute it as is to show the cmdline options:

# Start to use it
cd target
tar xzf g5k-1.0-SNAPSHOT-distribution.tar.gz
cd g5k-1.0-SNAPSHOT/
./g5kExecutor

Usage

Il fou are using some g5k shared storage, you first need to edit the migration script g5k-1.0-SNAPSHOT/scripts/migrate.sh and modify the variable VM_BASE_IMG to match your VM image location.

Then, the g5k-1.0-SNAPSHOT/scripts/translate file must be modified to allow to translate VMs and g5k nodes names into the BtrPlace VMs and nodes names, the file should look like this:

vm-1 vm#0
vm-2 vm#1
...
griffon-60 node#0
griffon-61 node#1
...

Each entry must contains first the real node/VM name and then the corresponding BtrPlace name **separated by a tabulation. The BtrPlace numbering is defined incrementally according to the node/VM creation order (so be sure to create Nodes and VMs objects in the desired order).

Cmdline options

g5kExecutor [-d scripts_dir] (-mvm|-buddies -p <x>) -i <json_file> -o <output_file>
 -buddies (--memory-buddies-scheduler) : Select the scheduler of Memory buddies
 -d (--scripts-dir) VAL                : Scripts location relative directory
 -i (--input-json) VAL                 : The json reconfiguration plan to read
                                         (can be a .gz)
 -mvm (--mvm-scheduler)                : Select the scheduler of mVM (default
                                         choice)
 -o (--output-csv) VAL                 : Print actions durations to this file

Usage examples

Execute a BtrPlace reconfiguration plan using the mVM scheduler:

./g5kExecutor --mvm-scheduler --input-json <JSON_FILE> --output-csv <OUTPUT_CSV>

Execute it using the Memory Buddies scheduler, with a parallelism set to 2:

./g5kExecutor --memory-buddies-scheduler --parallelism 2 -i <JSON_FILE> -o <OUTPUT_CSV>

The <OUTPUT_CSV> file contains 3 fields: ACTION;START;END where ACTION represents the BtrPlace String representation of the action, START and END correspond respectively to the start and end time of the action in the form of timestamps.

g5k-executor's People

Contributors

vincent-k 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.