Funk: Difference between revisions
| Lpouilloux (talk | contribs)  (→Usage) | Lpouilloux (talk | contribs)  No edit summary | ||
| Line 13: | Line 13: | ||
| Some basic usage can be found [[#usage|here]]. | Some basic usage can be found [[#usage|here]]. | ||
| |valign="top"| [[File:Funk_Slots.png|300px]] | |valign="top"| [[File:Funk_Slots.png|300px]] | ||
| |} | |} | ||
| Line 36: | Line 35: | ||
| ===running=== | ===running=== | ||
| * (-m): three modes available | * (-m): three modes available | ||
| ** '' | ** ''date''  = give you the number of nodes available at the time the script is run | ||
| ** ''free'' = find the slots for a combination of resources | ** ''free'' = find the slots for a combination of resources | ||
| ** ''max''  = find the maximum number of nodes for the period specified. | ** ''max''  = find the maximum number of nodes for the period specified. | ||
| Line 55: | Line 54: | ||
| * (-s): starting date for the planning computation (2013-07-12 16:12:35) | * (-s): starting date for the planning computation (2013-07-12 16:12:35) | ||
| * (-e): ending date for the planning computation (2013-07-16 16:12:35) | * (-e): ending date for the planning computation (2013-07-16 16:12:35) | ||
| * (-c): choose a timeslot that is out of Grid'5000 charter time | |||
| ==<span id="usage">Usage</span>== | ==<span id="usage">Usage</span>== | ||
| Finding the number of available nodes from now to now + walltime | Finding the number of available nodes from now to now + walltime | ||
|     funk -w 1:00:00 -m  |     funk -w 1:00:00 -m date -r grid5000 | ||
| Finding the first free slots for a resource combination | Finding the first free slots for a resource combination | ||
|     funk -w 2:00:00 -m free -r lille:10,lyon:10,sophia:10 |     funk -w 2:00:00 -m free -r lille:10,lyon:10,sophia:10 | ||
Revision as of 14:18, 7 November 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: 
 Projet source, issue and feature requests can be found here. Some basic usage can be found here. |   | 
Running the tool
No installation
A bash wrapper is installed on lyon frontend in /home/lpouilloux/bin/ and allow you to use funk without any configuration and installation. You must log into the Lyon frontend and run it:
ssh lyon /home/lpouilloux/bin/funk -h
With installation
You need to install the git version of execo. 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
Options
running
- (-m): three modes available
- date = 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.
 
- (-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)
resources
- (-r): define 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
 
- (-k): ask for a global KaVLAN
- (-o): define your oargridsub options (default = '-t deploy')
time
- (-w): walltime of the reservation (1:00:00)
- (-s): starting date for the planning computation (2013-07-12 16:12:35)
- (-e): ending date for the planning computation (2013-07-16 16:12:35)
- (-c): choose a timeslot that is out of Grid'5000 charter time
Usage
Finding the number of available nodes from now to now + walltime
funk -w 1:00:00 -m date -r grid5000
Finding the first free slots for a resource combination
funk -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 -w 10:00:00 -m max -r lyon,sophia,edel -k