(Click to open topic with navigation)
Torque can add and remove nodes either dynamically with qmgr or by manually editing the
Be aware of the following:
5.688.1 Run-time Node Changes
Torque can dynamically add nodes with the qmgr command. For example, the following command will add node node003:
> qmgr -c 'create node node003[,node004,node005...] [np=n,][TTL=yyyy-mm-ddThh:mm:ssZ,][acl="user==user1:user2:user3",][requestid=n]'
The optional parameters are used as follows:
np – Number of virtual processors.
acl – (Access control list) Can be used to control which users have access to the node in Moab.
requestid – An ID that can be used to track the request that created the node.
You can alter the parameters of a node using a set command as follows:
qmgr -c 'set node node003 np=y'
qmgr -c 'set node node003 TTL=yyyy-mm-ddThh:mm:ssZ'
qmgr -c 'set node node003 requestid=23234'
qmgr -c 'set node node003 acl="user10,user11,user12"'
qmgr -c 'set node node003 acl+="user5,user6"'
qmgr -c 'set node node003 acl-=user1'
Torque does not use the TTL, acl, and requestid parameters. Information for those parameters are simply passed to Moab.
The above command appends the TORQUE_HOME/server_priv/nodes file with:
node003 np=3 TTL=2014-08-06T14:30:00Z acl=user1,user2,user3 requestid=3210
node004 ...
Nodes can also be removed with a similar command:
> qmgr -c 'delete node node003[,node004,node005...]'
Related Topics