Open cmd-ntrf opened 5 years ago
@plstonge said this regarding login node flavor:
installing an R package on the login node took too much memory when 20+ participants were doing the installation simultaneously. The login node almost crashed. One workaround consists of pre-installing the package before the workshop, but this is not the same as doing it as an exercise.
A useful yaml configuration file that I used for a "Intro to ARC" workshop using the terminal :
jupyterhub::jupyterhub_config_hash:
SbatchForm:
runtime:
min: 3.5
def: 3.5
max: 5.0
nprocs:
min: 1
def: 1
max: 1
memory:
min: 1024
max: 2048
def: 2048
oversubscribe:
def: true
lock: true
ui:
def: 'terminal'
SlurmFormSpawner:
disable_form: true
jupyterhub::enable_otp_auth: false
#jupyterhub::kernel::venv::packages: ['numpy', 'pandas', 'matplotlib']
profile::cvmfs::client::lmod_default_modules: ['nixpkgs/16.09', 'imkl/2018.3.222', 'gcc/7.3.0', 'openmpi/3.1.2', 'ipython-kernel/3.7', 'rstudio-server', 'openrefine']```
with the option
hieradata = file("config.yaml")
in the main.tf
I think @ccoulombe has some interesting parameters for admin users as well.
For a (Data Carpentry) Data Analysis with Python workshop, with 50 participants and up to 6 host/co-hosts (with Admin role on Jupyter). I had 7 nodes of 8c-12gb. The config.yaml
used was:
jupyterhub::admin_groups: ['user51', 'user52', 'user53', 'user54', 'user55', 'user56']
jupyterhub::enable_otp_auth: false
jupyterhub::jupyterhub_config_hash:
SbatchForm:
runtime:
min: 3.5
def: 3.5
max: 5.0
nprocs:
min: 1
def: 1
max: 1
memory:
min: 1024
def: 1280
max: 1536
oversubscribe:
def: true
lock: true
ui:
def: 'notebook'
SlurmFormSpawner:
disable_form: true
jupyterhub::kernel::venv::packages: ['numpy', 'pandas', 'matplotlib', 'plotnine']
profile::cvmfs::client::lmod_default_modules: ['nixpkgs/16.09', 'imkl/2018.3.222', 'gcc/7.3.0', 'openmpi/3.1.2']
Main nodes
mgmt = { type = "p4-6gb", count = 1 }
login = { type = "p2-3gb", count = 1 }
login = { type = "p4-6gb", count = 1 }
for a group of 20 participantslogin = { type = "p8-12gb", count = 1 }
for a group of 40 participants or moreCompute nodes - for each type of workshops
node = { type = "p8-12gb", count = N }
node = { type = "p2-3gb", count = 1 }
node = { type = "p4-6gb", count = 4 }
node = { type = "p4-6gb", count = 8 }
node = { type = "p8-12gb", count = 8 }
node = { type = "p4-6gb", count = 12 }
Storage
home_size
project_size
scratch_size