Difference between revisions of "Comp:cluster reservation"
(link to slurm) |
|||
Line 1: | Line 1: | ||
Batch jobs are handled by [https://wiki.science.ru.nl/slurm SLURM]. However, sometimes you need all cores of one specific cluster node and you want to ask other theoretical chemistry group members not to start new jobs on that node. We first used Slack/yoinc to request nodes, but we now have a script to automate this process. The script will put the cluster node reservation requests in a database, and from a bash script you can get a list of cluster nodes that have been reserved. | Batch jobs are handled by [https://wiki.science.ru.nl/slurm SLURM]. However, sometimes you need all cores of one specific cluster node and you want to ask other theoretical chemistry group members not to start new jobs on that node. We first used Slack/yoinc to request nodes, but we now have a script to automate this process. The script will put the cluster node reservation requests in a database, and from a bash script you can get a list of cluster nodes that have been reserved. | ||
− | === | + | === Tutorial === |
− | Make sure to have <tt>/vol/thchem/bin</tt> in your bash PATH variable. In your .bashrc add | + | Make sure to have <tt>/vol/thchem/bin</tt> in your bash PATH variable. In your <tt>.bashrc</tt> add |
export PATH=$PATH:/vol/tchem/bin | export PATH=$PATH:/vol/tchem/bin | ||
Line 15: | Line 15: | ||
You are connected to database "batchq" as user "cnuser" on host "cn58" (address "131.174.30.158") at port "16034". | You are connected to database "batchq" as user "cnuser" on host "cn58" (address "131.174.30.158") at port "16034". | ||
− | From the command line you can get the manual by just | + | If you get <tt>Cn: command not found</tt>, ask someone to setup a <tt>.profile</tt> script. |
+ | |||
+ | From the command line you can get the manual by just typing <tt>Cn</tt>, or | ||
Cn help | Cn help | ||
− | Use the <tt>spacebar</tt> and the <tt>b</tt> to go back-and-forth through the manual. | + | Use the <tt>spacebar</tt> and the <tt>b</tt> to go back-and-forth through the manual, use <tt>q</tt> or <tt>cntr-C</tt> to quit the help info. |
Have a look at current reservations: | Have a look at current reservations: | ||
Line 28: | Line 30: | ||
Cn reserve cn10 3 | Cn reserve cn10 3 | ||
+ | |||
+ | [instruction is not yet finished] |
Revision as of 17:44, 10 February 2021
Batch jobs are handled by SLURM. However, sometimes you need all cores of one specific cluster node and you want to ask other theoretical chemistry group members not to start new jobs on that node. We first used Slack/yoinc to request nodes, but we now have a script to automate this process. The script will put the cluster node reservation requests in a database, and from a bash script you can get a list of cluster nodes that have been reserved.
Tutorial
Make sure to have /vol/thchem/bin in your bash PATH variable. In your .bashrc add
export PATH=$PATH:/vol/tchem/bin
On one of the clusternodes and on lilo7 (but not lilo6 and older) check this:
Cn info
You should get something like:
You are connected to database "batchq" as user "cnuser" on host "cn58" (address "131.174.30.158") at port "16034".
If you get Cn: command not found, ask someone to setup a .profile script.
From the command line you can get the manual by just typing Cn, or
Cn help
Use the spacebar and the b to go back-and-forth through the manual, use q or cntr-C to quit the help info.
Have a look at current reservations:
Cn show
Reserve, e.g., cluster node cn10 for three days:
Cn reserve cn10 3
[instruction is not yet finished]