From 676c4378ae5efb06cad6106b7b10ed369704cf41 Mon Sep 17 00:00:00 2001 From: Philip MacMenamin Date: Fri, 8 Dec 2023 20:38:13 +0000 Subject: [PATCH] fix up HPC page etc (#403) * Arranging docs - move filesystem stuff to HPC page --- docs/source/hpc.rst | 79 ++++++++++++++++++++++++++++++--- docs/source/workflows/brt.rst | 30 ------------- docs/source/workflows/index.rst | 4 -- 3 files changed, 72 insertions(+), 41 deletions(-) diff --git a/docs/source/hpc.rst b/docs/source/hpc.rst index c258687e..a77a4cda 100644 --- a/docs/source/hpc.rst +++ b/docs/source/hpc.rst @@ -2,13 +2,27 @@ RML HPC (Big Sky) ================== +******************* +Python environments +******************* + +**NOTE, THIS IS ONLY relevant for HPC. Added for completeness.** + +**NOTE: generate_vevn.sh is not used as of 08/11/2023, setup is documented in** :doc:`hpc`. + +Workflows are currently run on RML HPC ("BigSky"). + +There are three environments currently on BigSky: (`dev`, `qa`, `prod`). +They were set up as follows: +(Note, this first step is only required once, and only to work around old versions of Python.) + Initial Setup: -------------- To initialise, typically done only at start per env. Use miniconda to set up venv, clone this repo, and pip install to the newly created venv. -.. code-block:: +.. code-block:: sh # get miniconda dist wget https://repo.anaconda.com/miniconda/Miniconda3-py310_23.3.1-0-Linux-x86_64.sh @@ -44,7 +58,7 @@ E.g. for qa ``helper_scripts/hedwig_listener_qa.service`` would be copied into p It's a good idea to test the ``ExecStart`` command can be run, eg: -``image_portal_workflows/helper_scripts/hedwig_reg_listen.sh listen`` +``image_portal_workflows/helper_scripts/hedwig_listener_dev.service.sh`` The daemon by default polls prefect server in the given workpool and brings in the flow run details if something has been submitted to the server. @@ -59,16 +73,45 @@ Upon promotion into HPC env do: cd image_portal_workflows/ git fetch git checkout