Skip to content

Commit

Permalink
Option to customize --nthreads (#64)
Browse files Browse the repository at this point in the history
* Add threads_per_worker parameter

* Document threads_per_worker option
  • Loading branch information
kazimuth authored May 29, 2020
1 parent 8f70d3f commit 9406c7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dask/templates/dask-worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
- {{ template "dask.fullname" . }}-scheduler:{{ .Values.scheduler.servicePort }}
{{- if .Values.worker.resources.limits }}
- --nthreads
- {{ .Values.worker.resources.limits.cpu | default .Values.worker.default_resources.cpu | quote }}
- {{ .Values.worker.threads_per_worker | default .Values.worker.resources.limits.cpu | default .Values.worker.default_resources.cpu | quote }}
- --memory-limit
- {{ .Values.worker.resources.limits.memory | default .Values.worker.default_resources.memory | quote }}
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions dask/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ worker:
securityContext: {}
# serviceAccountName: ""
# port: ""
# this option overrides "--nthreads" on workers, which defaults to resources.limits.cpu / default_resources.limits.cpu
# use it if you need to limit the amount of threads used by multicore workers, or to make workers with non-whole-number cpu limits
# threads_per_worker: 1

jupyter:
name: jupyter
Expand Down

0 comments on commit 9406c7d

Please sign in to comment.