Skip to content

Commit d07b981

Browse files
authored
Merge pull request #135 from NYU-RTS/more_ood
Added pages to OOD
2 parents fb8eaaa + dd3e672 commit d07b981

38 files changed

+437
-61
lines changed

docs/hpc/02_connecting_to_hpc/01_connecting_to_hpc.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import TabItem from '@theme/TabItem';
66
There are several ways to interact with the Greene HPC cluster. Similar to other Linux clusters, the most common method of connection is via a Command Line Interface (CLI). A CLI is a program that allows you to create and delete files, run programs, and navigate through directories and files via a typed prompt. On Mac, the built-in CLI application is called Terminal. While Windows 11 machines support a Linux Subsystem, which allows for similar functionality, a popular tool used to connect to a Linux server is a free application called [PuTTY][putty link].
77

88
:::tip
9-
If you'd prefer to access the HPC cluster via a web gateway instead, please refer to [the section describing OpenOnDemand](./03_ood.md).
9+
If you'd prefer to access the HPC cluster via a web gateway instead, please refer to [the section describing Open OnDemand (OOD)](../09_ood/01_ood_intro.md).
1010
:::
1111

1212
The following sections will outline basic ways to connect to the Greene cluster. Access to the clusters is primarily handled via the Secure Shell Protocol, or ssh. Below we outline ways to connect via ssh on Mac, Linux, and Windows machines.

docs/hpc/02_connecting_to_hpc/03_ood.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

