Changes for page 00 - How to login to Maxwell
Last modified by flenners on 2025-06-24 16:56
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 - 00 -How tologintoMaxwell1 +How to start the RecoGUI - Content
-
... ... @@ -1,221 +1,126 @@ 1 - TheDESY has a quite powerful compute cluster calledthe Maxwell cluster. The documentation can be found here [[https:~~/~~/confluence.desy.de/display/MXW/Maxwell+Cluster>>doc:MXW.MaxwellCluster.WebHome||shape="rect"]], howeverasthis can be confusing sometimes, we will trytocondensate this toastep by step manual.1 += {{id name="00-HowtologintoMaxwell-ShortVersion:"/}}**Short Version: ** = 2 2 3 +Terminal: 3 3 5 +(% class="code" %) 6 +((( 7 +salloc ~-~-partition=all ~-~-nodes=1 –time=06:00:00 8 +\\ssh max-bla123 9 +\\module load anaconda 10 +\\source activate ~~/envs/tomopy 11 +\\spyder& 12 +))) 4 4 5 - {{toc/}}14 +\\ 6 6 7 - = {{idname="00-HowtologintoMaxwell-GettingaDESYAccount"/}}Getting a DESY Account =16 +Spyder: 8 8 9 - During you beamtime you will encounter multiplesystems, where you willneedtwo different types of accounts:18 +Open RecoGUI, 10 10 11 - =={{idname="00-HowtologintoMaxwell-TheDOORAccount"/}}TheDOOR Account==20 +(Right click on tab: "Set console working directory") (to be removed) 12 12 13 - Beforeyou arriveyou have to create a DOOR accountand do all the safety trainings. This account is also being used forthe gamma-portal,whereyou can manage you beamtime data, grant access toother users and manage FTP access. Howeverthisaccount does not work withotherresources. For this you will have to request a second account:22 +Green Arrow to start program 14 14 15 - == {{id name="00-HowtologintoMaxwell-ThePSXAccount"/}}The PSX Account ==24 +\\ 16 16 17 - Ifyou decideduringabeamtime, youwanttohave access to the cluster, tell your local contact so,and theywillrequest a PSX account for you. With this you willget access to the Kerberos, Windows andafs resourcesat DESY, which includesthecluster.26 += {{id name="00-HowtologintoMaxwell-LongVersion:"/}}**Long Version: ** = 18 18 19 19 \\ 20 20 21 - After yougot the account,you havetochange the initial password within 6 days.Forthis, goto[[https:~~/~~/passwd.desy.de/>>url:https://passwd.desy.de/||shape="rect"]]and log in with your user name and initial password (you do not need any OTP when you sign in for the first time). Then agree to the terms and change your password.30 +**Login to max-nova**: E.g. from browser [[https:~~/~~/max-nova.desy.de:3443/>>url:https://max-nova.desy.de:3443/auth/ssh||shape="rect"]] 22 22 23 - = {{id name="00-HowtologintoMaxwell-UsingtheCluster"/}}Using the Cluster =32 +\\ 24 24 25 - == {{idname="00-HowtologintoMaxwell-StructureoftheCluster"/}}StructureoftheCluster==34 +Click on "**Launch Session**" and "**XFCE**" Icon 26 26 27 - === {{id name="00-HowtologintoMaxwell-Overview"/}}Overview===36 +[[image:attach:image2021-4-27_13-55-52.png||height="250"]] 28 28 29 - The Maxwell Cluster has (status 2021) more than 750 nodes in it. To organize this, you cannot access any node directly, but you have to request compute resources at first. You then can connect form an entrance node to you compute node38 +\\ 30 30 31 - ==={{idname="00-HowtologintoMaxwell-EntranceNodes"/}}EntranceNodes ===40 +**Open a Terminal**, e.g. from the icon at the bottom of your desktop. You can also open it via right click → "Open Terminal here" directly on your desktop or from any folder. 32 32 33 -If you have successfully obtained an PSX account you can get started. The entrance node are: 34 -\\[[https:~~/~~/max-nova.desy.de:3443/auth/ssh>>url:https://max-nova.desy.de:3443/auth/ssh||shape="rect"]] (if you have access to the nova resources, most likely the case if your beamtime was in cooperation with the Helmholtz Zentrum Hereon) 42 +[[image:attach:image2021-4-27_13-58-35.png||height="250"]] 35 35 36 - [[https:~~/~~/max-display.desy.de:3443/auth/ssh>>url:https://max-display.desy.de:3443/auth/ssh||shape="rect"]] (in any case)44 +\\ 37 37 38 - Thesenodesare**not **forprocessing,as you willsharethem with manyotherusers.So pleasedonotdoanything computationalintensive on them, likereconstructionor visualization.Viewing images is ok.46 +Now you can **allocate a node** for yourself, so you will have enough memory and power for your reconstruction. 39 39 40 -=== {{id name="00-HowtologintoMaxwell-FastX2"/}}Fast X2 === 48 +(% class="code" %) 49 +((( 50 +salloc ~-~-partition=all ~-~-nodes=1 ~-~-time=06:00:00 51 +))) 41 41 42 - The cluster uses the software FastX2 for connection and virtual desktop. To get the right version of this, use the web interface, log in, and in the bottom right corner is a download link for the desktop client. The version has to match exactly to work properly.53 +\\ 43 43 44 - If you want to add a connection in the desktop client, clicktheplus, selectweb, use theaddressabove (including theport),andyourusernameand force ssh authentication.Then youcan chooseif you wanta virtualdesktop (XFCE) oraterminal.55 +You will get a node for 6 hours, you can also choose longer or shorter times. 45 45 46 - ==={{idname="00-HowtologintoMaxwell-Partitions"/}}Partitions===57 +It can take some time before you get a node, then it will tell you which node is reserved for you. (Example: max-exfl069) 47 47 48 - Starting from an entrance node, you can connect to a compute node. As there are multiple levels of priorities etc. the nodes are organizes in partitions. You can only access some of these. To view which one, open a terminal and use the commad:59 +\\ 49 49 50 -{{code}} 51 -my-partitions 52 -{{/code}} 61 +Now you can **login via ssh** on this node: 53 53 54 -Your result will look something like this: 63 +(% class="code" %) 64 +((( 65 +ssh max-exfl069 66 +))) 55 55 56 - [[image:attach:P5I.UserGuide\:NanoCT.4\. Reconstruction Guide.00 - Howtologin to Maxwell.WebHome@image2021-5-4_10-28-14.png||queryString="version=1&modificationDate=1620116894626&api=v2" alt="image2021-5-4_10-28-14.png"]]68 +Enter your password. 57 57 58 - == {{id name="00-HowtologintoMaxwell-SLURM"/}}SLURM ==70 +\\ 59 59 60 - The access to the resources of the cluster is managed via a scheduler, SLURM.72 +EXAMPLE: 61 61 62 - SLURM schedules theaccessto nodesandcan revokes access ifhigherpriority jobs come.74 +[[image:attach:image2021-4-27_13-52-11.png||height="125"]] 63 63 64 - === {{id name="00-HowtologintoMaxwell-PSXPartition"/}}PSX Partition ===76 +\\ 65 65 66 - Here you cannot be kicked out of your allocation. However, only few nodes are in this partition and you can also only allocate few in parallel (2021: 5). Some of them have GPUs available.78 +\\ 67 67 68 - ==={{idname="00-HowtologintoMaxwell-AllPartition"/}}AllPartition===80 +Now you are on a different node [[image:http://confluence.desy.de/s/de_DE/7901/4635873c8e185dc5df37b4e2487dfbef570b5e2c/_/images/icons/emoticons/smile.svg||title="(Lächeln)" border="0" class="emoticon emoticon-smile"]]. 69 69 70 -Very large number of nodes available and you can allocate many in parallel (2021: 100). However each allocation can be revoked without a warning if s.o. with higher priority comes. This is very common to happen. If you want to use this partition, be sure to design your job accordingly. Only CPU nodes. 71 - 72 -=== {{id name="00-HowtologintoMaxwell-AllgpuPartition"/}}Allgpu Partition === 73 - 74 -Like all, but with GPUs 75 - 76 -=== {{id name="00-HowtologintoMaxwell-JhubPartition"/}}Jhub Partition === 77 - 78 -For Jupyter Hub 79 - 80 80 \\ 81 81 82 - =={{idname="00-HowtologintoMaxwell-ConnectingtotheCluster"/}}Connectingtothe Cluster==84 +You first have to **load the anaconda module:** 83 83 84 -Connect to an entrance node via FastX. You will automatically be assigned to a node when you start a session via a load balancer (max-display001-003, max-nova001-002) 85 - 86 -[[image:attach:P5I.User Guide\: NanoCT.4\. Reconstruction Guide.00 - How to login to Maxwell.WebHome@image2021-4-27_13-55-52.png||queryString="version=1&modificationDate=1619524552546&api=v2" alt="image2021-4-27_13-55-52.png"]] 87 - 88 -Choose a graphic interface and look around. 89 - 86 +(% class="code" %) 87 +((( 88 +module load anaconda/3 90 90 \\ 90 +))) 91 91 92 - == {{idname="00-HowtologintoMaxwell-DataStorage"/}}DataStorage==92 +and **activate your virtual environment**, depending on where you installed it: 93 93 94 -The Maxwell cluster knows many storage systems. The most important are: 95 - 96 -Your User Folder: This has a hard limit of 30 GB. Be sure not to exceed this. 97 - 98 -The GPFS: here all the beamtime data are stored. 99 - 100 -=== {{id name="00-HowtologintoMaxwell-GPFS"/}}GPFS === 101 - 102 -Usually you can find you data at: /asap3/petra3/gpfs/<beamline>/<year>/data/<beamtime_id> 103 - 104 -In there you will find a substructure: 105 - 106 -* raw: raw measurement data. Only applicant and beamtime leader can write/delete there 107 -* processed: for all processed data 108 -* scratch_cc: scratch folder w/o backup 109 -* shared: for everything else 110 - 111 -The GPFS has regular snapshots. The whole capacity of this is huge (several PB) 112 - 113 -== {{id name="00-HowtologintoMaxwell-HowtoGetaComputeNode"/}}How to Get a Compute Node == 114 - 115 -If you want to do some processing, there are two ways to start a job in SLURM: 116 - 117 -1. Interactive 118 -1. Batch 119 - 120 -In both cases you are the only person working on the node, so use it as much as you like. 121 - 122 -=== {{id name="00-HowtologintoMaxwell-StartinganInteractiveJob"/}}Starting an Interactive Job === 123 - 124 -To get a node you have to allocate one via SLURM e.g. use: 125 - 126 -{{code}} 127 -salloc -N 1 -p psx -t 1-05:00:00 128 -{{/code}} 129 - 130 -Looking at the individual options: 131 - 132 -* salloc: specifies you want a live allocation 133 -* -N 1: for one node 134 -* -p psx: on the psx partition. You can also add multiple separated with a comma: -p psx,all 135 -* -t 1-05:00:00: for the duration of 1 day and 5h 136 -* ((( 137 -Other options could be: ~-~-mem=500GB with at least 500GB of memory, 138 - 139 139 (% class="code" %) 140 140 ((( 141 - if youneedgpu: (% class="bash plain" %){{codelanguage="none"}}--constraint=P100{{/code}}96 +source activate ~~/envs/tomopy 142 142 ))) 143 -))) 144 -* ... see the SLURM documentation for more options 145 145 146 - If your job is scheduled you see your assigned node and can connect via ssh to it. (in the rare case where you do not see anything use my-jobs to find out the host name).99 +\\ 147 147 148 - ==={{id name="00-HowtologintoMaxwell-Startingabatchjob"/}}Startinga batchjob===101 +~~/ takes you back to your home directory. In this case, the environment "tomopy" was installed in the home directory in the folder "envs". 149 149 150 -For a batch job you need a small shell script describing what you want to do. You do not see the job directly, but the output is written to a log file (and results can be stored on disk) 151 - 152 -With a batch job, you can also start an array job, where the same task is executed on multiple servers in parallel. 153 - 154 -An example for such a script: 155 - 156 -{{code}} 157 -#!/bin/bash 158 -#SBATCH --time 0-01:00:00 159 -#SBATCH --nodes 1 160 -#SBATCH --partition all,ps 161 -#SBATCH --array 1-80 162 -#SBATCH --mem 250GB 163 -#SBATCH --job-name ExampleScript 164 - 165 - 166 -source /etc/profile.d/modules.sh 167 -echo "SLURM_JOB_ID $SLURM_JOB_ID" 168 -echo "SLURM_ARRAY_JOB_ID $SLURM_ARRAY_JOB_ID" 169 -echo "SLURM_ARRAY_TASK_ID $SLURM_ARRAY_TASK_ID" 170 -echo "SLURM_ARRAY_TASK_COUNT $SLURM_ARRAY_TASK_COUNT" 171 -echo "SLURM_ARRAY_TASK_MAX $SLURM_ARRAY_TASK_MAX" 172 -echo "SLURM_ARRAY_TASK_MIN $SLURM_ARRAY_TASK_MIN" 173 - 174 -module load maxwell gcc/8.2 175 - 176 -.local/bin/ipython3 --pylab=qt5 PathToYourScript/Script.py $SLURM_ARRAY_TASK_ID 177 - 178 -exit 179 - 180 - 181 -{{/code}} 182 - 183 183 \\ 184 184 185 - Torunthisuse105 +now you can **start spyder**: 186 186 187 -{{code}} 188 -sbatch ./your_script.sh 189 -{{/code}} 107 +(% class="code" %) 108 +((( 109 +spyder& 110 +))) 190 190 191 191 \\ 192 192 193 - ==={{id name="00-HowtologintoMaxwell-Viewingyouallocations"/}}Viewing you allocations===114 +EXAMPLE: (virtual environment in "envs/p36" 194 194 195 - To view your pendingor runningallocations youcanuse:116 +[[image:attach:image2021-4-27_13-53-35.png||height="71"]] 196 196 197 -{{code}} 198 -squeue -u <username> 199 - 200 -or 201 - 202 -my-jobs 203 -{{/code}} 204 - 205 205 \\ 206 206 207 - ==={{idname="00-HowtologintoMaxwell-Whatisrealisticintermsofresources"/}}Whatisrealisticintermsofresources===120 +You can also start another terminal e.g. if you want to look at your data / reconstructions in fiji. 208 208 209 -To be fair, you will not get 100 nodes every time you want them. Especially during a user run, the machines are often quite busy. But if you design your scripts to be tolerant to sudden cancellation, it is still worth trying if you profit from massive parallelization. 210 - 211 -If you want to do some small processing, use one of the psx nodes. This should work most of the time. 212 - 213 213 \\ 214 214 215 -== {{id name="00-HowtologintoMaxwell-GrantingDataAccesstootherBeamtimes"/}}Granting Data Access to other Beamtimes == 216 - 217 -If you have to add other users to a past beamtime, this can be done via the gamma-portal. After adding the accounts, these people have to make sure to log off from **all **FastX sessions, etc. to update the permissions. 218 - 219 219 \\ 220 220 221 221 \\
- Confluence.Code.ConfluencePageClass[0]
-
- Id
-
... ... @@ -1,1 +1,1 @@ 1 - 3614573321 +204941724 - Title
-
... ... @@ -1,1 +1,1 @@ 1 - 00 -How tologintoMaxwell1 +How to start the RecoGUI - URL
-
... ... @@ -1,1 +1,1 @@ 1 -https://confluence.desy.de/spaces/P5I/pages/ 361457332/00 -How tologintoMaxwell1 +https://confluence.desy.de/spaces/P5I/pages/204941724/How to start the RecoGUI