Thierry pls do not delete this
How to define and use topologies¶
Prerequisite¶
Before going through this tutorial, you should:- know the basics of writing and running an experiment script
- have installed a disk image on the nodes of the testbed you are using (for example, "baseline.ndz").
Objective¶
In this tutorial, you will learn a simple way to define and use topologies in your experiments.
After installing an image on all the nodes of a testbed, three default topologies will be generated. One of them, the system:topo:active, contains a list of all the nodes that have the requested disk image and are working. In this tutorial, you will use this default active topology to create topologies to use in your experiments.
The Tutorial Experiment¶
This experiment is given in the attached script tut_topo_1.rb. This file contains extensive comments that should help you understand the different steps involved in defining and using topologies. You can find more detailed information on the available commands to define topologies here.
To run this example script, use the following command:
omf exec tut_topo_1
The Results¶
The experiment screen output should then look like this. The experiment log file should look like this.
You can also access the results of this particular experiment example in the MySQL database, using the experiment ID: "grid_2007_08_27_20_45_37" (refer to Analysing Results for more information on accessing the results).
The tut_topo_1_more.rb contains an extended version of the above script with more optional features.