Skip to content

Commit

Permalink
Merge pull request #525 from yuvipanda/carbonplan-bump
Browse files Browse the repository at this point in the history
Make carbonplan cluster more resilient
  • Loading branch information
yuvipanda authored Jul 20, 2021
2 parents 474d702 + ab49a7f commit 086b256
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 22 deletions.
42 changes: 42 additions & 0 deletions config/hubs/carbonplan.cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,37 @@ hubs:
https:
enabled: true
chp:
resources:
requests:
cpu: 0.5
memory: 256Mi
limits:
cpu: 1
memory: 4Gi
nodeSelector: {}
tolerations:
- key: "node-role.kubernetes.io/master"
effect: "NoSchedule"
traefik:
resources:
requests:
cpu: 0.5
memory: 256Mi
limits:
cpu: 1
memory: 4Gi
nodeSelector: {}
tolerations:
- key: "node-role.kubernetes.io/master"
effect: "NoSchedule"
hub:
resources:
requests:
cpu: 0.5
memory: 256Mi
limits:
cpu: 1
memory: 4Gi
allowNamedServers: true
networkPolicy:
# FIXME: For dask gateway
Expand All @@ -143,11 +164,32 @@ hubs:
tolerations:
- key: "node-role.kubernetes.io/master"
effect: "NoSchedule"
resources:
requests:
cpu: 0.5
memory: 512Mi
limits:
cpu: 2
memory: 4Gi
controller:
tolerations:
- key: "node-role.kubernetes.io/master"
effect: "NoSchedule"
resources:
requests:
cpu: 0.5
memory: 512Mi
limits:
cpu: 2
memory: 4Gi
gateway:
resources:
requests:
cpu: 0.5
memory: 512Mi
limits:
cpu: 2
memory: 4Gi
tolerations:
- key: "node-role.kubernetes.io/master"
effect: "NoSchedule"
Expand Down
12 changes: 6 additions & 6 deletions kops/carbonplan.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ local data = {
name: "master"
},
spec+: {
machineType: "t3.medium",
machineType: "m5.2xlarge",
subnets: [zone],
nodeLabels+: {
"hub.jupyter.org/node-purpose": "core",
"k8s.dask.org/node-purpose": "core"
},
// Needs to be at least 1
minSize: 1,
maxSize: 3,
// CarbonPlan runs big jobs, so let's be resilient here
minSize: 3,
maxSize: 6,
role: "Master"
},
},
Expand All @@ -57,7 +57,7 @@ local data = {
spec+: {
machineType: n.machineType,
subnets: [zone],
maxSize: 20,
maxSize: 500,
role: "Node",
nodeLabels+: {
"hub.jupyter.org/node-purpose": "user",
Expand All @@ -82,7 +82,7 @@ local data = {
spec+: {
machineType: n.machineType,
subnets: [zone],
maxSize: 20,
maxSize: 500,
role: "Node",
nodeLabels+: {
"k8s.dask.org/node-purpose": "worker"
Expand Down
Loading

0 comments on commit 086b256

Please sign in to comment.