Biocluster2

From Carl R. Woese Institute for Genomic Biology - University of Illinois Urbana-Champaign
Revision as of 10:29, 7 July 2017 by Danield (talk | contribs) (SLURM Parameters Explanations:)
Jump to navigation Jump to search



Quick Links[edit]

Description[edit]

Biocluster is the High Performance Computing (HPC) resource for the Carl R Wose 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 2619 TB of storage on its Ceph filesystem for reliable high speed data transfers within the cluster.   Networking in Biocluster is either 1 or 10 Gigibit ethernet depending on the class of node and its data transfer needs.

Cluster Specifications[edit]

Default Queue and Highthroughput Queue

  • 20 Dell PowerEdge R620 Servers
    • 24 Intel Xeon E5-2697 @ 2.7GHz CPU Cores per node
    • 384 Gigabytes of RAM per Node

Hi Memory Queue

  • 2 Supermicro Servers
    • 28 Intel Xeon E5-2690 v4 @ 2.60GHz CPU Cores per node
    • 768 Gigabytes of RAM per Node

Large Memory Queue

  • 1 Node - Dell R910
    • 24 Intel Xeon E7540 @ 2.0GHz CPUs per node
    • 1024 Gigabytes (1TB) of RAM

Blacklight Queue

  • 4 SGI UV1000 Nodes
    • 384 Intel Xeon X7542 @ 2.67 CPUs per node
    • 2 TB of Ram per node

Budget Queue

  • 10 Dell Poweredge R410
    • 8 Intel Xeon E5530 @ 2.4Ghz CPU Cores per node
    • 32 or 48 Gigabytes of RAM per Node

Storage[edit]

Information[edit]

  • The storage system is a CEPH filesystem with 2.4 Petabytes of disk space. This data is NOT backed up.
  • The data is spread across 15 CEPH storage nodes.

Cost[edit]

Cost (Per Terabyte Per Month)
$10

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.

Usage is charge by the second.  The CPU cost and memory cost are compared and the largest is what is billed.

Queue Name CPU Cost ($ per CPU per day) Memory Cost ($ per GB per day)
default $1.00 $0.50
himemeory $2.00 $1.00
highthroughput $1.00 $0.50
largememory $8.50 $0.20
blacklight
$1.10 $0.25
budget
$0.50 $0.25

How To Get Biocluster[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.

On Windows[edit]

PuTTYbiocluster.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 TORQUE job script file in order to tell TORQUE 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 -c 1
#SBATCH --mem=1g
#SBATCH -N 1

sleep 20
echo "Test Script" 
  • Change the permissions on the script to allow execution.
chmod 775 test.sh
  • You just created a simple PBS TORQUE Job Script.
  • To submit the script to the cluster, you will use the qsub 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]

These are just a few parameter options, for more type man sbatch while logged into the cluster.

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.
#SLURM -J ExampleJobName Name of the job will be ExampleJobName
#SLURM -e /path/to/errorfile Split off the error stream to this file. By default output and error streams are placed in the same file.
#SLURM -e /path/to/ouputfile Split off the output stream to this file. By default output and error streams are placed in the same file.
#SLURM --mail-user username@illinois.edu Send an e-mail to username@igb.illinois.edu to receive job information.
#SLURM --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.
#PBS -m abe Send email when job aborts, job begins, and job ends
#PBS -l Reserves resources such as number of processors, memory, wallclock.
#PBS -l nodes=X:ppn=Y Reserve X number of nodes with Y processors per node.
#PBS -l mem=XGB Reserve X gigabytes of RAM for the job.
#PBS -l nodes=1:ppn=5,mem=4GB To combine multiple resources, separate them with a comma

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 -t option in your submission script. The -t option allows many copies of the same script to be queued all at once. You can use the PBS_ARRAYID to differentiate between the different jobs in the array. A brief example on how to do this is available at Job Array Example

Start An Interactive Login Session On A Compute Node[edit]

  • Use interactive qsub 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.
qsub -I
  • 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 qsub session, therefor it's better to submit large jobs via non-interactive qsub.
  • To run an application with a user interface run
qsub -I -X
  • For this to work you will need to setup xserver on your computer Xserver Setup

View/Delete Submitted Jobs[edit]

Viewing Job Status[edit]

  • To get a simple view of your current running jobs you may type:
qstat
  • 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
    • W = 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.
    • S = Job is suspended (job overused the resources subscribed to it in the qsub command)
  • For more detailed view type:
 qstat -f 
  • This will return a list of all nodes, their slot availability, and your current jobs.

List Queues[edit]

  • Simple view
qstat -q
  • Advance view (Ex: where queue name is budget)
    • max_user_queuable - max number of jobs allowed to be in the queue
    • max_user_run - max number of jobs the queue will run at same time
qstat -Qf budget 

List All Jobs on Cluster With Nodes[edit]

qstat -a -n

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 qdel, for example to delete a job with ID number 5523 you would type:
qdel 5523
  • Delete all of your jobs
qdel all

Troubleshooting job errors[edit]

  • 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:
qstat -j 23451

View Job Details[edit]

  • To view job details, you can use the qstat -f JOB_NUMBER, checkjob JOBNUMBER, tracejob JOBNUMBER to monitor your job.
qstat -f 12345
checkjob 12345
tracejob 12345

Applications[edit]

Application Lists[edit]

  • List of currently installed applications, please go to Biocluster Applications
  • List of currently installed applications from the commmand line, run module avail

Application Installation[edit]

  • Please email help@igb.illinois.edu to request new application or version upgrades

Environment Modules[edit]

  • 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.5.0, simply run this command:
module load qiime/1/5.0
  • If you would like to simply load the latest version, run the the command without the /1.50 (version number):
module load qiime
  • To view which environments you have loaded simply run module list:
bash-4.1$ module list
Currently Loaded Modulefiles:
  1) qiime
  • When submitting a job using a qsub 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

Transferring data files[edit]

Transferring using SFTP/SCP[edit]

  • In order to transfer files to the cluster from a personal Desktop/Laptop you may use WinSCP the same way you would use it to transfer files to the File Server.

Transferring using Globus (NOT ACTIVE)[edit]

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

Transferring from Biotech FTP Server[edit]

  • One option to transfer data from the Biotech FTP server is to use a program called wget.
  • It can download 1 file or an entire directory.
  • Replace USERNAME with the username provided by the Biotech Center.

The below example will download the file test_file.tar.gz

wget --user=USERNAME --ask-password ftp://ftp.biotech.illinois.edu/test_file.tar.gz
  • If you want to download an entire directory, you need to have the -r parameter set. This will recursively go through an entire directory and download it.
wget -r --user=USERNAME --ask-password ftp://ftp.biotech.illinois.edu/test_dir/

References[edit]