From ead67e10fa22362fd14c3423457445e83a9787ea Mon Sep 17 00:00:00 2001 From: Adam Tilghman Date: Fri, 23 Feb 2024 14:49:29 -0800 Subject: [PATCH] Updating start-workers to support /public mounts, launch-sh from dsmlp-login --- start-workers.sh | 202 ++++++++++++++++++++++++++--------------------- 1 file changed, 114 insertions(+), 88 deletions(-) diff --git a/start-workers.sh b/start-workers.sh index eb80877..b39c0c4 100644 --- a/start-workers.sh +++ b/start-workers.sh @@ -1,97 +1,123 @@ #!/bin/bash -# Modify this script by copying it to your home directory -# *** be sure to remove the "exec" line below from your copy! *** -USERSCRIPT=$HOME/start-workers.sh -if [ -x "$USERSCRIPT" ]; then - exec "$USERSCRIPT" "$@" -fi - -NUM_WORKERS=2 +NUM_WORKERS=1 -WORKER_CPU_REQUEST=3 #set -WORKER_CPU_LIMIT=3 #upper bound -WORKER_MEM_REQUEST=8192M -WORKER_MEM_LIMIT=8192M +WORKER_CPU_REQUEST=1 +WORKER_CPU_LIMIT=2 +WORKER_MEM_REQUEST=2048M +WORKER_MEM_LIMIT=2048M WORKER_GPU_COUNT=0 +IMAGE=${JUPYTER_IMAGE_SPEC:-${DOCKER_IMAGE}} + if kubectl get deployment deployment-ray-worker 2>/dev/null > /dev/null; then - kubectl delete -f deployment deployment-ray-worker + kubectl delete deployment deployment-ray-worker fi -kubectl create -f - <