docs/hpc/03_storage/03_data_transfers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ The Globus endpoint for Greene is available at `nyu#greene`. The endpoint `nyu#p
5757
rclone - rsync for cloud storage, is a command line program to sync files and directories to and from cloud storage systems such as Google Drive, Amazon Drive, S3, B2 etc. rclone is available on DTNs. [Please see the documentation for how to use it.](https://rclone.org/)
5858

5959
### Open OnDemand (OOD)
60-
One can use [Open OnDemand (OOD)](../09_ood/01_open_on_demand.md) interface to upload data.
60+
One can use [Open OnDemand (OOD)](../09_ood/01_ood_intro.md) interface to upload data.
6161
:::warning
6262
Please only use OOD for small data transfers! Please use Data-Transfer Nodes (DTNs) for moving large data.
6363
:::

docs/hpc/09_ood/01_ood_intro.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Introduction to Open OnDemand (OOD)
2+
3+
## A Web-based Graphical User Interface
4+
5+
OOD is designed to create easier access for users to interface with HPC systems. It comes with a variety of convenient tools to manage files, access the command line, manage and monitor jobs, and launch interactive applications, such as Jupyter Notebooks, RStudio sessions, and even full Linux Desktops. Features Include:
6+
7+
- Easy file management - upload and download files, view HTML and pictures without downloading
8+
- Command-line shell access without any SSH client locally installed
9+
- Job management and monitoring
10+
- Full Linux desktop experience without X11
11+
- Interactive Apps such as JupyterHub and RStudio without the need for port forwarding
12+
13+
It is accessible to all users with a valid NYU HPC account while on-campus network or through NYU VPN via https://ood.hpc.nyu.edu.
14+
15+
## Access the Shell
16+
17+
Under the **clusters** menu you can select the **Greene Shell Access** option to access the Linux shell. No local SSH client is required.
18+
19+
![img](./static/open_ondemand_gif.gif)
20+
21+
Please see our documentation on [Submitting Jobs](http://localhost:3000/rts-docs-dev/docs/hpc/submitting_jobs/slurm_submitting_jobs/) if you'd like detailed instructions.
22+
23+
**Interactive Applications**
24+
25+
GUI based applications are accessible without the need for port or X11 forwarding. Select the Interactive Apps menu, select the desired application, and submit the job based on required resources and options.
26+
27+
![interactive-applications](./static/interactive-applications.png)
28+
29+
## Troubleshooting
30+
31+
### Connections to Open OnDemand
32+
33+
A common issue that can occur is receiving an error that the Open OnDemand page cannot be reached. Sometimes this can indicate that the service is down, but often this is an issue with the the local browser cache. You can test this by opening a private browser window and seeing if https://ood.hpc.nyu.edu will load. If it does, try deleting the cache for https://ood.hpc.nyu.edu in your browser history to resolve this issue.
34+
35+
In Chrome, this can be done by navigating to this page in your settings:
36+
37+
38+
```bash
39+
chrome://settings/content/all?searchSubpage=ood.hpc.nyu.edu&search
40+
```
41+
42+
The link above will automatically search for the Open OnDemand site data and cookies. You can then simply click on the trashcan icon to delete the site cache.
43+
44+
![Remove browser cache image](./static/ood_remove_cache.png)
45+
46+
Once done, try navigating again to https://ood.hpc.nyu.edu and the site should load. For other issues please email hpc@nyu.edu.
47+
48+
### Viewing Logs
49+
50+
When problems arise one of the best ways to figure out what went wrong is to look in the logs. You can do this in two ways for OOD: from within OOD itself or via the terminal.
51+
52+
#### From within OOD
53+
54+
You can view session logs for interactive apps from within OOD if they are still visible within `Home / My Interactive Sessions`.
55+
56+
![OOD Matlab in queue](./static/ood_matlab_in_queue.png)
57+
58+
Just click on the `Session ID` link and a tab will open with the contents of the directory that contains your session logs.
59+
60+
![OOD session ID directory](./static/ood_session_dir.png)
61+
62+
`output.log` is probably the most informative for debugging. Simply click on `output.log` and the contents will be displayed.
63+
64+
#### From terminal
65+
66+
If your session is no longer visible from within OOD you may still be able to find your logs via the terminal. Simply [log into Greene](https://sites.google.com/nyu.edu/nyu-hpc/accessing-hpc) and `cd` to `/home/$USER/ondemand/data/sys/dashboard/batch_connect/sys/` and then `cd` into the directory for the app that you're interested in. You should find the file `output.log` there.

docs/hpc/09_ood/01_open_on_demand.md renamed to docs/hpc/09_ood/02_jupyter_with_conda_singularity.mdx

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
1-
# Open OnDemand (OOD) with Conda/Singularity
2-
3-
[Open OnDemand](https://ood.hpc.nyu.edu/) is a tool that allows users to launch Graphical User Interfaces (GUIs) based applications are accessible without modifying your HPC environment. You can log into the Open OnDemand interface at [https://ood.hpc.nyu.edu](https://ood.hpc.nyu.edu). Once logged in, select the **Interactive Apps** menu, select the desired application, and submit the job based on required resources and options.
4-
5-
:::note
6-
If you're not on the NYU network, you may need to connect via NYU's Virtual Private Network (VPN) before connecting to [https://ood.hpc.nyu.edu](https://ood.hpc.nyu.edu). [Read the details about NYU's VPN and instructions for connecting](https://www.nyu.edu/life/information-technology/infrastructure/network-services/vpn.html).
7-
:::
1+
# Jupyter with Conda/Singularity in OOD
82

93
## OOD + Singularity + conda
10-
This page describes how to use your Singularity with conda environment in Open OnDemand (OOD) GUI at Greene.
4+
This page describes how to use your Singularity with conda environment in OOD GUI at Greene.
115

126
### Log Into Greene via the Terminal
13-
The following commands must be run from the terminal. Information on accessing via the terminal can be found at [Connecting to the HPC](../02_connecting_to_hpc/01_connecting_to_hpc.mdx).
7+
The following commands must be run from the terminal. Information on accessing via the terminal can be found at [Connecting to the HPC](../02_connecting_to_hpc/01_connecting_to_hpc.mdx) or you can log into OOD and select the `Clusters` tab at the top of the page and select `Greene Shell Access`.
148

159
### Preinstallation Warning
1610
:::warning
1711
If you have initialized Conda in your base environment, your prompt on Greene may show something like:
18-
```sh
12+
```bash
1913
(base) [NetID@log-1 ~]$
2014
```
2115
then you must first comment out or remove this portion of your `~/.bashrc` file:
@@ -59,7 +53,7 @@ Launching Singularity with the `--overlay` flag mounts the overlay file to a new
5953

