Difference between revisions of "Biocluster"

From Carl R. Woese Institute for Genomic Biology - University of Illinois Urbana-Champaign
Jump to navigation Jump to search
(New page: = {{PAGENAME}} = __TOC__ === Cluster Specifications === *11 Nodes *Dell R410 Servers *8 2.6 GHz Intel CPUs per Node *24 Gigabytes of RAM per Node === Cluster Status === *[http:...)
 
(Quick Links)
 
(256 intermediate revisions by 8 users not shown)
Line 1: Line 1:
= {{PAGENAME}}  =
+
__TOC__
  
__TOC__
+
==Quick Links==
  
=== Cluster Specifications  ===
+
* Main Site - [http://biocluster.igb.illinois.edu http://biocluster.igb.illinois.edu]
 +
* Request Account - [http://www.igb.illinois.edu/content/biocluster-account-form http://www.igb.illinois.edu/content/biocluster-account-form]
 +
* Cluster Accounting - [https://bioapps3.igb.illinois.edu/accounting/ https://bioapps3.igb.illinois.edu/accounting/]
 +
* Cluster Monitoring - [https://bioapps3.igb.illinois.edu//ganglia/ https://bioapps3.igb.illinois.edu/ganglia/]
 +
* SLURM Script Generator - [http://www-app.igb.illinois.edu/tools/slurm/ http://www-app.igb.illinois.edu/tools/slurm/]
 +
* Biocluster Applications - [https://help.igb.illinois.edu/Biocluster_Applications https://help.igb.illinois.edu/Biocluster_Applications]
 +
* Biocluster Introduction Presentation - [https://help.igb.illinois.edu/images/d/df/Intro_to_Biocluster_Spring_2022.pptx Intro_to_Biocluster_Spring_2022.pptx]
  
*11 Nodes
+
==Description==
*Dell R410 Servers
+
Biocluster is the High Performance Computing (HPC) resource for the Carl R Woese Institute for Genomic Biology (IGB) at the University of Illinois at Urbana-Champaign (UIUC). Containing 2824 cores and over 27.7 TB of RAM, Biocluster has a mix of various RAM and CPU configurations on nodes to best serve the various computation needs of the IGB and the Bioinformatics community at UIUC. For storage, Biocluster has 1.3 Petabytes of storage on its GPFS filesystem for reliable high speed data transfers within the cluster. Networking in Biocluster is either 1, 10 or 40 Gigibit ethernet depending on the class of node and its data transfer needs.
*8 2.6 GHz Intel CPUs per Node
 
*24 Gigabytes of RAM per Node
 
  
=== Cluster Status  ===
+
* The biocluster is not an authorized location to store '''HIPAA''' data.
 +
*'''If you need to update the CFOP associated with your account, please send an email with the new CFOP to help@igb.illinois.edu.'''
  
*[http://computation.igb.illinois.edu/ganglia/ Resources Status]
+
==Cluster Specifications==
*[http://computation.igb.illinois.edu/ganglia/addons/rocks/queue.php?c=computation%20cluster Job Queue]
 
*[http://computation.igb.illinois.edu/cluster_accounting Cluster Accounting] - View your cluster usage/charges
 
  
== Usage Cost  ==
+
{| border="1" class='wikitable' width="1200" cellspacing="1" cellpadding="0" align="center"
 +
|-
 +
!|Queue Name
 +
!|Nodes
 +
!|Cores (CPUs) per Node
 +
!|Memory
 +
!|Networking
 +
!|Scratch Space /scatch
 +
!|GPUs
 +
|-
 +
||normal (default)
 +
||5 Supermicro SYS-2049U-TR4
 +
||72 Intel Xeon Gold 6150 @2.7 GHz
 +
||1.2TB
 +
||40GB Ethernet
 +
||7TB SSD
 +
||
 +
|-
 +
||lowmem
 +
||8 Supermicro SYS-F618R2-RTN+
 +
||12 Intel Xeon E5-2603 v4 @ 1.70Ghz
 +
||64GB RAM
 +
||10GB Ethernet
 +
||192GB
 +
||
  
*The daily cost (24-hour period) of computing on this cluster is about $1.37 per day per cpu.
+
|-
 +
||gpu
 +
||1 Supermicro
 +
||28 Intel Xeon E5-2680 @ 2.4Ghz
 +
||256GB
 +
||1GB Ethernet
 +
||1TB SSD
 +
||4 NVIDIA GeForce GTX 1080 Ti
 +
|-
 +
||classroom
 +
||10 Dell Poweredge R620
 +
||24 Intel Xeon E5-2697 v2 @ 2.7Ghz
 +
||384GB
 +
||10GB Ethernet
 +
||750GB
 +
||
  
== How To Get Cluster Access  ==
+
|}
  
=== IGB Affliated  ===
+
== Storage ==
 +
=== Information ===
  
*If you are a member of IGB you may send an email to help@igb.uiuc.edu requesting access to the cluster and CFOP account to charge cluster use to.  
+
* The storage system is a GPFS filesystem with 1.3 Petabytes of total disk space with 2 copies of the data. This data is '''NOT''' backed up.
*You must also request your professor or theme leader to e-mail us at help@igb.uiuc.edu approving your access, unless you are a fellow.
+
* The data is spread across 8 GPFS storage nodes.
  
=== Non-IGB Affliated ===
+
===Cost===
 +
On April 1, 2021, CNRG was informed by campus that we were required to start billing external users paying with a credit card an external rate.  This rate was given to us by campus and is obtained by adding the 31.7% F&A rate and adding the standard 2.3% credit card fee. This external rate is only charged to users paying with a credit card.
 +
{| border="1" class='wikitable' width="600" cellspacing="1" cellpadding="0" align="center"
 +
|-
 +
!|Internal Cost (Per Terabyte Per Month)
 +
!|External Cost (Per Terabyte Per Month)
 +
|-
 +
||$8.75
 +
||$11.73
 +
|}
  
*You must have a note from someone affiliated with the IGB approving your use of the cluster.  
+
=== Calculate Usage (/home) ===
*Once you are authorized to use the cluster you may go to room 2626 IGB in order to sign up for an IGB account
+
* Each Month, you will receive a bill on your monthly usage.  We take a snapspot of usage daily.  Then we average out the 95 percentile of daily snapspots to get an average usage for the month.
*Bring the approval letter and a CFOP account to charge cluster use, to room 2626 and our staff will provide you with access.
+
* You can calculate your usage using the du command.  An example is below.  The result will be double what you are billed as their is 2 copies of the data.  Make sure to divide by 2.
 +
<pre>du -h /home/a-m/username</pre>
  
<br>  
+
== Calculate Usage (/private_stores) ==
 +
* These are private data storage nodes.  They do not get billed monthly.
 +
* The filesystems are XFS shared over NFS.
 +
* To calculate usage, use the du command
 +
<pre>du -h /private_stores/shared/directory</pre>
  
== Cluster Rules  ==
+
==Queue Costs==
 +
The cost for each job is dependent on which queue it is submitted to. Listed below are the different queues on the cluster with their cost.  Although the service is billed by the second, the rates below are what it would cost per day to use a resource, so that it would be more easily understood.  For standard computation, the CPU cost and the memory cost are compared and the highest is billed.  For GPU bills the cost of the CPU or memory is added to that of the GPU.
  
*'''Running jobs on the head node are strictly prohibited.''' If you would like to start an interactive session to run a quick script or test code please use '''qlogin'''. (Running jobs on the head node could cause it to crash and kill everyone's jobs on the slaves)
+
Usage is charge by the second. The costs listed below are what it would cost per day. The CPU cost and memory cost are compared and the largest is what is billed.
*'''Adding Packages:''' Packages (rpms) requested to be added are normally reviewed for a short while, and then installed on the slave and/or head nodes. Please be sure to specify which type of node it is needed on. Requests should be sent to help@igb.uiuc.edu.
+
{| border="1" class='wikitable' width="1400" cellspacing="1" cellpadding="0" align="center"
*'''Creating or Moving over Programs:''' Programs you create or move to the cluster should be first tested by you outside the cluster for stability. Once you see your program is stable, it is safe to move them over for use in the SGE. Unstable programs that cause problems with the cluster can cause your account to be locked in rare situations.&nbsp; Programs should only be added by CNRG personnell and not compiled in your home directory.<br>
+
|-
*'''Slots and Process Forking:''' For each process you create in a program you run through the SGE, you must reserve a slot in the SGE. Normally this is done automatically (one slot for the one process you are submitting), but if you are spawning (also called forking) other processes from that process you submitted, you must reserve one slot per process created. Normally this is done as a serial process rather than a parallel process. For example if you would like to reserve 8 or more processing slots for a qsub script called temp.sh you would execute the following command:
+
!|Queue Name
<pre>qsub -pe serial 8 temp.sh
+
!|CPU Cost
</pre>
+
!|External CPU Cost
If you are doing this serially and create (fork/spawn) more than 8 processes, you only need to request 8 processes at a time. Failure to comply with this policy will result in your account being locked.
+
!|Memory Cost
 +
!|External Memory Cost
 +
!|GPU Cost
 +
!|External GPU Cost
  
== How To Log Into The Cluster  ==
+
|-
 +
||normal (default)
 +
||$1.19
 +
||$1.59
 +
||$0.08
 +
||$0.09
 +
||NA
 +
||NA
 +
|-
 +
||lowmem
 +
||$0.50
 +
||$0.67
 +
||$0.10
 +
||$0.13
 +
||NA
 +
||NA
  
*You will need to use an SSH client to connect.
+
|-
 +
||GPU
 +
||$2.00
 +
||$2.68
 +
||$0.44
 +
||$0.59
 +
||$2.00
 +
||$2.68
 +
|}
 +
On April 1, 2021, CNRG was informed by campus that we were required to start billing external users paying with a credit card an external rate. This rate was given to us by campus and is obtained by adding the 31.7% F&A rate and adding the standard 2.3% credit card fee. This external rate is only charged to users paying with a credit card.
  
=== On Windows  ===
+
==Gaining Access==
  
*You can download Putty from [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html]  
+
* Please fill out the form at [http://www.igb.illinois.edu/content/biocluster-account-form http://www.igb.illinois.edu/content/biocluster-account-form] to request access to the Biocluster.
*Install Putty and run it, in the Host Name input box enter '''computation.igb.illinois.edu'''
 
  
[[Image:PuttyComputation.jpg]]
+
==Cluster Rules==
  
*Hit Open and login using your IGB account credentials.
+
* '''Running jobs on the head node or login nodes are strictly prohibited.''' Running jobs on the head node could cause the entire cluster to crash and affect everyone's jobs on the cluster. Any program found to be running on the headnode will be stopped immediately and your account could be locked. You can start an interactive session to login to a node to manual run programs.
 +
* '''Installing Software''' Please email help@igb.illinois.edu for any software requests. Compiled software will be installed in /home/apps. If its a standard RedHat package (rpm), it will be installed in their default locations on the nodes.
 +
* '''Creating or Moving over Programs:''' Programs you create or move to the cluster should be first tested by you outside the cluster for stability. Once your program is stable, then it can be moved over to the cluster for use. Unstable programs that cause problems with the cluster can result in your account being locked. Programs should only be added by CNRG personnel and not compiled in your home directory.
 +
* '''Reserving Memory:''' SLURM allows the user to specify the amount of memory they want their program to use.. If your job tries to use more memory than you have reserved, the job will run out of memory and die. Make sure to specify the correct amount of memory.
 +
* '''Reserving Nodes and Processors:''' For each job, you must reserve the correct number of nodes and processors. By default you are reserved 1 processor on 1 node. If you are running a multiple processor job or a MPI job you need to reserve the appropriate amount. If you do not reserve the correct amount, the cluster will confine your job to that limit, increasing its runtime.
  
=== On Mac OS X  ===
+
==How To Log Into The Cluster==
  
*Simply open the terminal under Go &gt;&gt; Utilities &gt;&gt; Terminal
+
* You will need to use an SSH client to connect.
*Type in '''ssh YourUserName@computation.igb.illinois.edu''' where YourUserName is your IGB user name (NetID).
+
*'''NOTICE''' The login hostname is '''biologin.igb.illinois.edu'''
*Hit the Enter key and type in your IGB password.
 
  
== How To Submit A Cluster Job  ==
+
===On Windows===
  
*The cluster runs a '''Sun Grid Engine '''(SGE) queuing and resource mangement program.
+
* You can download Putty from [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html]
*All jobs are submitted to the SGE which distributes them automatically to the Nodes.
+
* Install Putty and run it, in the Host Name input box enter '''biologin.igb.illinois.edu'''
  
=== Create a Job Script  ===
 
  
*You must first create an SGE job script file in order to tell the SGE how and what to execute on the nodes.  
+
[[File:PUTTYbiologin.PNG|400px]]
*This example demonstrates script creation using the vi text editor.
+
 
*First we need to create a file for the script
+
* Hit Open and login using your IGB account credentials.
*In the command line type '''vi test.sh'''  
+
 
*Now click '''i''' in order to enable text insertion.
+
===On Mac OS X===
*Type this example bash script into vi
+
 
 +
* Simply open the terminal under Go >> Utilities >> Terminal
 +
* Type in '''ssh username@biologin.igb.illinois.edu''' where username is your NetID.
 +
* Hit the Enter key and type in your IGB password.
 +
 
 +
==How To Submit A Cluster Job==
 +
 
 +
* The cluster runs the '''SLURM ''' queuing and resource mangement program.
 +
* All jobs are submitted to SLURM which distributes them automatically to the Nodes.
 +
* You can find all of the parameters that SLURM uses at [https://slurm.schedmd.com/quickstart.html https://slurm.schedmd.com/quickstart.html]
 +
* You can use our SLURM Generation Utility to help you learn to generate job scripts [http://www-app.igb.illinois.edu/tools/slurm/ http://www-app.igb.illinois.edu/tools/slurm/]
 +
 
 +
===Create a Job Script===
 +
 
 +
* You must first create a SLURM job script file in order to tell SLURM how and what to execute on the nodes.
 +
* Type the following into a text editor and save the file '''test.sh''' ( [[Linux text editing]] )
 +
 
 
<pre>#!/bin/bash
 
<pre>#!/bin/bash
#$ -j y
+
#SBATCH -p normal
#$ -S /bin/bash
+
#SBATCH --mem=1g
 +
#SBATCH -N 1
 +
#SBATCH -n 1
  
 
sleep 20
 
sleep 20
echo "Starting Blast Job"  
+
echo "Test Script"  
</pre>  
+
</pre>
*Click '''Esc''' to stop inserting text, type ''':w''' and click Enter to save the file.
+
* You just created a simple SLURM Job Script.
*Type ''':q''' and click Enter to quit vi.
+
* To submit the script to the cluster, you will use the sbatch command.
*You just created a simple SGE Job Script.  
+
 
*The first line tells linux this is a bash program ('''#!/bin/bash''') and it should use a bash interpreter to execute it.  
+
<pre>sbatch test.sh</pre>
*All lines with '''#$''' are SGE parameters, for explanations of these please scroll down to SGE Parameters Explanations section.  
+
* Line by line explanation
*The last three lines are simple linux commands that will execute on the node in consecutive order.
+
** '''#!/bin/bash''' - tells linux this is a bash program and it should use a bash interpreter to execute it.
*First '''sleep 20''' tells linux to sleep the bash script for 20 seconds.
+
** '''#SBATCH''' - are SLURM parameters, for explanations of these please scroll down to SLURM Parameters Explanations section.
*Then '''echo "Starting Blast Job"''' will print to the output stream file '''Starting Blast Job'''.
+
** '''sleep 20''' - Sleep 20 seconds (only used to simulate processing time for this example)
*If you would like to run a blast job for example you may add this line at the end of the file.
+
** '''echo "Test Script"''' - Output some text to the screen when job completes ( simulate output for this example)
<pre>/opt/Bio/ncbi/bin/blastall -p blastn -d nt -i input.fasta -e 10 -o output.result -v 10 -b 5 -a 5
+
* For example if you would like to run a blast job you may simply replace the last two line with the following
</pre>  
+
 
==== SGE Parameters Explanations: ====
+
<pre>module load BLAST
 +
blastall -p blastn -d nt -i input.fasta -e 10 -o output.result -v 10 -b 5 -a 5
 +
</pre>
 +
* Note: the module commands are explained under the '''Environment Modules''' section.
 +
 
 +
====SLURM Parameters Explanations:====
 +
 
 +
* To view all possible parameters
 +
** Run '''man sbatch''' at the command line
 +
** Go to [https://slurm.schedmd.com/sbatch.html https://slurm.schedmd.com/sbatch.html] to view the man page online
 +
 
 +
{| border="1" class='wikitable'
 +
|-
 +
!|Command
 +
!|Description
 +
|-
 +
||#SBATCH -p PARTITION
 +
||Run the job on a specific queue/partition. This defaults to the "normal" queue
 +
|-
 +
||#SBATCH -D /tmp/working_dir
 +
||Run the script from the /tmp/working_dir directory. This defaults to the current directory you are in.
 +
|-
 +
||#SBATCH -J ExampleJobName
 +
||Name of the job will be ExampleJobName
 +
|-
 +
||#SBATCH -e /path/to/errorfile
 +
||Split off the error stream to this file. By default output and error streams are placed in the same file.
 +
|-
 +
||#SBATCH -o /path/to/ouputfile
 +
||Split off the output stream to this file. By default output and error streams are placed in the same file.
 +
|-
 +
||#SBATCH --mail-user username@illinois.edu
 +
||Send an e-mail to specified email to receive job information.
 +
|-
 +
||#SBATCH --mail-type BEGIN, END, FAIL
 +
||Specifies when to send a message to email. You can select multiple of these with a comma separated list. Many other options exist.
 +
|-
 +
||#SBATCH -N X
 +
||Reserve X number of nodes.
 +
|-
 +
||#SBATCH -n X
 +
||Reserve X number of cpus.
 +
|-
 +
||#SBATCH --mem=XG
 +
||Reserve X gigabytes of RAM for the job.
 +
|-
 +
||#SBATCH --gres=gpu:X
 +
||Reserve X NVIDIA GPUs. (Only on GPU queues)
 +
|}
 +
 
 +
===Create a Job Array Script===
 +
Making a new copy of the script and then submitting each one for every input data file is time consuming. An alternative is to make a job array using the '''#SBATCH --array''' option in your job script. The '''#SBATCH --array''' option allows many copies of the same script to be queued all at once. You can use the '''$SLURM_ARRAY_TASK_ID''' to differentiate between the different jobs in the array. A detailed example on how to do this is available at [[Job Arrays]]
 +
 
 +
===Start An Interactive Session ===
 +
 
 +
* Use the '''srun''' commsnf if you would like to run a job interactively.
 +
 
 +
<pre>srun --pty /bin/bash
 +
</pre>
 +
* This will automatically reserve you a slot on one of the compute nodes and will start a terminal session on it.
 +
* Closing your terminal window will also kill your processes running in your interactive srun session, therefore it's better to submit large jobs via non-interactive sbatch.
 +
 
 +
=== X11 Graphical Applications ===
 +
* To run an application with a user interface you will need to setup an Xserver on your computer [[Xserver Setup]]
 +
*Then add the '''--x11''' parameter to your srun command
 +
<pre>
 +
srun --x11 --pty /bin/bash
 +
</pre>
 +
 
 +
==View/Delete Submitted Jobs==
 +
===Viewing Job Status===
 +
 
 +
* To get a simple view of your current running jobs you may type:
 +
 
 +
<pre>squeue -u userid
 +
</pre>
 +
* This command brings up a list of your current running jobs.
 +
* The first number represents the job's ID number.
 +
* Jobs may have different status flags:
 +
** '''R''' = job is currently running
 +
 
 +
 
 +
* For more detailed view type:
 +
 
 +
<pre>squeue -l</pre>
 +
* This will return a list of all nodes, their slot availability, and your current jobs.
 +
 
 +
===List Queues===
 +
 
 +
* Simple view
 +
 
 +
<pre>sinfo</pre>This will show all queues as well as which nodes in those queues are fully used (alloc), partially used (mix), unused (idle), or unavailable (down).
 +
 
 +
 
 +
===List All Jobs on Cluster With Nodes===
 +
<pre>squeue</pre>
 +
===Deleting Jobs===
 +
 
 +
* Note: You can only delete jobs which are owned by you.
 +
* To delete a job by job-ID number:
 +
* You will need to use '''scancel''', for example to delete a job with ID number 5523 you would type:
 +
 
 +
<pre>scancel 5523
 +
</pre>
 +
* Delete all of your jobs
 +
 
 +
<pre>scancel -u userid
 +
</pre>
 +
===Troubleshooting job errors===
 +
 
 +
* To view job errors in case job status shows
 +
 
 +
<pre>scontrol show job 23451
 +
</pre>
 +
 
 +
==Applications==
 +
===Application Lists===
 +
 
 +
* View a list of installed applications at [[Biocluster Applications]]
 +
* List of currently installed applications from the commmand line, run '''module avail'''
  
*These are just a few parameter options, for more type '''man qsub''' while logged into the cluster.
+
===Application Installation===
*'''#$ -cwd''' tells SGE to run the script from the current directory.&nbsp; This defaults to your home directory (/share/home/username). This could be problematic if the path on the head node is different than the path on the slave node.
 
*'''#$ -j y''' parameter tells SGE to join the errors and output streams together into one file. This file will be created in the directory described by '''#$ -cwd''' and will be named in this case '''test.sh.o'''# where # is the job number assigned by the SGE.
 
*'''#$ -S /bin/bash''' parameter tells the SGE that the program will be using bash for its interpreter. Required.
 
*'''#$ -N testJob3''' parameter tells the SGE to name the job testJob3.
 
*'''#$ -M username@igb.illlinois.edu''' parameter tells the SGE to send an e-mail to username@igb.illinois.edu when the job is done.
 
*'''#$ -m abe''' parameter tells the SGE to send an e-mail to the e-mail defined using the above -M parameter when a job is aborted,begins or ends.
 
*'''#$ -pe serial 5''' parameter tells the SGE to reserve 5 processors on a node for this job. This is only allowed if your program can actually use multiple processors natively, otherwise this is considered '''cluster abuse''' (In the example script test.sh, blastall has the parameter '''-a 5''' which tells blast to run using 5 processors in this case telling SGE to reserve 5 processors is justified!)
 
*'''#$ -l h_data=1024M''' parameter tells the SGE to reserve 1024 Megabytes of RAM per core for this job.'
 
*'''#$ -q all.q@compute-0-5.local''' parameter tells the SGE to run the job on compute node compute-0-5.
 
*'''#$ -v PYTHONPATH=/opt/rocks/lib/python2.4/site-packages''' parameter tells SGE to set the PYTHONPATH environmental variable to /opt/rocks/lib/python2.4 for this job, this will work for any environmental variable not just PYTHONPATH<br>[http://gridengine.sunsource.net/nonav/source/browse/~checkout~/gridengine/doc/htmlman/htmlman1/qsub.html]
 
  
=== Submit Serial Job ===
+
* Please email '''help@igb.illinois.edu''' to request new application or version upgrades
 +
* The Biocluster uses EasyBuild to build and install software. You can read more about EasyBuild at [https://github.com/easybuilders/easybuild https://github.com/easybuilders/easybuild]
 +
* The Biocluster EasyBuild scripts are located at [https://github.com/IGB-UIUC/easybuild https://github.com/IGB-UIUC/easybuild]
  
*To submit the serial job you will use the '''qsub''' program. For example to submit test.sh SGE Job you would type:
+
===Environment Modules===
<pre>qsub test.sh
+
* The Biocluster uses the Lmod modules package to manage the software that is installed.  You can read more about Lmod at [https://lmod.readthedocs.io/en/latest/ https://lmod.readthedocs.io/en/latest/]
</pre>
+
* To use an application, you need to use the '''module''' command to load the settings for an application
*You may also define the SGE parameters from the section above as qsub parameters instead of defining them in the script file. Example:
+
* To load a particular environment for example QIIME/1.9.1, simply run this command:
<pre>qsub -j y -S /bin/bash test.sh
 
</pre>
 
=== Submit Parallel Job  ===
 
  
*To submit the parallel job you will use the '''qsub''' program.
+
<pre>module load QIIME/1.9.1
*For more information please refer to this page [http://computation.igb.uiuc.edu/roll-documentation/sge/5.2/submitting-batch-jobs.html SGE Submitting Jobs]
+
</pre>
*To distribute the jobs evenly across the reserved nodes you will have to to use '''orte_rr''' instead of the '''orte''' parallel environment. This will distribute the MPI jobs to each node in round robin order. While the default '''orte''' will make sure to fill all slots on the node before moving to the next one.
+
* If you would like to simply load the latest version, run the the command without the /1.9.1 (version number):
  
=== Start An Interactive Login Session On A Compute Node  ===
+
<pre>module load QIIME
 +
</pre>
 +
* To view which environments you have loaded simply run '''module list''':
  
*Use '''qlogin''' if you would like to run a job interactively such as running a quick perl script or run a quick test interactively on your data.
+
<pre>bash-4.1$ module list
<pre>qlogin
+
Currently Loaded Modules:
</pre>  
+
  1) BLAST/2.2.26-Linux_x86_64  2) QIIME/1.9.1
*This will automatically reserve you a slot on one of the compute nodes and will start a terminal session on it.
+
</pre>
*Closing your terminal window will also kill your processes running in your '''qlogin''' session, therefor it's better to submit large jobs via '''qsub'''.
+
* When submitting a job using a sbatch script you will have to add the '''module load qiime/1.5.0''' line before running qiime in the script.
 +
* To unload a module simply run '''module unload''':
  
== View/Delete Submitted Jobs  ==
+
<pre>module unload QIIME
 +
</pre>
 +
* Unload all modules
  
=== Viewing Job Status  ===
+
<pre>module purge
 +
</pre>
  
*To get a simple view of your current running jobs you may type:
+
=== Containers ===
<pre>qstat
+
*The Biocluster cluster supports Singularity to run containers.
</pre>
+
*The guide on how to use them is at [[Biocluster Singularity]]
*This command brings up a list of your current running jobs.  
 
*The first number represents the job's ID number.
 
*Jobs may have different status flags:
 
**'''r''' = job is currently running
 
**'''qw''' = job is waiting to be submitted (this may take a few seconds even when there are slots available so be patient)
 
**'''Eqw''' = There was an error running the job.
 
  
*For more detailed view type:
+
=== R Packages ===
<pre> qstat -f </pre>  
+
*We have a local mirror of the [https://cran.r-project.org/ CRAN] and [https://www.bioconductor.org/ Bioconductor].  This allows you to install packages through an interactive session into your home folder.
*This will return a list of all nodes, their slot availability, and your current jobs.
+
*To install a package, run an interactive session
 +
<pre>
 +
srun --pty /bin/bash
 +
</pre>
 +
*Load the R module
 +
<pre>
 +
module load R/4.2.2-IGB-gcc-8.2.0
 +
</pre>
 +
*Run R
 +
<pre>
 +
R
 +
</pre>
 +
*For CRAN packages, run install.packages()
 +
<pre>
 +
install.packages('shape');
 +
</pre>
 +
*For Bioconductor packages, the BiocManager package is already installed.  You just need to run BiocManager::install to install a package
 +
<pre>
 +
BiocManager::install('dada2')
 +
</pre>
 +
*If the package requires an external dependencies, you should email us to get it install centrally.
 +
=== Python Packages ===
 +
* Most python packages in pypi, [https://pypi.org/ https://pypi.org/], are now precompiled.
 +
* If the package is in pypi, from the biologin nodes, module load the Python version you want to use
 +
<pre>
 +
module load Python/3.10.1-IGB-gcc-8.2.0
 +
</pre>
 +
* Then run pip install to install the package
 +
<pre>
 +
pip install package_name
 +
</pre>
 +
* This might not work if it needs to compile the package or it needs to compile dependency packages.  If that is the case, then email [mailto::help@igb.illinois.edu help@igb.illinois.edu] and we can get it installed.
 +
=== Jupyter ===
 +
* The biocluster has jupyterhub installed to allow you to run juypter notebooks at https://bioapps3.igb.illinois.edu/jupyter
 +
* We have a guide on how to setup custom jupyter conda environments at [[Biocluster Jupyter]]
  
=== Deleting Jobs  ===
+
=== Alphafold ===
 +
* The biocluster has Alphafold installed.  There is specific instructions that need to be follow to run it on the biocluster.  The guide is at [[Biocluster Alphafold]]
  
*Note: You can only delete jobs which are owned by you.
+
== Mirror Service - Genomic Databases ==
*To delete a job by job-ID number:  
+
* Biocluster provides mirrors of public accessible genomic databases
*You will need to use '''qdel''', for example to delete a job with ID number 5523 you would type:
+
* If a database is not installed and it is publicly accessible, email [mailto::help@igb.illinois.edu help@igb.illinois.edu] and we can get it installed.
<pre>qdel 5523
+
* If it is private database, then it must be placed in your home folder or a private group or lab folder.
</pre>
+
* A list of databases is a located at [[Biocluster Mirrors]]
*To delete all jobs made by a user, for example by the user name joe12 type:
 
<pre>qdel -u joe12
 
</pre>
 
=== Troubleshooting job errors  ===
 
  
*To view job errors in case job status shows '''Eqw''' or any other error in the status column use '''qstat -j''', for example if job # 23451 failed you would type:
+
==Transferring data files==
<pre>qstat -j 23451
+
===Transferring using SFTP/SCP===
</pre>
+
====Using WinSCP====
== Installed Applications  ==
+
*Download WinSCP installation package from http://winscp.net/eng/download.php#download2 and install it.
 +
*Once installed Run WinSCP >> enter biologin.igb.illinois.edu for the Host name >> Enter your IGB user name and password and click Login
 +
[[File:Bioclustertransfer.png|400px]]
 +
*Once you hit "Login, you should be connected to your Biocluster home folder, as shown below.
 +
[[File:Bioclustertransfer2.png|400px]]
 +
*From here you should be able to download or transfer your files.
  
*To list available applications while logged into the head node you may run:
+
====Using CyberDuck====
<pre>ls /share/apps/
 
</pre>
 
*The applications path on the compute nodes is also:
 
<pre>/share/apps/
 
</pre>
 
*'''Notice:''' As mentioned in the rules you may '''not''' run these applications on the head node (for more details please see rules at the top of the page).
 
  
== Compute node paths  ==
+
*To download cyberduck go to [http://cyberduck.ch http://cyberduck.c] and click on the large Zip icon to download.
 +
*Once cyberduck is installed on OSX you may start the program.
 +
*Click on '''Open Connection.'''
 +
*From the drop down menu at the top of the opopup window select '''SFTP(SSH File Transfer Protocol)'''
 +
[[File:Cyberduck screenshot sftp.png|400px]]
  
*Installed programs folder path:
+
*Now in the '''Server:''' input box enter '''biologin.igb.illinois.edu''' and for Username and password enter your IGB credentials.
<pre>/share/apps/
 
</pre>
 
*Add java binary path to qsub script:
 
<pre>export PATH=$PATH:/usr/java/latest/bin
 
</pre>
 
*Add Python 2.4 modules path to qsub script:
 
<pre>export PYTHONPATH=$PYTHONPATH:/opt/rocks/lib/python2.4/site-packages
 
</pre>
 
*NCBI blast binary path:
 
<pre>/opt/Bio/ncbi/bin/blastall
 
</pre>
 
== Transferring data files  ==
 
  
=== Transferring from personal machine  ===
+
[[File:Cyberduckbiologin.png|400px]]
  
*In order to transfer files to the cluster from a personal Desktop/Laptop you may use [[File Server Access|WinSCP]] the same way you would use it to transfer files to the [[File Server Access|File Server]].
+
*Click '''Connect.'''
 +
*You may now download or transfer your files.
 +
*'''NOTICE:'''  Cyberduck by default wants to open multiple connections for transferring files.  The biocluster firewall limits you to 4 connections a minute.  This can cause transfers to timeout.  You can change Cyberduck to only use 1 connection by going to '''Preferences->Transfers->Transfer Files'''.  Select '''Open Single Connection'''.
  
=== Transferring from file server (Very Fast)  ===
+
===Transferring using Globus===
  
*To transfer files to the cluster form the file-server you will need to first setup Xserver on your machine. Please follow this guide to do so [[Xserver Setup]].  
+
* The biocluster has a Globus endpoint setup. The '''Collection Name''' is  '''biocluster.igb.illinois.edu'''
*Once Xserver is setup on your personal machine you will need to SSH into the cluster using putty as mentioned above.  
+
* Globus allows the transferring of very large files reliably.
*Then start gFTP by typing in the terminal:
+
* A guide on how to use Globus is [[Globus|here]]
<pre>gftp
 
</pre>
 
*This will launch a graphical interface for gFTP on your computer, it should look like this
 
  
[[Image:Gftp ui.png]]
+
===Core-Server===
  
*Enter the following into the gFTP user interface:
+
*The core-server is mounted on the biologin nodes at /private_stores/core-server.
**Host: '''file-server.igb.uiuc.edu'''
+
*It is read-only; meaning you can only transfer data from the core-server to Biocluster. You cannot transfer any data from Biocluster to the core-server.
**Port: leave this box blank
 
**User: Your IGB '''username'''
 
**Pass: Your IGB '''password'''
 
**Select '''SSH2''' from the drop down menu
 
*Hit enter and you should now be connected to the file-server from the cluster.  
 
*You may now select files and folders from your home directories and click the arrows pointing in each direction to transfer files both ways.
 
*Please move files back to the file-server or your personal machine once you are done working with them on the cluster in order to allow others to use the space on the cluster for their jobs.
 
*Note: You may also use the standard command line tool "sftp" to transfer files if you do not want to use gFTP.
 
  
== Disk Usage  ==
+
== References ==
  
*Currently there are no disk usage specifications.  
+
* OpenHPC [https://openhpc.community/ https://openhpc.community/]
*If there is a special interest or recommendations please let us know at help@igb.illinois.edu
+
* SLURM Job Scheduler Documentation - [https://slurm.schedmd.com/ https://slurm.schedmd.com/]
 +
* Rosetta Stone of Schedulers - [https://slurm.schedmd.com/rosetta.pdf https://slurm.schedmd.com/rosetta.pdf]
 +
* SLURM Quick Refernece - [https://slurm.schedmd.com/pdfs/summary.pdf https://slurm.schedmd.com/pdfs/summary.pdf]
 +
* GPFS Filesystem [https://en.wikipedia.org/wiki/IBM_Spectrum_Scale https://en.wikipedia.org/wiki/IBM_Spectrum_Scale]
 +
* Lmod Module Homepage - [https://www.tacc.utexas.edu/research-development/tacc-projects/lmod https://www.tacc.utexas.edu/research-development/tacc-projects/lmod]
 +
* Lmod Documentation - [https://lmod.readthedocs.io/en/latest/ https://lmod.readthedocs.io/en/latest/]

Latest revision as of 17:22, 6 December 2023

Quick Links[edit]

Description[edit]

Biocluster is the High Performance Computing (HPC) resource for the Carl R Woese Institute for Genomic Biology (IGB) at the University of Illinois at Urbana-Champaign (UIUC). Containing 2824 cores and over 27.7 TB of RAM, Biocluster has a mix of various RAM and CPU configurations on nodes to best serve the various computation needs of the IGB and the Bioinformatics community at UIUC. For storage, Biocluster has 1.3 Petabytes of storage on its GPFS filesystem for reliable high speed data transfers within the cluster. Networking in Biocluster is either 1, 10 or 40 Gigibit ethernet depending on the class of node and its data transfer needs.

  • The biocluster is not an authorized location to store HIPAA data.
  • If you need to update the CFOP associated with your account, please send an email with the new CFOP to help@igb.illinois.edu.

Cluster Specifications[edit]

Queue Name Nodes Cores (CPUs) per Node Memory Networking Scratch Space /scatch GPUs
normal (default) 5 Supermicro SYS-2049U-TR4 72 Intel Xeon Gold 6150 @2.7 GHz 1.2TB 40GB Ethernet 7TB SSD
lowmem 8 Supermicro SYS-F618R2-RTN+ 12 Intel Xeon E5-2603 v4 @ 1.70Ghz 64GB RAM 10GB Ethernet 192GB
gpu 1 Supermicro 28 Intel Xeon E5-2680 @ 2.4Ghz 256GB 1GB Ethernet 1TB SSD 4 NVIDIA GeForce GTX 1080 Ti
classroom 10 Dell Poweredge R620 24 Intel Xeon E5-2697 v2 @ 2.7Ghz 384GB 10GB Ethernet 750GB

Storage[edit]

Information[edit]

  • The storage system is a GPFS filesystem with 1.3 Petabytes of total disk space with 2 copies of the data. This data is NOT backed up.
  • The data is spread across 8 GPFS storage nodes.

Cost[edit]

On April 1, 2021, CNRG was informed by campus that we were required to start billing external users paying with a credit card an external rate. This rate was given to us by campus and is obtained by adding the 31.7% F&A rate and adding the standard 2.3% credit card fee. This external rate is only charged to users paying with a credit card.

Internal Cost (Per Terabyte Per Month) External Cost (Per Terabyte Per Month)
$8.75 $11.73

Calculate Usage (/home)[edit]

  • Each Month, you will receive a bill on your monthly usage. We take a snapspot of usage daily. Then we average out the 95 percentile of daily snapspots to get an average usage for the month.
  • You can calculate your usage using the du command. An example is below. The result will be double what you are billed as their is 2 copies of the data. Make sure to divide by 2.
du -h /home/a-m/username

Calculate Usage (/private_stores)[edit]

  • These are private data storage nodes. They do not get billed monthly.
  • The filesystems are XFS shared over NFS.
  • To calculate usage, use the du command
du -h /private_stores/shared/directory

Queue Costs[edit]

The cost for each job is dependent on which queue it is submitted to. Listed below are the different queues on the cluster with their cost. Although the service is billed by the second, the rates below are what it would cost per day to use a resource, so that it would be more easily understood. For standard computation, the CPU cost and the memory cost are compared and the highest is billed. For GPU bills the cost of the CPU or memory is added to that of the GPU.

Usage is charge by the second. The costs listed below are what it would cost per day. The CPU cost and memory cost are compared and the largest is what is billed.

Queue Name CPU Cost External CPU Cost Memory Cost External Memory Cost GPU Cost External GPU Cost
normal (default) $1.19 $1.59 $0.08 $0.09 NA NA
lowmem $0.50 $0.67 $0.10 $0.13 NA NA
GPU $2.00 $2.68 $0.44 $0.59 $2.00 $2.68

On April 1, 2021, CNRG was informed by campus that we were required to start billing external users paying with a credit card an external rate. This rate was given to us by campus and is obtained by adding the 31.7% F&A rate and adding the standard 2.3% credit card fee. This external rate is only charged to users paying with a credit card.

Gaining Access[edit]

Cluster Rules[edit]

  • Running jobs on the head node or login nodes are strictly prohibited. Running jobs on the head node could cause the entire cluster to crash and affect everyone's jobs on the cluster. Any program found to be running on the headnode will be stopped immediately and your account could be locked. You can start an interactive session to login to a node to manual run programs.
  • Installing Software Please email help@igb.illinois.edu for any software requests. Compiled software will be installed in /home/apps. If its a standard RedHat package (rpm), it will be installed in their default locations on the nodes.
  • Creating or Moving over Programs: Programs you create or move to the cluster should be first tested by you outside the cluster for stability. Once your program is stable, then it can be moved over to the cluster for use. Unstable programs that cause problems with the cluster can result in your account being locked. Programs should only be added by CNRG personnel and not compiled in your home directory.
  • Reserving Memory: SLURM allows the user to specify the amount of memory they want their program to use.. If your job tries to use more memory than you have reserved, the job will run out of memory and die. Make sure to specify the correct amount of memory.
  • Reserving Nodes and Processors: For each job, you must reserve the correct number of nodes and processors. By default you are reserved 1 processor on 1 node. If you are running a multiple processor job or a MPI job you need to reserve the appropriate amount. If you do not reserve the correct amount, the cluster will confine your job to that limit, increasing its runtime.

How To Log Into The Cluster[edit]

  • You will need to use an SSH client to connect.
  • NOTICE The login hostname is biologin.igb.illinois.edu

On Windows[edit]


PUTTYbiologin.PNG

  • Hit Open and login using your IGB account credentials.

On Mac OS X[edit]

  • Simply open the terminal under Go >> Utilities >> Terminal
  • Type in ssh username@biologin.igb.illinois.edu where username is your NetID.
  • Hit the Enter key and type in your IGB password.

How To Submit A Cluster Job[edit]

Create a Job Script[edit]

  • You must first create a SLURM job script file in order to tell SLURM how and what to execute on the nodes.
  • Type the following into a text editor and save the file test.sh ( Linux text editing )
#!/bin/bash
#SBATCH -p normal
#SBATCH --mem=1g
#SBATCH -N 1
#SBATCH -n 1

sleep 20
echo "Test Script" 
  • You just created a simple SLURM Job Script.
  • To submit the script to the cluster, you will use the sbatch command.
sbatch test.sh
  • Line by line explanation
    • #!/bin/bash - tells linux this is a bash program and it should use a bash interpreter to execute it.
    • #SBATCH - are SLURM parameters, for explanations of these please scroll down to SLURM Parameters Explanations section.
    • sleep 20 - Sleep 20 seconds (only used to simulate processing time for this example)
    • echo "Test Script" - Output some text to the screen when job completes ( simulate output for this example)
  • For example if you would like to run a blast job you may simply replace the last two line with the following
module load BLAST
blastall -p blastn -d nt -i input.fasta -e 10 -o output.result -v 10 -b 5 -a 5
  • Note: the module commands are explained under the Environment Modules section.

SLURM Parameters Explanations:[edit]

Command Description
#SBATCH -p PARTITION Run the job on a specific queue/partition. This defaults to the "normal" queue
#SBATCH -D /tmp/working_dir Run the script from the /tmp/working_dir directory. This defaults to the current directory you are in.
#SBATCH -J ExampleJobName Name of the job will be ExampleJobName
#SBATCH -e /path/to/errorfile Split off the error stream to this file. By default output and error streams are placed in the same file.
#SBATCH -o /path/to/ouputfile Split off the output stream to this file. By default output and error streams are placed in the same file.
#SBATCH --mail-user username@illinois.edu Send an e-mail to specified email to receive job information.
#SBATCH --mail-type BEGIN, END, FAIL Specifies when to send a message to email. You can select multiple of these with a comma separated list. Many other options exist.
#SBATCH -N X Reserve X number of nodes.
#SBATCH -n X Reserve X number of cpus.
#SBATCH --mem=XG Reserve X gigabytes of RAM for the job.
#SBATCH --gres=gpu:X Reserve X NVIDIA GPUs. (Only on GPU queues)

Create a Job Array Script[edit]

Making a new copy of the script and then submitting each one for every input data file is time consuming. An alternative is to make a job array using the #SBATCH --array option in your job script. The #SBATCH --array option allows many copies of the same script to be queued all at once. You can use the $SLURM_ARRAY_TASK_ID to differentiate between the different jobs in the array. A detailed example on how to do this is available at Job Arrays

Start An Interactive Session[edit]

  • Use the srun commsnf if you would like to run a job interactively.
srun --pty /bin/bash
  • This will automatically reserve you a slot on one of the compute nodes and will start a terminal session on it.
  • Closing your terminal window will also kill your processes running in your interactive srun session, therefore it's better to submit large jobs via non-interactive sbatch.

X11 Graphical Applications[edit]

  • To run an application with a user interface you will need to setup an Xserver on your computer Xserver Setup
  • Then add the --x11 parameter to your srun command
srun --x11 --pty /bin/bash

View/Delete Submitted Jobs[edit]

Viewing Job Status[edit]

  • To get a simple view of your current running jobs you may type:
squeue -u userid
  • This command brings up a list of your current running jobs.
  • The first number represents the job's ID number.
  • Jobs may have different status flags:
    • R = job is currently running


  • For more detailed view type:
squeue -l
  • This will return a list of all nodes, their slot availability, and your current jobs.

List Queues[edit]

  • Simple view
sinfo

This will show all queues as well as which nodes in those queues are fully used (alloc), partially used (mix), unused (idle), or unavailable (down).


List All Jobs on Cluster With Nodes[edit]

squeue

Deleting Jobs[edit]

  • Note: You can only delete jobs which are owned by you.
  • To delete a job by job-ID number:
  • You will need to use scancel, for example to delete a job with ID number 5523 you would type:
scancel 5523
  • Delete all of your jobs
scancel -u userid

Troubleshooting job errors[edit]

  • To view job errors in case job status shows
scontrol show job 23451

Applications[edit]

Application Lists[edit]

  • View a list of installed applications at Biocluster Applications
  • List of currently installed applications from the commmand line, run module avail

Application Installation[edit]

Environment Modules[edit]

  • The Biocluster uses the Lmod modules package to manage the software that is installed. You can read more about Lmod at https://lmod.readthedocs.io/en/latest/
  • To use an application, you need to use the module command to load the settings for an application
  • To load a particular environment for example QIIME/1.9.1, simply run this command:
module load QIIME/1.9.1
  • If you would like to simply load the latest version, run the the command without the /1.9.1 (version number):
module load QIIME
  • To view which environments you have loaded simply run module list:
bash-4.1$ module list
Currently Loaded Modules:
  1) BLAST/2.2.26-Linux_x86_64   2) QIIME/1.9.1
  • When submitting a job using a sbatch script you will have to add the module load qiime/1.5.0 line before running qiime in the script.
  • To unload a module simply run module unload:
module unload QIIME
  • Unload all modules
module purge

Containers[edit]

  • The Biocluster cluster supports Singularity to run containers.
  • The guide on how to use them is at Biocluster Singularity

R Packages[edit]

  • We have a local mirror of the CRAN and Bioconductor. This allows you to install packages through an interactive session into your home folder.
  • To install a package, run an interactive session
srun --pty /bin/bash
  • Load the R module
module load R/4.2.2-IGB-gcc-8.2.0
  • Run R
R
  • For CRAN packages, run install.packages()
install.packages('shape');
  • For Bioconductor packages, the BiocManager package is already installed. You just need to run BiocManager::install to install a package
BiocManager::install('dada2')
  • If the package requires an external dependencies, you should email us to get it install centrally.

Python Packages[edit]

  • Most python packages in pypi, https://pypi.org/, are now precompiled.
  • If the package is in pypi, from the biologin nodes, module load the Python version you want to use
module load Python/3.10.1-IGB-gcc-8.2.0
  • Then run pip install to install the package
pip install package_name
  • This might not work if it needs to compile the package or it needs to compile dependency packages. If that is the case, then email help@igb.illinois.edu and we can get it installed.

Jupyter[edit]

Alphafold[edit]

  • The biocluster has Alphafold installed. There is specific instructions that need to be follow to run it on the biocluster. The guide is at Biocluster Alphafold

Mirror Service - Genomic Databases[edit]

  • Biocluster provides mirrors of public accessible genomic databases
  • If a database is not installed and it is publicly accessible, email help@igb.illinois.edu and we can get it installed.
  • If it is private database, then it must be placed in your home folder or a private group or lab folder.
  • A list of databases is a located at Biocluster Mirrors

Transferring data files[edit]

Transferring using SFTP/SCP[edit]

Using WinSCP[edit]

  • Download WinSCP installation package from http://winscp.net/eng/download.php#download2 and install it.
  • Once installed Run WinSCP >> enter biologin.igb.illinois.edu for the Host name >> Enter your IGB user name and password and click Login

Bioclustertransfer.png

  • Once you hit "Login, you should be connected to your Biocluster home folder, as shown below.

Bioclustertransfer2.png

  • From here you should be able to download or transfer your files.

Using CyberDuck[edit]

  • To download cyberduck go to http://cyberduck.c and click on the large Zip icon to download.
  • Once cyberduck is installed on OSX you may start the program.
  • Click on Open Connection.
  • From the drop down menu at the top of the opopup window select SFTP(SSH File Transfer Protocol)

Cyberduck screenshot sftp.png

  • Now in the Server: input box enter biologin.igb.illinois.edu and for Username and password enter your IGB credentials.

Cyberduckbiologin.png

  • Click Connect.
  • You may now download or transfer your files.
  • NOTICE: Cyberduck by default wants to open multiple connections for transferring files. The biocluster firewall limits you to 4 connections a minute. This can cause transfers to timeout. You can change Cyberduck to only use 1 connection by going to Preferences->Transfers->Transfer Files. Select Open Single Connection.

Transferring using Globus[edit]

  • The biocluster has a Globus endpoint setup. The Collection Name is biocluster.igb.illinois.edu
  • Globus allows the transferring of very large files reliably.
  • A guide on how to use Globus is here

Core-Server[edit]

  • The core-server is mounted on the biologin nodes at /private_stores/core-server.
  • It is read-only; meaning you can only transfer data from the core-server to Biocluster. You cannot transfer any data from Biocluster to the core-server.

References[edit]