Skip to content

Commit

Permalink
slurm-intro.md mermaid
Browse files Browse the repository at this point in the history
  • Loading branch information
bclaremar authored Sep 7, 2023
1 parent 0f43e97 commit 441bca5
Showing 1 changed file with 39 additions and 1 deletion.
40 changes: 39 additions & 1 deletion docs/slurm-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,35 @@

!!! info "Objectives"
- This is a short introduction in how to reach the calculation nodes
-

```mermaid
graph TB
Node1 -- interactive --> SubGraph2Flow
Node1 -- sbatch --> SubGraph2Flow
subgraph "Snowy"
SubGraph2Flow(calculation nodes)
end
thinlinc -- usr-sensXXX + 2FA + VPN ----> SubGraph1Flow
terminal -- usr --> Node1
terminal -- usr-sensXXX + 2FA + VPN ----> SubGraph1Flow
Node1 -- usr-sensXXX + 2FA + no VPN ----> SubGraph1Flow
subgraph "Bianca"
SubGraph1Flow(Bianca login) -- usr+passwd --> private(private cluster)
private -- interactive --> calcB(calculation nodes)
private -- sbatch --> calcB
end
subgraph "Rackham"
Node1[Login] -- interactive --> Node2[calculation nodes]
Node1 -- sbatch --> Node2
end
```


### Slurm, sbatch, the job queue
- Problem: _1000 users, 300 nodes, 5000 cores_
Expand Down Expand Up @@ -63,6 +92,16 @@ $ interactive -A sens2023531 -p core -n 1 -t 10:00
- Which node are you on?
- Logout with `<Ctrl>-D` or `logout`

##### Start RStudio
ThinLinc
When logging onto Bianca, you are placed on a login node, which has 2 CPU and a few GB of RAM. This is sufficient for doing some lightweight calculations, but interactive sessions and batch jobs provide access to much more resources and should be requested via the SLURM system.

Such is the case for using RStudio on Bianca. We recommend using at least two cores for this, and to get those resources, you must start an interactive job, for example,

$ interactive -A <project> -n 2 -t hh:mm:sec

Once the interactive job has begun, load an RStudio module and an R_packages module and run "rstudio" from there.

#### A simple job script template

```bash
Expand Down Expand Up @@ -162,7 +201,6 @@ In short, this program goes over the following procedure, over and over again:
- Project Storage: Castor



!!! abstract "Keypoints"
- You are always in the login node unless you:
- start an interactive session
Expand Down

0 comments on commit 441bca5

Please sign in to comment.