Skip to content

Commit

Permalink
fix(helm): Raise CPU limit for dataset worker container
Browse files Browse the repository at this point in the history
  • Loading branch information
nellh committed May 28, 2021
1 parent 3f0e9ba commit dcf0312
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions helm/eksctl-cluster-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ nodeGroups:
preBootstrapCommands:
- apt update
- apt install -y nfs-common zfsutils-linux
- name: storage
- name: storage-m5
amiFamily: Ubuntu2004
instanceType: r5ad.large
instanceType: m5ad.2xlarge
desiredCapacity: 2
labels: { role: storage }
availabilityZones:
- us-west-2b
- us-west-2c
Expand Down
8 changes: 4 additions & 4 deletions helm/openneuro/templates/dataset-worker-stateful-set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ spec:
containers:
- name: {{ .Release.Name }}-dataset-worker
image: 'openneuro/datalad-service:v{{ .Chart.AppVersion }}'
command: ["gunicorn", "--bind", "0.0.0.0:80", "--reload", "datalad_service.app:create_app('/datasets')", "--workers", "4", "--worker-class", "gevent", "--timeout", "60", "--keep-alive", "30"]
command: ["gunicorn", "--bind", "0.0.0.0:80", "--reload", "datalad_service.app:create_app('/datasets')", "--workers", "8", "--worker-class", "gevent", "--timeout", "60", "--keep-alive", "30"]
resources:
limits:
cpu: "1.6"
cpu: "3"
memory: "10Gi"
requests:
cpu: "0.3"
memory: "1Gi"
cpu: "1"
memory: "4Gi"
ports:
- containerPort: 80
envFrom:
Expand Down

0 comments on commit dcf0312

Please sign in to comment.