Henrik,

   I just use cron and qmgr commands for this.

   Good luck with your cluster.


-          Jim

James Coyle, PhD
High Performance Computing Group
 217 Durham Center
 Iowa State Univ.           phone: (515)-294-2099
Ames, Iowa 50011           web: http://jjc.public.iastate.edu/



Details:
---
   Create the queue nightly_queue
lets suppose you have a max walltime limit of 4 hours on it.
Use crontab -e to
start the queue at 9:01 pm  via:
01 21 * * *  /root/start_nightly >> /var/log/nightyQ 2>&1
and stop at 1am (to allow the jobs 4 hours to finish by 5:01am the next day.)
01 01 * * *  /root/stop_nightly >> /var/log/nightyQ 2>&1

Where
/root/start_nightly

might just be
/usr/local/bin/qstart  nightly_queue
plus any other messages you want going into /var/log/nightlyQ
such as perhaps a time stamp and the nightly jobs in that queue
(e.g.   /usr/local/bin/qstat  -a  nightly_queue  )
and similarly for /root/start_nightly  with a qstop command.
The logging is so that you know that your commands ran and
what jobs were waiting before you started the queue and after you stopped the 
queue
in case you need to debug a situation.

   You could also just start the queue and limit it during the daytime to one 
node, and
the change it via qmgr to allow more nodes during the night and then restrict 
it again at 1am.




From: [email protected] 
[mailto:[email protected]] On Behalf Of Dr. Henrik Schulz
Sent: Friday, March 21, 2014 8:18 AM
To: [email protected]
Subject: [Mauiusers] queue for nightly builds

Dear all,

one of my users asked for a queue to run jobs for nightly builds/tests. Is this 
possible?

What we have:

- a number of nodes (for example node001-node100)
- a queue defined to start jobs on all of these nodes (for example 
'default_queue')

What the user wants:

- an additional queue (let´s say 'nightly_queue'), which starts jobs only 
during the night (let´s say 9:00 p.m. until 5:00 a.m. on Mon-Thu) and during 
the weekend (Fri, 9:00 p.m. until Mon, 5:00 a.m.). In between the jobs should 
just stay queued.
- maybe also a lower priority for this queue compared to the default_queue

Is this somehow possible with maui 3.3.1 (running on top of torque 4.1.7)? I 
tried to use standing reservations for this, but these reservations prevent 
jobs in the default_queue from starting.

Any help will be appreciated.

Best regards,
Henrik


--
Dr. Henrik Schulz
Zentralabteilung Technischer Service
Abteilung Informationstechnologie
Helmholtz-Zentrum Dresden-Rossendorf
Tel: +49 (0351) 260 3268
[email protected]<mailto:[email protected]>
http://www.hzdr.de

Vorstand: Prof. Dr. Dr. h. c. Roland Sauerbrey, Prof. Dr. Dr. h. c. Peter Joehnk
Vereinsregister: VR 1693 beim Amtsgericht Dresden
_______________________________________________
mauiusers mailing list
[email protected]
http://www.supercluster.org/mailman/listinfo/mauiusers

Reply via email to