Files
tea/deploy/dask-verify.yaml
T

72 lines
2.6 KiB
YAML

# tea-verify: test suite + HK1K check, in its own Dask cluster: 9 pods x 4
# worker processes (1 thread, 4.25 GiB each), the size of the former "test"
# cluster less one pod (runner + scheduler use part of a node). If other
# clusters share the nodes, lower replicas / requests.
# Applied by deploy/verify.sh (it substitutes COMMIT). HK1K (public) only;
# the eeg-data PVC (patient data) is NOT mounted.
apiVersion: kubernetes.dask.org/v1
kind: DaskJob
metadata:
name: tea-verify
spec:
job:
spec:
restartPolicy: Never
containers:
- name: job
image: 192.168.20.18:5000/tea-verify:COMMIT
workingDir: /opt/tea-modulo
command: [sh, -c]
args:
- |
set -e
export DASK_SCHEDULER="$DASK_SCHEDULER_ADDRESS"
export MLFLOW_DISABLE_AGENT_HINT=1
python -m pytest -q -p no:cacheprovider -m "not cluster"
python -m pytest -q -p no:cacheprovider -m cluster
python -m tea_modulo.verify hk1k --out processed/usuarios/alberto/tea-verify/
env:
- {name: OMP_NUM_THREADS, value: "1"}
- {name: OPENBLAS_NUM_THREADS, value: "1"}
- {name: MKL_NUM_THREADS, value: "1"}
resources:
requests: {memory: 6Gi, cpu: "2"}
limits: {memory: 6Gi}
cluster:
spec:
worker:
replicas: 9
spec:
containers:
- name: worker
image: 192.168.20.18:5000/tea-verify:COMMIT
args: [dask-worker, --name, $(DASK_WORKER_NAME), --nworkers, "4", --nthreads, "1", --memory-limit, 4.25GiB]
resources:
requests: {memory: 19Gi, cpu: "4"}
limits: {memory: 19Gi}
env:
- {name: AWS_ENDPOINT_URL, value: "http://seaweedfs-s3.seaweedfs:8333"}
- {name: OMP_NUM_THREADS, value: "1"}
- {name: OPENBLAS_NUM_THREADS, value: "1"}
- {name: MKL_NUM_THREADS, value: "1"}
- {name: MLFLOW_DISABLE_AGENT_HINT, value: "1"}
envFrom:
- secretRef: {name: seaweed-s3}
scheduler:
spec:
containers:
- name: scheduler
image: 192.168.20.18:5000/tea-verify:COMMIT
args: [dask-scheduler]
ports:
- {name: tcp-comm, containerPort: 8786}
- {name: http-dashboard, containerPort: 8787}
service:
type: ClusterIP
selector:
dask.org/cluster-name: tea-verify
dask.org/component: scheduler
ports:
- {name: tcp-comm, port: 8786, targetPort: tcp-comm}
- {name: http-dashboard, port: 8787, targetPort: http-dashboard}