Skip to content

Commit

Permalink
Merge branch 'main' into patch-3
Browse files Browse the repository at this point in the history
  • Loading branch information
sellth authored Oct 28, 2024
2 parents 0a50ddc + 5d303bd commit 1acd4f2
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 18 deletions.
4 changes: 4 additions & 0 deletions bih-cluster/docs/admin/maintenance.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

This page documents the current and known upcoming maintenance windows.

## Login & Compute maintenance, October 22nd, 2024

Kernel and Slurm upgrades. Keep an eye on [our forum](https://hpc-talk.cubi.bihealth.org/t/maintenance-slurm-upgrade-october-22nd/1095) for updates.

## Login, Compute and Storage Maintenance, December 13-14, 2022

All informationand updates regarding maintenance will be circulated on our forum https://hpc-talk.cubi.bihealth.org/c/announcements/5.
Expand Down
2 changes: 1 addition & 1 deletion bih-cluster/docs/connecting/advanced-ssh/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
Here we describe custom scenarios for using SSH to connect to BIH HPC.
To keep it consise, this section is divided into separate documents for

- [Linux](./linux.md) and
- [Linux](./unix.md) and
- [Windows](./windows.md) users.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Connecting via SSH on Unix
# Connecting via SSH with Unix-like Operating Systems
## Activating your Key in the SSH Key Agent
!!! note
The big Linux distributions automatically manage ssh-agent for you and unlock your keys at login time.
Expand Down
4 changes: 2 additions & 2 deletions bih-cluster/docs/connecting/connecting.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ In case you're not familiar with SSH, you should probably start via the web port
Follow these steps to connect to BIH HPC via the command line:

1. [Register an account](../admin/getting-access.md) via your PI. :memo:
2. [Generate a SSH key pair :key: in Linux](generate-key/linux.md) or [Windows](generate-key/windows.md)
2. [Generate a SSH key pair :key: in Linux](generate-key/unix.md) or [Windows](generate-key/windows.md)
3. [Submit your public key :arrow_up: to Charite](submit-key/charite.md) or [to MDC](submit-key/mdc.md).
4. Connect to one of the two login nodes.

Expand Down Expand Up @@ -45,7 +45,7 @@ Follow these steps to connect to BIH HPC via the command line:
$ srun --pty bash -i
```

6. Bonus: [Configure your SSH client :wrench: on Linux and Mac](advanced-ssh/linux.md) or [Windows](advanced-ssh/windows.md).
6. Bonus: [Configure your SSH client :wrench: on Linux and Mac](advanced-ssh/unix.md) or [Windows](advanced-ssh/windows.md).
7. Bonus: [Connect from external networks :flying_saucer:](./from-external.md).

!!! tip "tl;dr"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generating an SSH Key in Linux
# Generating an SSH Key with Unix-like Operating Systems

- You might already have one, check whether a file `~/.ssh/id_xxx.pub` is present.
- Otherwise, create key using the following command (marking your key with your email address will make it easier to reidentify your key later on):
Expand Down
2 changes: 1 addition & 1 deletion bih-cluster/docs/help/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ In the example above, user1 has one job with one GPU running on hpc-gpu-3, user2
Also see:
- [Running graphical(X11) applications on Windows](../connecting/advanced-ssh/windows.md#x11)
- [Running graphical(X11) applications on Linux](../connecting/advanced-ssh/linux.md#x11)
- [Running graphical(X11) applications on Linux](../connecting/advanced-ssh/unix.md#x11)
## How can I log into a node outside of the scheduler?
Expand Down
2 changes: 1 addition & 1 deletion bih-cluster/docs/how-to/software/jupyter.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ If you are running multiple server on one or more nodes, one can separate them b

## Connecting to the Running Session

This is slightly trickier as we have to create a SSH connection/tunnel with potentially multiple hops in between. The easiest way is probably to configure your `.ssh/config` to automatically route your connection via the login node (and possibly MDC jail). This is described in our [Advanced SSH config documentation](../../connecting/advanced-ssh/linux.md#configure-ssh-client)
This is slightly trickier as we have to create a SSH connection/tunnel with potentially multiple hops in between. The easiest way is probably to configure your `.ssh/config` to automatically route your connection via the login node (and possibly MDC jail). This is described in our [Advanced SSH config documentation](../../connecting/advanced-ssh/unix.md#configure-ssh-client)

In short,add these lines to `~/.ssh/config` (replace curly parts):

Expand Down
2 changes: 1 addition & 1 deletion bih-cluster/docs/hpc-tutorial/episode-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ That was easy!
In preparation for our first steps tutorial series, we would like you to install the software for this tutorial.
In general the users on the cluster will manage their own software with the help of conda.
If you haven't done so so far, please [follow the instructions in installing conda](../best-practice/software-installation-with-conda.md) first.
The only premise is that you are able to [log into the cluster](../connecting/advanced-ssh/linux.md).
The only premise is that you are able to [log into the cluster](../connecting/advanced-ssh/unix.md).
Make also sure that you are logged in to a computation node using `srun -p medium --time 1-00 --mem=4G --cpus-per-task=1 --pty bash -i`.

Now we will create a new environment, so as to not interfere
Expand Down
1 change: 1 addition & 0 deletions bih-cluster/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Read the following set of pages (in order) to learn how to get access and connec
Please add your publications using the cluster to [this list](misc/publication-list.md).

## News & Maintenance Announcements
- :jack_o_lantern: October 22nd 2024: Kernel & Slurm upgrades on (almost) all nodes.
- :ram: July 16th: New high-memory node `hpc-mem-5` with 4 TB of RAM.
- :locomotive: Until autumn 2024: Operation Exodus – Migration of all data from GPFS to CephFS storage.
- :maple_leaf: September 30th 2024: Unmounting of `/fast` on all non-transfer nodes.
Expand Down
2 changes: 1 addition & 1 deletion bih-cluster/docs/overview/storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
!!! info "No mounting **on** the cluster itself."

For various technical and security-related reasons it is not possible to mount anything on the cluster nodes by users.
For mounting the cluster storage on your computer, please read [Connecting: SSHFS Mounts](../connecting/advanced-ssh/linux.md#file-system-mount-via-sshfs).
For mounting the cluster storage on your computer, please read [Connecting: SSHFS Mounts](../connecting/advanced-ssh/unix.md#file-system-mount-via-sshfs).

This document gives an overview of the nodes and volumes on the cluster.

Expand Down
18 changes: 11 additions & 7 deletions bih-cluster/docs/slurm/snakemake.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ This page describes how to use Snakemake with Slurm.

We first create a new environment `snakemake-slurm` and activate it.
We need the `snakemake` package for this.
For snakemake 8, we additionally need [`snakemake-executor-plugin-slurm`](https://snakemake.github.io/snakemake-plugin-catalog/plugins/executor/slurm.html).

```bash
host:~$ conda create -y -n snakemake-slurm snakemake
host:~$ conda create -y -n snakemake-slurm 'snakemake>=8.24.1' snakemake-executor-plugin-slurm
[...]
#
# To activate this environment, use
Expand All @@ -40,7 +41,7 @@ rule default:
rule mkresult:
output: "the-result.txt"
shell: r"sleep 1m; touch the-result.txt"
shell: r"sleep 2m; touch the-result.txt"
EOF
host:snake-slurm$ snakemake --cores=1
[...]
Expand All @@ -51,12 +52,12 @@ host:snake-slurm$ rm the-result.txt

## Snakemake and :tada: Slurm

You have two options:
Simply use `snakemake --profile=cubi-v1` and the Snakemake resource configuration as shown below.
This works for both snakemake version 7 *and* 8.

1. Simply use `snakemake --profile=cubi-v1` and the Snakemake resource configuration as shown below. **STRONGLY PREFERRED**
2. Use the `snakemake --cluster='sbatch ...'` command.
(For version 7, you can also use `snakemake --cluster='sbatch ...'` command instead, but this is discouraged.)

Note that we sneaked in a `sleep 1m`? In a second terminal session, we can see that the job has been submitted to SLURM indeed.
Note that we sneaked in a `sleep 2m`? In a second terminal session, we can see that the job has been submitted to SLURM indeed.

```bash
host:~$ squeue -u holtgrem_c
Expand All @@ -78,11 +79,14 @@ The `cubi-v1` profile (stored in `/etc/xdg/snakemake/cubi-v1` on all cluster nod

You will need Snakemake >=7.0.2 for this.

For more information on resources, see [snakemake resources](https://snakemake.readthedocs.io/en/latest/snakefiles/rules.html#standard-resources) and [slurm resources](https://snakemake.github.io/snakemake-plugin-catalog/plugins/executor/slurm.html#advanced-resource-specifications).

Here is how to call Snakemake:

```bash
# snakemake --profile=cubi-v1 -j1
# snakemake --profile=cubi-v1 --jobs 1
```
When using conda, additionally use `--sdm conda` (snakemake 8) or `--use-conda` (snakemake 7).

To set rule-specific resources:

Expand Down
4 changes: 2 additions & 2 deletions bih-cluster/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ nav:
- "SSH Basics": connecting/ssh-basics.md
- "Windows": "connecting/connecting-windows.md"
- "Generate Keys":
- "Linux": connecting/generate-key/linux.md
- "Linux/macOS": connecting/generate-key/unix.md
- "Windows": connecting/generate-key/windows.md
- "Submit Keys":
- "Charite": connecting/submit-key/charite.md
- "MDC": connecting/submit-key/mdc.md
- "Advanced SSH":
- "Overview": connecting/advanced-ssh/overview.md
- "Linux": connecting/advanced-ssh/linux.md
- "Linux/macOS": connecting/advanced-ssh/unix.md
- "Windows": connecting/advanced-ssh/windows.md
- "From External": connecting/from-external.md
- "Connection Problems": connecting/connection-problems.md
Expand Down

0 comments on commit 1acd4f2

Please sign in to comment.