exp_create_task
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
exp_create_task [2014/06/17 16:32] – created bguillon | exp_create_task [2017/08/22 14:32] (current) – migrate from scenario.desc to scenario.yaml mimbert | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Create an experiment ===== | ===== Create an experiment ===== | ||
- | Now that all the experiment material has been successfully uploaded on the airlock you will have to create a task file. The task file is a simple tar.gz archive file that contains your experiment material alongside an experiment description file: `scenario.desc`. | + | Now that all the experiment material has been successfully uploaded on the airlock you will have to create a task file. The task file is a simple tar.gz archive file that contains your experiment material alongside an experiment description file: `scenario.yaml`. |
+ | |||
+ | ==== The experiment description file ==== | ||
+ | |||
+ | The experiment description file called `scenario.yaml` will be looked for and read by the experiment scheduler to get which nodes and what software will be used during the experiment. It also gives the necessary startup scripts and parameters that the user provides for his experiment. | ||
+ | |||
+ | Here is a simple example of a `scenario.desc` | ||
+ | < | ||
+ | # Example scenario description file | ||
+ | # | ||
+ | # All lines starting with "#" | ||
+ | |||
+ | |||
+ | # Scenario textual description | ||
+ | # | ||
+ | description: | ||
+ | |||
+ | # Experiment maximum duration | ||
+ | # Time after which the experiment is forced to stop | ||
+ | # | ||
+ | duration: 120 | ||
+ | |||
+ | # Node list | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | |||
+ | nodes: | ||
+ | node4: | ||
+ | command: benchmark_rx.py --antenna=" | ||
+ | node6: | ||
+ | command: benchmark_tx.py --antenna=" | ||
+ | </ | ||
+ | |||
+ | This file uses its own syntax and is self-documented. Adapt this example to suit your needs. | ||
+ | |||
+ | ==== Creating the task file ==== | ||
+ | |||
+ | Once the `scenario.yaml` file is written, put all the experiment material and the `scenario.yaml` file in the same directory. The file tree could look like something like that: | ||
+ | < | ||
+ | ... | ||
+ | ├── ofdm_txrx | ||
+ | │ ├── benchmark_rx.py | ||
+ | │ ├── benchmark_tx.py | ||
+ | │ ├── receive_path.py | ||
+ | │ ├── scenario.yaml | ||
+ | │ ├── transmit_path.py | ||
+ | │ └── uhd_interface.py | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | Now, use the Minus CLI to create the task file: | ||
+ | < | ||
+ | you@srvairlock: | ||
+ | </ | ||
+ | |||
+ | The success (or failure) of the creation will be printed on screen. The task file will be created at the same level and name than the targeted experiment folder but with a `.task` suffix. | ||
+ | |||
+ | **Note:** You can get help on the Minus CLI at anytime with `minus -h` | ||
+ | |||
+ | |||
+ | => [Submitting the task to the experiment scheduler](exp_submit_task) |
exp_create_task.1403015547.txt.gz · Last modified: 2014/06/17 16:32 by bguillon