Changes between Version 4 and Version 5 of Software/eTutorialSupport


Ignore:
Timestamp:
May 16, 2016, 11:10:19 PM (9 years ago)
Author:
ffund01
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Software/eTutorialSupport

    v4 v5  
    7878
    7979You'll have to run the commands above as root, since you've set up the root user as the only PBS operator and manager.
     80
     81
     82== Set up queues ==
     83
     84Next we'll set up queues: one for each node.
     85
     86''For various reasons, we've decided to make a queue per node and have the console be the single "compute" node, instead of having the nodes be the "compute" nodes. (Mainly because then we can still use legacy disk images, and don't have to worry about configuring the nodes to work with torque.) It might seem "neater" to use "nodes" instead of queues, because this would make it simpler to run an experiment with multiple nodes. In practice, though, it would still be annoying to run an experiment with multiple nodes because you generally care which nodes in this scenario (e.g. you want nodes that are close.)
     87''
     88
     89First we get a list of nodes, then we'll set up a queue for each one:
     90
     91{{{
     92list=$(omf stat -t system:topo:all | grep "Node:" | awk -F" " '{print $2}' | cut -f1 -d$'.')
     93
     94for l in $list
     95do
     96    qmgr -c "create queue $l"
     97    qmgr -c "set queue $l queue_type = Execution"
     98    qmgr -c "set queue $l max_running = 1"
     99    qmgr -c "set queue $l enabled = True"
     100    qmgr -c "set queue $l started = True"
     101done
     102}}}
     103
     104(Again, this must be done as root or as a queue manager.)
     105
     106Now we'll disable all the queues, because we are going to re-enable them selectively.
     107
     108{{{
     109list=$(omf stat -t system:topo:all | grep "Node:" | awk -F" " '{print $2}' | cut -f1 -d$'.')
     110
     111for l in $list
     112do
     113    qmgr -c "set queue $l enabled = False"
     114done
     115}}}
     116
     117
     118Check with
     119
     120
     121{{{
     122qstat -Q
     123}}}