Skip to content

Commit

Permalink
Merge pull request #3210 from consideRatio/pr/transition-from-n1-to-n2
Browse files Browse the repository at this point in the history
2i2c, terraform: transition user nodes & neurohackademy nodes from n1- to n2- nodes
  • Loading branch information
consideRatio authored Oct 2, 2023
2 parents 2adbba5 + 2262337 commit a4c1da7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
16 changes: 10 additions & 6 deletions config/clusters/2i2c/imagebuilding-demo.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,15 @@ jupyterhub:
choices:
mem_2_7:
display_name: 2.7 GB RAM, upto 3.479 CPUs
description: "Use this for the workshop on 2023 September"
description: Use this for the workshop on 2023 September
kubespawner_override:
mem_guarantee: 2904451072
mem_limit: 2904451072
cpu_guarantee: 0.434875
cpu_limit: 3.479
node_selector:
node.kubernetes.io/instance-type: n1-highmem-4
# FIXME: guarantee/limits initialized for n1-highmem-4, not n2-
node.kubernetes.io/instance-type: n2-highmem-4
default: true
mem_5_4:
display_name: 5.4 GB RAM, upto 3.479 CPUs
Expand All @@ -97,7 +98,8 @@ jupyterhub:
cpu_guarantee: 0.86975
cpu_limit: 3.479
node_selector:
node.kubernetes.io/instance-type: n1-highmem-4
# FIXME: guarantee/limits initialized for n1-highmem-4, not n2-
node.kubernetes.io/instance-type: n2-highmem-4
mem_10_8:
display_name: 10.8 GB RAM, upto 3.479 CPUs
kubespawner_override:
Expand All @@ -106,17 +108,19 @@ jupyterhub:
cpu_guarantee: 1.7395
cpu_limit: 3.479
node_selector:
node.kubernetes.io/instance-type: n1-highmem-4
# FIXME: guarantee/limits initialized for n1-highmem-4, not n2-
node.kubernetes.io/instance-type: n2-highmem-4
mem_21_6:
display_name: 21.6 GB RAM, upto 3.479 CPUs
description: "Largest amount of RAM, might take a few minutes to start"
description: Largest amount of RAM, might take a few minutes to start
kubespawner_override:
mem_guarantee: 23235608576
mem_limit: 23235608576
cpu_guarantee: 3.479
cpu_limit: 3.479
node_selector:
node.kubernetes.io/instance-type: n1-highmem-4
# FIXME: guarantee/limits initialized for n1-highmem-4, not n2-
node.kubernetes.io/instance-type: n2-highmem-4
hub:
services:
binder:
Expand Down
2 changes: 1 addition & 1 deletion config/clusters/2i2c/neurohackademy.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jupyterhub:
effect: "NoSchedule"
cpu:
guarantee: 0.5
# We're on n1-highmem-16 machines
# We're on n2-highmem-16 machines
limit: 14
memory:
guarantee: 4G
Expand Down
18 changes: 7 additions & 11 deletions docs/hub-deployment-guide/configure-auth/github-orgs.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,27 +208,23 @@ To enable this access,
jupyterhub:
singleuser:
profileList:
- display_name: "Small"
description: 5GB RAM, 2 CPUs
- display_name: Small
description: 1.0 GB RAM
default: true
allowed_teams:
- <org-name>:<team-name>
- 2i2c-org:hub-access-for-2i2c-staff
kubespawner_override:
mem_limit: 7G
mem_guarantee: 4.5G
node_selector:
node.kubernetes.io/instance-type: n1-standard-2
mem_guarantee: 1G
mem_limit: 1G
- display_name: Medium
description: 11GB RAM, 4 CPUs
description: 4.0 GB RAM
allowed_teams:
- <org-name>:<team-name>
- 2i2c-org:hub-access-for-2i2c-staff
kubespawner_override:
mem_limit: 15G
mem_guarantee: 11G
node_selector:
node.kubernetes.io/instance-type: n1-standard-4
mem_guarantee: 4G
mem_limit: 4G
```

Users who are a part of *any* of the listed teams will be able to access that profile.
Expand Down
4 changes: 2 additions & 2 deletions terraform/gcp/projects/pilot-hubs.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ notebook_nodes = {
"user" : {
min : 0,
max : 20,
machine_type : "n1-highmem-4",
machine_type : "n2-highmem-4",
},
"climatematch" : {
min : 0,
Expand All @@ -45,7 +45,7 @@ notebook_nodes = {
# We expect around 120 users
min : 0,
max : 100,
machine_type : "n1-highmem-16",
machine_type : "n2-highmem-16",
labels : {
"2i2c.org/community" : "neurohackademy"
},
Expand Down

0 comments on commit a4c1da7

Please sign in to comment.