This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OPTS=`getopt -o p:P:T:M:s:m:h --long port:nprocs:,nthreads:,memory-limit:,socks:,monitor:,help -- "$@"` | |
usage () { | |
echo "usage : bash dask-cluster.sh -M memory-limit -P nprocs -T nthreads -s SOCKSPORT -m MONITORHOST -p MONITORPORT [ clientcommand ... ] " | |
echo | |
echo launch a transient dask cluster via SLURM. The purpose of the cluster is to run a single dask | |
echo client. | |
echo | |
echo The script will setup a SOCKS proxy at localhost:SOCKSPORT on MONITORHOST to access the cluster. | |
echo via the ssh service at MONITORHOST:MONITORPORT |