Skip to content

Commit

Permalink
Merge pull request #5168 from GeorgianaElena/dask-hub-split
Browse files Browse the repository at this point in the history
nasa-cryo: put dask workers into their own nodepool per hub and tag them
  • Loading branch information
GeorgianaElena authored Nov 21, 2024
2 parents 6e455d0 + a15be0f commit bc023eb
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
11 changes: 11 additions & 0 deletions config/clusters/nasa-cryo/prod.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,14 @@ basehub:
SCRATCH_BUCKET: s3://nasa-cryo-scratch/$(JUPYTERHUB_USER)
PANGEO_SCRATCH: s3://nasa-cryo-scratch/$(JUPYTERHUB_USER)
PERSISTENT_BUCKET: s3://nasa-cryo-persistent/$(JUPYTERHUB_USER)
dask-gateway:
gateway:
backend:
scheduler:
extraPodConfig:
nodeSelector:
2i2c/hub-name: prod
worker:
extraPodConfig:
nodeSelector:
2i2c/hub-name: prod
11 changes: 11 additions & 0 deletions config/clusters/nasa-cryo/staging.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,14 @@ basehub:
SCRATCH_BUCKET: s3://nasa-cryo-scratch-staging/$(JUPYTERHUB_USER)
PANGEO_SCRATCH: s3://nasa-cryo-scratch-staging/$(JUPYTERHUB_USER)
PERSISTENT_BUCKET: s3://nasa-cryo-persistent-staging/$(JUPYTERHUB_USER)
dask-gateway:
gateway:
backend:
scheduler:
extraPodConfig:
nodeSelector:
2i2c/hub-name: staging
worker:
extraPodConfig:
nodeSelector:
2i2c/hub-name: staging
16 changes: 15 additions & 1 deletion eksctl/nasa-cryo.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,18 @@ local daskNodes = [
// A not yet fully established policy is being developed about using a single
// node pool, see https://github.com/2i2c-org/infrastructure/issues/2687.
//
{ instancesDistribution+: { instanceTypes: ["r5.4xlarge"] }},
{
namePrefix: "dask-staging",
labels+: { "2i2c/hub-name": "staging" },
tags+: { "2i2c:hub-name": "staging" },
instancesDistribution+: { instanceTypes: ["r5.4xlarge"] }
},
{
namePrefix: "dask-prod",
labels+: { "2i2c/hub-name": "prod" },
tags+: { "2i2c:hub-name": "prod" },
instancesDistribution+: { instanceTypes: ["r5.4xlarge"] }
},
];


Expand Down Expand Up @@ -225,6 +236,9 @@ local daskNodes = [
labels+: {
"k8s.dask.org/node-purpose": "worker"
},
tags+: {
"2i2c:node-purpose": "worker"
},
taints+: {
"k8s.dask.org_dedicated" : "worker:NoSchedule",
"k8s.dask.org/dedicated" : "worker:NoSchedule"
Expand Down

0 comments on commit bc023eb

Please sign in to comment.