405 | | Our topology assigns |
| 405 | Our topology assigns {{{center}}} to pass 0, the nodes on {{{lan-0}}} (the tcl variable lan(0)) to pass 1, those on {{{lan-1}}} to pass 2 and those on {{{lan-2}}} to pass 3. We will use the {{{--pass-pack}}} parameter to specify the packing factor for each pass. Each packing factor specification looks like ''pass'':''factor'' where pass and factor are both integers. We can specify more than one, separated by commas, or specify {{{--pass-pack}}} more than once. |
| 406 | |
| 407 | For example, we can pack the experiment using the following factors: |
| 408 | |
| 409 | || __Pass__ || __Packing Factor__ || |
| 410 | || 0 || 1|| |
| 411 | || 1 || 20 || |
| 412 | || 2 || 10 || |
| 413 | || 3 || 5 || |
| 414 | |
| 415 | By issuing: |
| 416 | |
| 417 | {{{ |
| 418 | users:~$ /share/containers/containerize.py --pass-pack 0:1,1:20,2:10,3:5 --nodes-only DeterTest example6 ~/example6.tcl |
| 419 | Containerized experiment DeterTest/example6 successfully created! |
| 420 | Access it via http://www.isi.deterlab.net//showexp.php3?pid=DeterTest&eid=example6 |
| 421 | }}} |
| 422 | |
| 423 | We can view the packing by using {{{container_image.py}}} to generate a visualization that includes the partitions: |
| 424 | |
| 425 | {{{ |
| 426 | users:~$ /share/containers/container_image.py --experiment DeterTest/example6 --partitions --out ~/example6.png |
| 427 | }}} |
| 428 | |
| 429 | The output shows the topology with boxes drawn around the containers that share a physical node: |
| 430 | |
| 431 | |