SLURM VNC interactive jobs: Difference between revisions

From Cheaha
Jump to navigation Jump to search
(page started)
 
No edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
= Using VNC session ==
'''Notice:''' It is now possible to access a VNC-like desktop environment from our [[Open_OnDemand|Open OnDemand]] web portal.
Please refer to our [[Setting_Up_VNC_Session|VNC setup guide]]  to start a VNC session with Cheaha head node. After getting your VNC desktop, you can get a compute node resource using the '''sinteractive''' command. A '''sinteractive''' session launched through VNC won't get terminated even if your SSH or VNC window is closed. Of course, it will get terminated after specified run-time is reached.
 
==Using VNC session ==
Please refer to our [[Setting_Up_VNC_Session|VNC setup guide]]  to start a VNC session with Cheaha login node. After getting your VNC desktop, you can get a compute node resource using the '''sinteractive''' command. A '''sinteractive''' session launched through VNC won't get terminated even if your SSH or VNC window is closed. Of course, it will get terminated after specified run-time is reached.
 
= Interactive Resources =
 
After you login to Cheaha the command-line interface that you see is running on the login node.  Most of your light interactive prep-work to submit a compute job to the scheduler can be carried out on this login node.  If you have a heavier workload to prepare for a batch job (eg. compiling code or other manipulations of data) or your compute application requires interactive control, you should request a dedicated interactive node for this work.
 
Interactive resources are requested by submitting an "interactive" job to the scheduler.  Interactive jobs will provide you a command line on a compute resource that you can use just like you would the command line on the login node.  The difference is that the scheduler has dedicated the requested resources to your job and you can run your interactive commands without having to worry about impacting other users on the login node.
 
Interactive jobs are requested with the sinteractive command (please use your correct email address in place of the ''$USER@uab.edu'' string if you do not have an @uab.edu email address):
<pre>
sinteractive --nodes=1 --time=120 --mail-user=$USER@uab.edu --mail-type=begin,end,fail
</pre>
 
This command requests 1 node (24 cores) with entire allocation of RAM  on the node for 120 minutes (2 hours).  The command will wait until the resource is reserved by the scheduler and send you an email when the resource is available.  The email alert can be useful during periods of heavy cluster demand when interactive resources reservations may have significant wait times.

Latest revision as of 22:55, 24 June 2021

Notice: It is now possible to access a VNC-like desktop environment from our Open OnDemand web portal.

Using VNC session

Please refer to our VNC setup guide to start a VNC session with Cheaha login node. After getting your VNC desktop, you can get a compute node resource using the sinteractive command. A sinteractive session launched through VNC won't get terminated even if your SSH or VNC window is closed. Of course, it will get terminated after specified run-time is reached.

Interactive Resources

After you login to Cheaha the command-line interface that you see is running on the login node. Most of your light interactive prep-work to submit a compute job to the scheduler can be carried out on this login node. If you have a heavier workload to prepare for a batch job (eg. compiling code or other manipulations of data) or your compute application requires interactive control, you should request a dedicated interactive node for this work.

Interactive resources are requested by submitting an "interactive" job to the scheduler. Interactive jobs will provide you a command line on a compute resource that you can use just like you would the command line on the login node. The difference is that the scheduler has dedicated the requested resources to your job and you can run your interactive commands without having to worry about impacting other users on the login node.

Interactive jobs are requested with the sinteractive command (please use your correct email address in place of the $USER@uab.edu string if you do not have an @uab.edu email address):

sinteractive --nodes=1 --time=120 --mail-user=$USER@uab.edu --mail-type=begin,end,fail

This command requests 1 node (24 cores) with entire allocation of RAM on the node for 120 minutes (2 hours). The command will wait until the resource is reserved by the scheduler and send you an email when the resource is available. The email alert can be useful during periods of heavy cluster demand when interactive resources reservations may have significant wait times.