Skip to content

Commit

Permalink
Merge pull request #11 from minrk/bigger-user-nodes
Browse files Browse the repository at this point in the history
increase user resources
  • Loading branch information
minrk authored Feb 5, 2024
2 parents 7a3db73 + 85c4f17 commit 5617821
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
14 changes: 8 additions & 6 deletions jupyterhub/gfts-hub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jupyterhub:
tag: "set-by-chartpress"
pullPolicy: Always
memory:
limit: 12G
guarantee: 4G
limit: 24G
guarantee: 8G
cpu:
limit: 4
guarantee: 1
limit: 6
guarantee: 2
extraEnv:
CULL_CONNECTED: "1"
CULL_TIMEOUT: "1800"
Expand Down Expand Up @@ -83,8 +83,10 @@ jupyterhub:
replicas: 0
userPods:
nodeAffinity:
# TODO: 'require' when we deploy for real
matchNodePurpose: prefer
# 'prefer' lets users run on small core nodes
# to save cost
# 'require' protects core nodes from user resource consumption
matchNodePurpose: require
corePods:
nodeAffinity:
matchNodePurpose: require
Expand Down
10 changes: 6 additions & 4 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ resource "ovh_cloud_project_kube" "cluster" {
update_policy = "MINIMAL_DOWNTIME"
}

# ovh node flavors: https://www.ovhcloud.com/en/public-cloud/prices/

resource "ovh_cloud_project_kube_nodepool" "core" {
service_name = local.service_name
kube_id = ovh_cloud_project_kube.cluster.id
Expand Down Expand Up @@ -122,10 +124,10 @@ resource "ovh_cloud_project_kube_nodepool" "core" {
resource "ovh_cloud_project_kube_nodepool" "user" {
service_name = local.service_name
kube_id = ovh_cloud_project_kube.cluster.id
name = "user-202401"
# r2-120 is 8 core, 120GB
flavor_name = "b3-16"
max_nodes = 1
name = "user-202402"
# b3-32 is 8-core, 32GB
flavor_name = "b3-32"
max_nodes = 2
min_nodes = 0
autoscale = true
template {
Expand Down
Binary file modified terraform/secrets/ovh-creds.sh
Binary file not shown.

0 comments on commit 5617821

Please sign in to comment.