2024-01-05 12:22:52 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ $# -ne 5 ]; then
|
2024-03-25 13:52:40 +00:00
|
|
|
echo "Usage: $0 <ws_dir> <env_path> <ray_address> <redis_password> <obj_store_memory>"
|
2024-01-05 12:22:52 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
export WS_DIR=$1
|
2024-03-25 13:52:40 +00:00
|
|
|
export ENV_PATH=$2
|
2024-01-05 12:22:52 +00:00
|
|
|
export RAY_ADDRESS=$3
|
|
|
|
export REDIS_PASSWORD=$4
|
|
|
|
export OBJECT_STORE_MEMORY=$5
|
|
|
|
|
|
|
|
source $ENV_PATH/bin/activate
|
|
|
|
|
|
|
|
ray start --address=$RAY_ADDRESS \
|
|
|
|
--redis-password=$REDIS_PASSWORD \
|
|
|
|
--object-store-memory=$OBJECT_STORE_MEMORY \
|
2024-03-25 13:52:40 +00:00
|
|
|
--block
|