-
-
Notifications
You must be signed in to change notification settings - Fork 155
Closed as not planned
Description
I'd like to propose dask-kubernetes deprecate the current usage of worker-template
and worker-template-path
from the config file. I suggest this for a few reasons:
- Specification of the full cli executable sequence is implemented as a template in other cluster managers. Typically (e.g. dask-jobqueue, dask-yarn), keys like
cores
,processes
, andmemory
are provided to theCluster
constructor. - It is easy to end up with templates that have misaligned specifications (i.e. a user may edit dask's
memory-limit
without editing the resource requirements.
Here's an example of the default dask-kubernetes setup:
dask-kubernetes/dask_kubernetes/kubernetes.yaml
Lines 11 to 38 in e17accc
worker-template-path: null | |
worker-template: {} | |
# kind: Pod | |
# metadata: | |
# labels: | |
# foo: bar | |
# baz: quux | |
# spec: | |
# restartPolicy: Never | |
# containers: | |
# - image: daskdev/dask:latest | |
# args: | |
# - dask-worker | |
# - --nthreads | |
# - '2' | |
# - --no-bokeh | |
# - --memory-limit | |
# - 6GB | |
# - --death-timeout | |
# - '60' | |
# resources: | |
# limits: | |
# cpu: "1.75" | |
# memory: 6G | |
# requests: | |
# cpu: "1.75" | |
# memory: 6G |
Ideally, we can switch to something more concise:
kubernetes:
worker:
cores: 2
processes: 1
memory: 6G
image: daskdev/dask:latest
Where the template and pod spec can be created on the fly.