How To: How and why to get an interactive session on Hellbender

How and why to get an interactive session on Hellbender 

There are a variety of reasons you would want an interactive session on Hellbender.  

 
1) The most obvious application would be that you get some computational resources and run a code interactively on the cluster – for example: MATLAB, Mathematica, RStudio, your Conda environment or whatever is the code that you are using for your work. 

 

2) Another very common usage of the interactive session might be to test your workflow, to see that your code actually starts running - i.e. that there are no errors in your input files and parameters.  Only after this should you make a job submission script which should now be error free since you tested things interactively. 
 

3) Also, you might want to interactively build a Conda environment in which case we recommend requesting large amounts of memory for the session - 40 GB or more. See our Conda documents – How do I create a Conda environment, and How do I handle Conda environments. Article Settings - How do I create a Conda env...

4) An Interactive job can also be used when when transferring a large set of data from one location on Hellbender to another (for example, from VAST to Pixstor). This allows you to utilize Hellbender’s Infiniband network for the transfer. You can also parallelize the transfer across multiple cores or even multiple nodes if the transfer is run as a slurm job. 

 Notice that none of these things you should attempt on the login node! Doing this on a login node would lead to a warning and potential temporary suspension of your Hellbender account. 

 

How to get an interactive session practically? 

 

Partition choice:

When using Hellbender for an interactive session, continuous access is key.  Using the requeue or gpu_requeue partitions increase the likelihood of your job being preempted by another user.  With this in mind, choosing other partitions for your interactive session ensures less interruption.  General, Interactive or a priority partition you are a member of are all good choices.

As the name implies, the interactive partition is specifically set up for interactive jobs.  Users are limited to 16 total CPUs across all their jobs on the Interactive partition to ensure the partition is available to everyone. Also, there are no GPUs available in the Interactive partition. 
 

Keep in mind that if you want a GPU in your session, GPU nodes are not included in the general partition but only in the gpu partition.  

Getting resources: 
The simpler way to get resources is through the web browser and the friendly GUI interface of our Open On Demand service*. The most generic app that you would select in that case is the Hellbender Desktop.  
Select the partition as discussed above and specify the resources that you need - CPUs, GPUs, memory and of course time limit for your session. 

 If you are using a command line interface (i.e. terminal - either from MobaXterm in Windows, or from your Mac, or some other option) once you are on a Hellbender’s login node you would request the interactive session something like this: 

 salloc --partition=gpu -N 1 -n 8 --gres=gpu:1 --mem=50G --x11 

Here we are requesting resources in the gpu partition, on a single node (-N 1), with 8 CPUs (-n 8)  and 1 GPU card (--gres=gpu:1) – without specifying a GPU type (specific type might be A100 in which case the syntax would be --gres=gpu:A100:1 for requesting exactly one A100 GPU card). 

The (optional) --x11 flag at the end of the command makes sure that you will be able to have some graphics output (such as GUI) if your code needs that. For graphics to work, you also need to be connected to the cluster via ssh command with -X flag specified. 

*Open On Demand web service 
https://ondemand.rnet.missouri.edu/pun/sys/dashboard 

Check out our TDX article on OpenOnDemand Article - How-To: Access Hellbender O...

 

Preparing a submission script 

For example:

You created a slurm job submission script for your workflow. In your script you have defined resources, loaded modules, activated a conda environment, setup environment variables, and specified the command(s) to execute. 

You submit the job; it sits in the queue for few hours and then runs for a few seconds just to produce an output that your environment variable does not exist (because you had a typo in the script). 
 

You iterate and submit it again with similar results only that now you gave the wrong path for the input file. Before you know it, the day has passed and you still did not have a successful run of your job. 

 
To avoid this frustrating experience, you should approach it like this: get an interactive session on Hellbender, with potentially less resources that you would request for the "real" job since that might reduce your waiting time for the interactive session.  

 

Once you have your interactive session, try starting your computation loading modules, activating environments that you need, setting up environment variables - and finally give the command to run the calculation. 
 

Now, if you see that it started running, construct your job submission script by copy pasting exact steps that you did in your interactive session. 
Then submit a job script that you generated this way, and it should run without a problem. Of course, sometimes the execution job fails because insufficient memory was requested,  the job does not finish in a requested time, or some other problems develop during computation itself. 

 

For Additional Assistance

For additional assistance, please join our Research Facilitators during Open Office Hours.  Article - Getting Hellbender/RDE Help