- High: It blocks me to complete my task.
I am running ray cluster using cluster.yaml
file. I have 3 worker node and one head node. How can I set environment variable per node?
I am running ray cluster using cluster.yaml
file. I have 3 worker node and one head node. How can I set environment variable per node?
Do you want to set different env var per node?
Yes.
Actually, I want to set different values of variables for each node.
Yea, it’s doable.
Basically you need to specify a node type for each worker node. Under the config for each node type, you can specify worker_setup_commands
(Cluster YAML Configuration Options — Ray 2.0.0) like ENV_VAR1=0 ray start --address=$RAY_HEAD_IP:6379 --object-manager-port=8076 --object-store-memory=80000000000
. Or if you are using docker, you can use the run_options
field and set “-e” arguments that will be passed to docker run.
Thanks for resolving the query @jjyao .