Changes between Version 14 and Version 15 of UsersGuide


Ignore:
Timestamp:
Oct 16, 2012 7:03:54 PM (12 years ago)
Author:
Ted Faber
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UsersGuide

    v14 v15  
    311311|| M || Megabytes ||
    312312
     313The default openvz file system size is 2GB.
     314
    313315The most practical suffix for DETER nodes is "G":
    314316
     
    319321}}}
    320322
    321 Each of these parameters can be set on individual nodes using attributes.  The attribute to set a template on a node is {{{containers:openvz_template}} and the attribute to set the disk space is {{{containers:openvz_diskspace}}}.
     323Each of these parameters can be set on individual nodes using attributes.  The attribute to set a template on a node is {{{containers:openvz_template}} and the attribute to set the disk space is {{{containers:openvz_diskspace}}}.  [attachment:example5.tcl This example] shows setting these openvz parameters per node:
     324
     325{{{
     326source tb_compat.tcl
     327set ns [new Simulator]
     328
     329# Create the center node (named by its variable name)
     330set center [$ns node]
     331# The center node is a process
     332tb-add-node-attribute $center containers:node_type process
     333tb-add-node-attribute $center containers:openvz_template ubuntu-12.04-x86_64
     334
     335# Connect 10 satellites
     336for { set i 0} { $i < 10 } { incr i} {
     337    # Create node n-1 (tcl n($i) becomes n-$i in the experiment)
     338    set n($i) [$ns node]
     339    # Set satellite disk sizes to be 20 GB
     340    tb-add-node-attribute $n($i) containers:openvz_diskspace 20G
     341    # Connect center to $n($i)
     342    ns duplex-link $center $n($i) 100Mb 10ms DropTail
     343}
     344
     345# Creation boilerplate
     346$ns rtptoto Static
     347$ns run
     348}}}
     349
     350The {{{center}}} node will run Ubuntu 12.04 64 bit and the satellites will have 20GB file systems.
    322351
    323352=== Changing The Packing Factor ===