diff --git a/python/xorbits/cluster/slurm.sh b/python/xorbits/cluster/slurm.sh index d9b8f60c1..d33564598 100644 --- a/python/xorbits/cluster/slurm.sh +++ b/python/xorbits/cluster/slurm.sh @@ -13,7 +13,7 @@ port=16380 web_port=16379 echo "Starting SUPERVISOR at ${head_node}" srun --nodes=1 --ntasks=1 -w "${head_node}" \ - xorbits-supervisor -H "${head_node}" -p "${port}" -w "${web_port}" --log-dir /home/nfsdir/xiaoyu/ & + xorbits-supervisor -H "${head_node}" -p "${port}" -w "${web_port}" & sleep 10 worker_num=$((SLURM_JOB_NUM_NODES - 1)) for ((i = 1; i <= worker_num; i++)); do @@ -21,7 +21,7 @@ for ((i = 1; i <= worker_num; i++)); do port_i=$((port + i)) echo "Starting WORKER $i at ${node_i}" srun --nodes=1 --ntasks=1 -w "${node_i}" \ - xorbits-worker -H "${node_i}" -p "${port_i}" -s "${head_node}":"${port}" --log-dir /home/nfsdir/xiaoyu/ & + xorbits-worker -H "${node_i}" -p "${port_i}" -s "${head_node}":"${port}" & done sleep 5 address=http://"${head_node}":"${web_port}" \ No newline at end of file