Sunday, December 11, 2011

How to associate compute nodes with a queue name with Torque

If you wish to use a queue that is locked to a selected group of nodes and wish to allow certain users to run, you may want to take a look at one of the contributor to a Rock-Discussion
[Rocks-Discuss] [Torque roll] How to associate 10 compute nodeswith a queue name ?

In his write-up

========
qmgr -c "create queue vision queue_type=execution"
qmgr -c "set queue vision resources_default.neednodes = vision"
qmgr -c "set queue vision acl_hosts=c2-0-20+c2-0-21+c2-0-22+c2-0-27+c2-0-28+c2-0-29"
qmgr -c "set queue vision acl_host_enable = false"
qmgr -c "set queue vision acl_users=user1"
qmgr -c "set queue vision acl_users+=user2"
qmgr -c "set queue vision acl_users+=user3"
qmgr -c "set queue vision acl_user_enable=true"
qmgr -c "set queue vision enabled = True"
qmgr -c "set queue vision started = True"

qmgr -c "set queue default resources_default.neednodes = general"

for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 23 24 25 26 30 31 32 33; 
do 
        /opt/torque/bin/qmgr -c "set node c2-0-${i} properties = general"; 
done

for i in 20 21 22 27 28 29 ; 
do 
        /opt/torque/bin/qmgr -c "set node c2-0-${i} properties = vision"; 
done
========
 
For more information, do also read up on
  1. 4.1 Queue Configuration (From Cluster Resources)
  2. Cluster Node-Locking with Torque and Maui (Wednesday, October 22, 2008)

No comments: