User Tools

Site Tools


reserve

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
reserve [2017/07/26 11:35] mimbertreserve [2017/08/30 16:31] – [Advanced usage: sharing the platform] mimbert
Line 55: Line 55:
 <code>$ oarsub -l {"network_address in ('mnode4.cortexlab.fr', 'mnode6.cortexlab.fr')"}/nodes=2,walltime=0:30:00</code> <code>$ oarsub -l {"network_address in ('mnode4.cortexlab.fr', 'mnode6.cortexlab.fr')"}/nodes=2,walltime=0:30:00</code>
  
 +==== Advanced usage: sharing the platform ====
 +
 +It is possible to share the platform, for specific situations such as tutorials, courses, challenges. In these situations, you want several users to be able to use the platform at the same time. For this, you need to follow these steps:
 +
 +The organizer of the tutorial/course/challenge submits or reserve the whole (or part of) the platform for the duration of the event, with the ''-t container'' option:
 +
 +<code>$ oarsub -l nodes=BEST,walltime=4:00:00 -t container=tuto-xyz -r '2018-07-21 14:00:00'</code>
 +
 +This will reserve all available nodes for a 4 hours event, between 14 and 18 on July 21, 2018.
 +
 +Then, participants can submit jobs inside the container job with this (example) syntax:
 +
 +<code>$ oarsub -t inner=tuto-xyz -l {"network_address in ('mnode4.cortexlab.fr', 'mnode6.cortexlab.fr')"}/nodes=2,walltime=0:30:00 -I</code>
 +
 +or (another example):
 +
 +<code>$ oarsub -t inner=tuto-xyz -l nodes=2,walltime=0:30:00 'sleep 10000000'</code>
 +
 +alternatively, the organizer can use:
 +
 +<code>$ oarsub -l nodes=BEST,walltime=4:00:00 -t container -r '2018-07-21 14:00:00'</code>
 +
 +Then, participants will have to use:
 +
 +<code>$ oarsub -t inner=<job_id of the container job> -l nodes=2,walltime=0:30:00 'sleep 10000000'</code>
 +
 +==== OAR Documentation ====
 +
 +The complete OAR documentation, with much more details and examples, is available here: https://oar.imag.fr
reserve.txt · Last modified: 2022/11/18 16:43 by pgirard

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki