0

我不清楚在使用 [dask-gateway][1] 时如何替换 dask 调度程序/工作程序模板。

背景:我之前成功配置了 dask-distributed 和 dask-kubernetes 以在提交新任务时使用以下模板:

kubernetes:
  scheduler-template:
    kind: Pod
    metadata:
      labels:
        foo: bar
    spec:
      restartPolicy: Never
      containers:
      - name: dask-scheduler
        image: eu.gcr.io/foo/bar/baz:latest
        imagePullPolicy: IfNotPresent
        args:
          - dask-scheduler
          - --no-dashboard
        env:
          - name: EXTRA_PIP_PACKAGES
            value: git+https://github.com/dask/distributed pandas scikit-learn --upgrade
  worker-template:
    kind: Pod
    metadata:
      labels:
        foo: bar
    spec:
      restartPolicy: Never
      containers:
      - name: dask-worker
        image: eu.gcr.io/foo/bar/baz:latest
        imagePullPolicy: IfNotPresent
        args:
          - dask-worker
          - --nprocs
          - auto
          - --no-dashboard
          - --death-timeout
          - "60"
        env:
          - name: EXTRA_PIP_PACKAGES
            value: git+https://github.com/dask/distributed pandas scikit-learn --upgrade

有人可以帮助我更好地了解如何配置使用 dask-gateway 创建的调度程序和工作人员以使用上述配置吗?[1]:https ://gateway.dask.org/install-kube.html#

4

0 回答 0