Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dask settings in docker image #393

Merged
merged 2 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
154 changes: 0 additions & 154 deletions docker/Dockerfile.cc-ubuntu

This file was deleted.

17 changes: 17 additions & 0 deletions docker/dask/dask.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
distributed:
scheduler:
allowed-failures: 10
bandwidth: 1000000000
work-stealing: False
worker:
memory:
target: 0.7
spill: 0.9
pause: 0.92
terminate: 0
profile:
interval: 1d
cycle: 2d
low-level: False
diagnostics:
nvml: False

version: 2

dashboard:
Expand Down
2 changes: 1 addition & 1 deletion docker/k8s-worker/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
; Adding (ENV_WORKER_ID) should fixes https://github.com/CoffeaTeam/jhub/issues/37
; Add later: --nanny-port 8001 --nanny-contact-address tls://%(ENV_WORKER_IP)s:8001
[program:dask-worker]
command=/bin/bash -c "dask-worker tls://%(ENV_HOST_IP)s:8786 --nthreads 2 --tls-ca-file %(ENV_CERT_DIR)s/..data/ca.pem --tls-cert %(ENV_CERT_DIR)s/..data/hostcert.pem --tls-key %(ENV_CERT_DIR)s/..data/hostcert.pem --nanny --listen-address tls://0.0.0.0:8788 --name kubernetes-worker-%(ENV_WORKER_ID)s --contact-address tls://%(ENV_WORKER_IP)s:8788"
command=/bin/bash -c "dask-worker tls://%(ENV_HOST_IP)s:8786 --nthreads 1 --tls-ca-file %(ENV_CERT_DIR)s/..data/ca.pem --tls-cert %(ENV_CERT_DIR)s/..data/hostcert.pem --tls-key %(ENV_CERT_DIR)s/..data/hostcert.pem --nanny --listen-address tls://0.0.0.0:8788 --name kubernetes-worker-%(ENV_WORKER_ID)s --contact-address tls://%(ENV_WORKER_IP)s:8788"
startretries=100
autostart=true
autorestart=true
Expand Down
2 changes: 1 addition & 1 deletion docker/prepare-env/prepare-env-cc-analysis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ if [[ ! -v COFFEA_CASA_SIDECAR ]]; then
--tls-key $FILE_KEY \
--nthreads $CPUS \
--memory-limit $MEMORY_MB_FORMATTED \
--no-nanny \
--nanny \
--death-timeout 60 \
--protocol tls \
--lifetime 7200 \
Expand Down
Loading