Skip to content

Commit 58727d8

Browse files
committed
WIP: debug rstudio app errors
1 parent 741d0da commit 58727d8

File tree

1 file changed

+56
-16
lines changed

1 file changed

+56
-16
lines changed

environments/common/inventory/group_vars/all/openondemand.yml

Lines changed: 56 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ openondemand_clusters:
5050
basic:
5151
script_wrapper: |
5252
module purge
53+
%s
5354
set_host: host=$(hostname -s)
5455
vnc:
5556
script_wrapper: |
@@ -99,7 +100,7 @@ openondemand_install_app_matlab:
99100
openondemand_install_app_codeserver:
100101
codeserver:
101102
repo: https://github.com/stackhpc/bc_osc_codeserver.git
102-
version: main
103+
version: master
103104
# osc:ood role var (NB only active when not in configure):
104105
ood_install_apps: >-
105106
{{
@@ -186,19 +187,9 @@ openondemand_apps_rstudio_default:
186187
title: RStudio
187188
description: Request a RStudio server
188189
cluster: slurm
189-
form:
190-
- bc_queue
191-
- rstudio_module
192-
- bc_num_hours
193-
- num_cores
194-
- node
195190
attributes:
196-
num_cores:
197-
label: Number of cores FOO
198-
value: 1
199-
bc_queue:
191+
bc_queue:
200192
value: "{{ openondemand_rstudio_partition | default(none) }}"
201-
node: ""
202193
rstudio_module:
203194
label: RStudio module
204195
required: true
@@ -209,18 +200,67 @@ openondemand_apps_rstudio_default:
209200
- ["RStudio-Server/2022.07.2+576-foss-2022a-Java-11-R-4.2.1", "RStudio-Server/2022.07.2+576-foss-2022a-Java-11-R-4.2.1"]
210201
- ["RStudio-Server/1.4.1717-foss-2021a-Java-11-R-4.1.0", "RStudio-Server/1.4.1717-foss-2021a-Java-11-R-4.1.0"]
211202
- ["RStudio-Server/2023.09.1+494-foss-2023a-Java-11-R-4.3.2", "RStudio-Server/2023.09.1+494-foss-2023a-Java-11-R-4.3.2"]
203+
extra_modules_script:
204+
label: Extra modules script
205+
help: If you'd like to load additional modules alongside RStudio-Server, put the 'module load ...' commands into a text file (one 'module load...' per line) and specify its path here
206+
widget: text_field
207+
required: false
208+
cores:
209+
label: Number of CPU cores
210+
help: How many CPU cores to reserve for your session. NB Ensure this is within the maximum allowed by your chosen partition.
211+
widget: number_field
212+
min: 1
213+
max: 48
214+
step: 1
215+
value: 1
216+
cachable: true
217+
ram:
218+
widget: number_field
219+
label: RAM in GB
220+
help: How much RAM to reserve for your session. NB Ensure this is within the maximum allowed by your chosen partition
221+
min: 4
222+
max: 700
223+
step: 1
224+
value: 4
225+
cachable: true
226+
bc_num_hours:
227+
widget: number_field
228+
help: Maximum runtime in hours for your session. NB Ensure this is within the maximum allowed by your chosen partition
229+
min: 1
230+
max: 240
231+
step: 1
232+
value: 30
233+
cachable: true
234+
bc_email_on_started: false
235+
auto_modules_RStudio-Server:
236+
default: false
237+
form:
238+
- bc_queue
239+
- rstudio_module
240+
- auto_queues
241+
- extra_modules_script
242+
- cores
243+
- ram
244+
- bc_num_hours
245+
- bc_email_on_started
212246
submit: |
213247
---
214248
batch_connect:
215249
template: "basic"
216250
conn_params:
217251
- csrf_token
218252
script:
219-
job_name: "ood-rstudio"
220253
native:
221-
- <%= "--nodes=1" %>
222-
- <%= "--ntasks=#{num_cores}" %>
223-
- <%= "--nodelist=#{node}" %>
254+
- "--partition"
255+
- "<%= bc_queue %>"
256+
- "--ntasks"
257+
- "1"
258+
- "--mem"
259+
- "<%= ram.blank? ? 4 : ram.to_i %>G"
260+
- "--cpus-per-task"
261+
- "<%= cores.blank? ? 1 : cores.to_i %>"<% if auto_queues.start_with?("gpu") %>
262+
- "--gpus-per-task"
263+
- "1"<% end %>
224264
openondemand_apps_rstudio: "{{ {'rstudio':openondemand_apps_rstudio_default} if openondemand_rstudio_partition | default(none) else {} }}"
225265

226266
openondemand_apps_matlab_default:

0 commit comments

Comments
 (0)