DEPRICATED: See the new repo
Code lives here now: https://github.com/PermafrostDiscoveryGateway/viz-workflow/tree/ray_workflow
Ray PDG's Viz-staging, Viz-Raster and Viz-3D in parallel using Ray Core and Ray Workflows.
Run this to install dependencies (only tested on x86_64):
conda env create --file environment_cross_platform.yml
TODO: Reduce strictness of env.yml requirements.
# Start head node. It will also act as a worker node by default.
ray start --head --port=6379 --dashboard-port=8265
# Start worker nodes
- Login to a login node
ssh <👉YOUR_NCSA_USERNAME👈>@login.delta.ncsa.illinois.edu
- Start a Slurm job.
cpus-per-task
must be large (128 maximum on Delta) for Ray to scale well.
# max CPU node request (for single node)
srun --account=<👉YOUR_CPU_ACCOUNT👈> --partition=cpu \
--nodes=1 --tasks=1 --tasks-per-node=1 \
--cpus-per-task=128 --mem=240g \
--time=02:00:00 \
--pty bash
- Then SSH into the compute node you have running Ray.
ssh cn001 (for example)
Forward port from compute node to your local personal computer:
ssh -L 8265:localhost:8265 <local_username>@<your_locaL_machine>
# Navigate your web browser to: localhost:8265/
Documenting an env (best way to create environment.yml):
conda env export | grep -v "^prefix: " > environment.yml