Funk: Difference between revisions

From Grid5000
Jump to navigation Jump to search
mNo edit summary
Line 7: Line 7:


==Configuration==
==Configuration==
===No installation===
A bash wrapper is installed on lyon frontend in /home/lpouilloux/bin/funk and allow you to use funk without any configuration.
Just type ./funk with the options you need (see below)


===With installation===
===With installation===
Line 15: Line 12:
Once it is done, you can clone the repository with:
Once it is done, you can clone the repository with:
   git clone https://github.com/lpouillo/Funk.git
   git clone https://github.com/lpouillo/Funk.git
And run the script with ./funk.py
And run the script with ./funk.py.
 
===No installation===
A bash wrapper is installed on lyon frontend in /home/lpouilloux/bin/funk and allow you to use funk without any configuration.
Just type ./funk with the options you need (see below)


==Options==
==Options==

Revision as of 10:04, 12 July 2013


(F)ind yo(U)r (N)odes on g5(K) is a tool that help you to plan your multi-site experiments on Grid5000. It is a Python script based on Execo that give you the number of available nodes or the time slot when the required ressources will be available.

Source can be found here

Configuration

With installation

You need to install the git version of execo: [1] Once it is done, you can clone the repository with:

  git clone https://github.com/lpouillo/Funk.git

And run the script with ./funk.py.

No installation

A bash wrapper is installed on lyon frontend in /home/lpouilloux/bin/funk and allow you to use funk without any configuration. Just type ./funk with the options you need (see below)

Options

running

  • (-y): perform the reservation automatically
  • (-v): verbose mode (a lot of debugging informations)
  • (-q): quiet mode (no informations displayed)
  • (-p): draw gantt diagramm and slots (require matplotlib 1.2, not available on Grid'5000 frontends)

mode

Three modes (-m):

  • now = give you the number of nodes available at the time the script is run
  • free = find the slots for a combination of resources
  • max = find the maximum number of nodes for the period specified.

resources

Define with (-r) the elements you need by giving a comma separated list of elements (grid5000, site_uid, cluster_uid)

  • element1,element2,element3 for mode now and max
  • element1:n_nodes1,element2:n_nodes2,element3:n_nodes3 for mode free

walltime

Usage

Examples

Finding the number of available nodes from now to now + walltime

  funk.py -w 1:00:00 -m now -r grid5000

Finding the first free slots for a resource combination

  funk.py -w 2:00:00 -m free -r lille:10,lyon:10,sophia:10

Finding the maximum number of nodes available for the resource and with a KaVLAN

  funk.py -w 10:00:00 -m max -r lyon,sophia,edel -k