Maui reservations
From PDP/Grid Wiki
Revision as of 09:26, 21 June 2013 by Ronalds@nikhef.nl (talk | contribs) (Created page with " Example: create a reservation for 6 cores for jobs submitted to the short queue on working days (Mon-Fri) from 9:30 to 18:30. Using a standing reservation in Maui, the foll...")
Example: create a reservation for 6 cores for jobs submitted to the short queue on working days (Mon-Fri) from 9:30 to 18:30.
Using a standing reservation in Maui, the following fragment should be added to the configuration file /var/spool/maui/maui.cfg, followed by a restart of the maui daemon.
SRCFG[short] STARTTIME=9:30:00 ENDTIME=18:30:00 SRCFG[short] PERIOD=DAY DEPTH=3 SRCFG[short] DAYS=Mon,Tue,Wed,Thu,Fri SRCFG[short] TASKCOUNT=6 RESOURCES=PROCS:1 SRCFG[short] TIMELIMIT=4:00 SRCFG[short] CLASSLIST=short
Maui creates a reservation:
Using the setres command (e.g. from a cron job), the command is:
# /usr/bin/setres -n short -r "PROCS=2" -s 09:30:00 -e 18:30:00 -c short 'tbn(08|09|17).nikhef.nl'
And Maui has the following reservation:
# showres short.0 Reservations ReservationID Type S Start End Duration N/P StartTime short.0 User - -01:53:06 7:06:54 9:00:00 3/6 Fri Jun 21 11:30:00 1 reservation located
# mdiag -r Diagnosing Reservations ResID Type Par StartTime EndTime Duration Node Task Proc ----- ---- --- --------- ------- -------- ---- ---- ---- short.0 User DEF 00:04:53 7:04:53 7:00:00 3 3 6 Flags: PREEMPTEE ACL: RES==short= CLASS==short+ CL: RES==short Task Resources: PROCS: 2 Attributes (HostList='tbn(08|09|17).nikhef.nl') Active Reserved Processors: 0