Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make carbonplan cluster more resilient #525

Merged
merged 6 commits into from
Jul 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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