|
| 1 | +--- |
| 2 | +title: "Open OnDemand" |
| 3 | +teaching: 10 |
| 4 | +exercises: 10 |
| 5 | +questions: |
| 6 | +- "How do we use Open OnDemand?" |
| 7 | +objectives: |
| 8 | +- "Open a shell session in your web browser" |
| 9 | +- "Start an interactive Desktop session" |
| 10 | +- "Start an interactive JupyterLab session" |
| 11 | +keypoints: |
| 12 | +- "Open OnDemand allows users to interface with an HPC system through a web browser." |
| 13 | +--- |
| 14 | + |
| 15 | +[Open OnDemand] is an open-source web portal developed by Ohio Supercomputer Center |
| 16 | +that enables researchers to access HPC systems from their web browsers. In the |
| 17 | +previous section we showed how the {{ site.remote.name }} OnDemand File Manager can |
| 18 | +be used to access, edit, and transfer data on an HPC filesystem. {{ site.remote.name }} |
| 19 | +OnDemand also allows you to access a {{ site.remote.name }} shell, start an |
| 20 | +interactive desktop session, and use interactive apps like JupyterLab, RStudio, |
| 21 | +Matlab, and VS Code. |
| 22 | + |
| 23 | +To access the {{ site.remote.name }} OnDemand Dashboard, open your web browser and |
| 24 | +go to [http://ondemand.farmshare.stanford.edu]. |
| 25 | + |
| 26 | +## Access a {{ site.remote.name }} Shell |
| 27 | + |
| 28 | +You can access a {{ site.remote.name }} by selecting **Clusters > {{ site.remote.name }} |
| 29 | +Shell Access** from the top menu of the OnDemand Dashboard. |
| 30 | + |
| 31 | +A new window will open in your browser, and you will automatically be logged onto |
| 32 | +a {{ site.remote.name }} login node. This will work just like the shell session |
| 33 | +in your local terminal app, but you don't need to log in with SSH or authenticate |
| 34 | +with Duo Two-Factor authentication. |
| 35 | + |
| 36 | +> ## X11 Forwarding |
| 37 | +> |
| 38 | +> X11 forwarding does not work with the OnDemand shell. If you need to use software |
| 39 | +> with X11, you can continue to use your local terminal app or you can use an |
| 40 | +> interactive desktop session. |
| 41 | +{: .callout} |
| 42 | + |
| 43 | +## Start an Interactive Desktop Session |
| 44 | + |
| 45 | +The {{ site.remote.name }} Desktop session launches an interactive desktop on one |
| 46 | +or more compute nodes, granting full access to the resources those nodes provide. |
| 47 | +This is similar to an interactive job (`srun --pty bash`), with the added bonus of |
| 48 | +a graphical user interface (GUI). |
| 49 | + |
| 50 | +1. From the OnDemand Dashboard, select **Interactive Apps > {{ site.remote.name }} |
| 51 | +Desktop**. |
| 52 | +2. In the screen that opens, specify the **Size** (number of cores and memory), |
| 53 | +whether to **Allocate a GPU**, and the **Number of hours** that the session should |
| 54 | +run for. |
| 55 | +3. Click the **Launch** button. |
| 56 | +4. The **My Interactive Sessions** page will open. You will see a card for your |
| 57 | +pending {{ site.remote.name }} Desktop session. Once the resources have been |
| 58 | +allocated, you can click the **Launch FarmShare Desktop** button to open the |
| 59 | +desktop session. |
| 60 | + |
| 61 | +## Start an Interactive JupyterLab Session |
| 62 | + |
| 63 | +{{ site.remote.name }} OnDemand allows users to launch common software GUIs in a web |
| 64 | +browser, powered by the compute resources that you request. Currently available |
| 65 | +interactive apps include **JupyterLab, MATLAB, RStudio, and VS Code.** |
| 66 | + |
| 67 | +We will only cover how to start a JupyterLab session, but the process is largely the |
| 68 | +same for the other apps. |
| 69 | + |
| 70 | +1. From the OnDemand Dashboard, select **Interactive Apps > JupyterLab.** |
| 71 | +2. In the screen that opens, specify the **Python version,** **Size** |
| 72 | +(number of cores and memory), whether to **Allocate a GPU**, and the **Number of |
| 73 | +hours** that the session should run for. |
| 74 | +3. Click the **Launch** button. |
| 75 | +4. The **My Interactive Sessions** page will open. You will see a card for your |
| 76 | +pending JupyterLab session. Once the resources have been allocated, you can click |
| 77 | +the **Connect to Jupyter** button to open the session. |
| 78 | + |
| 79 | +{% include links.md %} |
| 80 | + |
| 81 | +[Open OnDemand]: https://openondemand.org/ |
| 82 | +[http://ondemand.farmshare.stanford.edu]: http://ondemand.farmshare.stanford.edu/ |
0 commit comments