No it's not.

I find the most simple method is to actually have the queues know which nodes they can run on. In my opinion this is much better than the previous solution since you edit the queue rather than the nodes.

Fro each queue (using qmgr if you want) set the parameter acl_hosts_enable to False
then simply add the nodes you want to the queue like so:

#!/bin/bash
qmgr -c "set queue batch acl_host_enable=false"
# clear current host list
qmgr -c "set queue batch acl_hosts=-"
# add hosts
qmgr -c "set queue batch acl_hosts+=nodeA"
qmgr -c "set queue batch acl_hosts+=nodeB"
qmgr -c "set queue batch acl_hosts+=nodeC"
...
qmgr -c "set queue batch acl_hosts+=nodeZ"
# shutdown maui after last scheduling iteration
schedctl -k
# restart maui
maui



See information here:
http://www.adaptivecomputing.com/resources/docs/mwm/6-0/12.1nodelocation.php#open
http://www.clusterresources.com/torquedocs/4.1queueconfig.shtml#acl_host_enable

Note that the information in the Moab guide works in this case for maui/torque.

P


On , Jayavant Patil <[email protected]> wrote:


On Fri, Feb 3, 2012 at 12:31 PM, Guangping Zhang [email protected]> wrote:










I will give you one
example as follows, as far as I know this works in Torque 2.4.6+maui
3.3.1



1. edit the file /var/spool/torque/server_priv/nodes



node01 np=12
sugon siesta dalton gaussian

node02 np=12 sugon
siesta dalton gaussian
node03 np=12
sugon siesta dalton gaussian

node04 np=12 sugon
siesta dalton gaussian
node05 np=12
sugon siesta dalton gaussian

node06 np=12 sugon
siesta dalton gaussian
node07 np=12
sugon siesta dalton gaussian

node08 np=12 sugon
siesta dalton gaussian
node09 np=12
sugon siesta dalton gaussian

node10 np=12 sugon
siesta dalton gaussian
node11 np=12
sugon siesta dalton gaussian

node12 np=12 sugon
siesta dalton gaussian
node31 np=8
powerlead siesta dalton gaussian
others
node32 np=8
powerlead siesta dalton gaussian
others
node33 np=8
powerlead siesta dalton gaussian
others
node34 np=8
powerlead siesta dalton gaussian
others
node35 np=8
powerlead siesta dalton gaussian
others
node36 np=8
powerlead siesta dalton gaussian
others
node38 np=8
powerlead siesta dalton gaussian
others
node39 np=8
powerlead siesta dalton gaussian
others
node40 np=8
powerlead siesta dalton gaussian
others
node41 np=8 dell
siesta dalton gaussian
others
node42 np=8 dell
siesta dalton gaussian
others
node43 np=8 dell
siesta dalton gaussian
others
node44 np=8 dell
molpro
node45 np=8
dell
molpro
node46 np=8 dell
molpro


2.create a queue named SIESTA
qmgr -c "create queue SIESTA
queue_type=execution"
qmgr -c "set queue SIESTA started=true"
qmgr -c "set
queue SIESTA enabled=true"
qmgr -c "set queue SIESTA
acl_group_enable=true"
qmgr -c "set queue SIESTA acl_groups=siesta"
qmgr
-c "set queue SIESTA acl_group_sloppy=true"
qmgr -c "set queue SIESTA
resources_default.neednodes=siesta"


3.restart service



qterm -t quick
pbs_server
ps -A |grep maui
18066 ?
00:00:00 maui
kill
18066
/usr/local/software/maui-3.3.1/sbin/maui

4. That is Ok



A user that belong to group siesta only can submit jobs to queue SIESTA and
can only use the nodes which has property "siesta"





Best



2012-02-03





Guangping Zhang





发件人:Jayavant Patil

发送时间:2012-02-03 14:49

主题:[Mauiusers] Queue to Node
Mapping

收件人:torquedev,mauiusers

抄送:




Hi,

I am using Torque 3.0.0 and Maui 3.3. I want
the jobs submitted to a specific queue should run only on some allocated nodes
to that queue (ie queue to node mapping).



Does anybody know how to do this?
--

Thanks &
Regards,
Jayavant Ningoji Patil
Engineer: System Software
Computational
Research Laboratories Ltd.
Pune-411 004.
Maharashtra, India.
+91
9923536030.






Hi Guangping Zhang,

Thanks a lot. It works.

Just for curiosity, is this the only way to achieve the required?

--


Thanks & Regards,
Jayavant Ningoji Patil
Engineer: System Software
Computational Research Laboratories Ltd.
Pune-411 004.
Maharashtra, India.
+91 9923536030.



_______________________________________________
mauiusers mailing list
[email protected]
http://www.supercluster.org/mailman/listinfo/mauiusers

Reply via email to