6054
:::warning
6155
Be sure that you have the Singularity prompt (`Singularity>`) and that `/ext3` is available before the next step.
62-
```sh
56+
```bash
6357
Singularity> ls -lah /ext3
6458
total 8.5K
6559
drwxrwxr-x. 2 root root 4.0K Oct 19 10:01 .
@@ -196,10 +190,11 @@ to
196190
```
197191
Update the `"<Your NetID>"` to your own NetID without the `"<>"` symbols.
198192

199-
### Launch an Open OnDemand Jupyter Notebook
200-
[https://ood.hpc.nyu.edu](https://ood.hpc.nyu.edu)
193+
### Launch an OOD Jupyter Notebook
194+
Go to [https://ood.hpc.nyu.edu](https://ood.hpc.nyu.edu) <br />
195+
and select Jupyter Notebook from the Interactive Apps pull-down menu:
201196

202-
![OOD Launch](./static/OOD_launch.png)
197+
![OOD Launch](./static/start_jupyter.png)
203198

204199
### Configure and Launch your Notebook
205200

docs/hpc/09_ood/03_matlab.mdx

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Matlab in OOD
2+
3+
## Getting Started
4+
You can run Matlab in OOD by going to the URL [ood.hpc.nyu.edu](http://ood.hpc.nyu.edu) in your browser and selecting `MATLAB` from the `Interactive Apps` pull-down menu at the top of the page. As you can see below, once you've used it and other interactive apps they'll show up on your home screen under the `Recently Used Apps` header.
5+
6+
:::note
7+
Be aware that when you start from `Recently Used Apps` it will start with the same configuration that you used previously. If you'd like to configure your Matlab session differently, you'll need to select it from the menu.
8+
:::
9+
10+
![OOD Interactive Apps menu](./static/ood_interactive_apps_matlab.png)
11+
12+
## Configuration
13+
14+
You can select the version of Matlab to use, the number or cores, amount of memory, GPU type (if any), amount of time, and optional Slurm options.
15+
16+
![OOD Matlab Configuration](./static/ood_matlab_config.png)
17+
18+
::::tip
19+
Please be aware that when you run each version of Matlab for the first time, the working directory will default to your home directory `/home/NetID`.
20+
:::warning
21+
Be careful not to go over your quota for `/home`. You can find your current usage with the `myquota` command. Please see our [Storage documentation](../03_storage/01_intro_and_data_management.mdx) for details about your storage options.
22+
:::
23+
Each time you start it up after that it will set its working directory to the last directory you were in. If you'd like to change this behavior, so that you always start at the same directory:
24+
1. click on `ENVIRONMENT` in your `Home` panel
25+
1. select `Preferences`
26+
1. select `Current Folder`
27+
1. select `initial working folder preferences`
28+
29+
This will allow you to set the full path of the initial working folder you would prefer. Be sure to hit the `Apply` button, so your changes are applied.
30+
::::
31+
32+
:::tip
33+
Another step you may wish to take to keep Matlab from filling up your `/home` directory is to create symlinks from `/scratch` to `/home` for internal Matlab folders. You can do this by running the following commands:
34+
```bash
35+
# make sure you're in your /home directory
36+
cd
37+
mkdir /scratch/$USER/.matlab
38+
mkdir /scratch/$USER/.MathWorks
39+
ln -s /scratch/$USER/.matlab
40+
ln -s /scratch/$USER/.MathWorks
41+
```
42+
:::
43+
44+
## Matlab running in OOD
45+
46+
After you hit the `Launch` button you'll have to wait for the scheduler to find you node(s) to run on:
47+
![OOD Matlab in queue](./static/ood_matlab_in_queue.png)
48+
49+
Then you'll have a short wait for Matlab itself to start up.<br />
50+
Once that happens you'll get one last form that will allow you to:
51+
- make changes to compression and image qualtiy
52+
- open a terminal window on the compute node your Matlab session is running on
53+
- get a link that you can share that will allow others to view your Matlab session
54+
55+
![Pre-launch matlab OOD](./static/ood_matlab_prelaunch.png)
56+
57+
Then after you hit the `Launch Matlab` button you'll have the familiar Matlab Desktop to use.
58+
59+
![OOD Matlab Running](./static/ood_matlab_running.png)

docs/hpc/09_ood/04_RStudio.mdx

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# RStudio in OOD
2+
3+
4+
## Getting Started
5+
You can run RStudio in OOD by going to the URL [ood.hpc.nyu.edu](http://ood.hpc.nyu.edu) in your browser and selecting `RStudio Server` from the `Interactive Apps` pull-down menu at the top of the page. As you can see below, once you've used it and other interactive apps they'll show up on your home screen under the `Recently Used Apps` header.
6+
7+
:::note
8+
Be aware that when you start from `Recently Used Apps` it will start with the same configuration that you used previously. If you'd like to configure your RStudio session differently, you'll need to select it from the menu.
9+
:::
10+
11+
![OOD Interactive Apps menu](./static/ood_interactive_apps_rstudio.png)
12+
13+
## Configuration
14+
15+
You can select the version of R to use, the R package location, the number or cores, amount of memory, GPU type (if any), amount of time, and optional Slurm options.
16+
17+
![OOD RStudio Configuration](./static/ood_rstudio_config.png)
18+
19+
::::tip
20+
You may wish to set the 'R Package Location' to `/scratch` since space in `/home` is limited.
21+
Also, be aware that RStudio always starts in your `/home/NetID` directory.
22+
:::warning
23+
Be careful not to go over your quota for `/home`. You can find your current usage with the `myquota` command. Please see our [Storage documentation](../03_storage/01_intro_and_data_management.mdx) for details about your storage options.
24+
:::
25+
::::
26+
27+
## RStudio running in OOD
28+
29+
After you hit the `Launch` button you'll have to wait for the scheduler to find you node(s) to run on:
30+
![OOD RStudio in queue](./static/ood_rstudio_in_queue.png)
31+
32+
Then you'll have a short wait for RStudio itself to start up.<br />
33+
34+
Then after you hit the `Connect to RStudio Server` button you'll have the familiar RStudio Desktop to use.
35+
36+
![OOD RStudio Running](./static/ood_rstudio_running.png)

docs/hpc/09_ood/05_FileZilla.mdx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# FileZilla
2+
3+
As mentioned in [File Transfer Clients](../03_storage/03_data_transfers.md#file-transfer-clients), FileZilla is a client for transferring files. It has been installed on OOD as a convenience, but be aware that you can use many of the other methods described in the [Data Transfers](../03_storage/03_data_transfers.md) section of our documentation for transferring your files on OOD, since they all use the same underlying filesystems.
4+
5+
## FileZilla running in OOD
6+
7+
First, you'll be able to select the number of cores, amount of memory, job duration and optional slurm options, you'd like.
8+
![OOD FileZilla initial options](./static/ood_filezilla_init_options.png)
9+
10+
After you hit the `Launch` button you'll have to wait for the scheduler to find you node(s) to run on, and then you'll have a short wait for FileZilla itself to start up.<br />
11+
12+
After all that, you'll get the chance to set some options for your environment:
13+
- Compression
14+
- Image Quality
15+
16+
:::tip
17+
You can also get a 'view only' link that you can share with others and a link to your session files for debugging
18+
:::
19+
20+
![OOD FileZilla in queue](./static/ood_filezilla_startup.png)
21+
22+
After you hit the `Launch FileZilla` button you'll have the familiar FileZilla Desktop to use.
23+
24+
![OOD FileZilla Running](./static/ood_filezilla_running.png)

0 commit comments

Comments
 (0)