mirror of
https://github.com/wassname/ray.git
synced 2026-07-06 05:16:30 +08:00
[cli][ray] update ray cli message (#10823)
This commit is contained in:
@@ -79,7 +79,7 @@ Starter SLURM script
|
||||
redis_password = sys.argv[1]
|
||||
num_cpus = int(sys.argv[2])
|
||||
|
||||
ray.init(address=os.environ["ip_head"], redis_password=redis_password)
|
||||
ray.init(address=os.environ["ip_head"], _redis_password=redis_password)
|
||||
|
||||
print("Nodes in the Ray cluster:")
|
||||
print(ray.nodes())
|
||||
|
||||
@@ -584,7 +584,7 @@ def start(node_ip_address, redis_address, address, redis_port, port,
|
||||
cli_logger.print(
|
||||
"ray{}init(address{}{}{})", c.magenta("."),
|
||||
c.magenta("="), c.yellow("'auto'"),
|
||||
", redis_password{}{}".format(
|
||||
", _redis_password{}{}".format(
|
||||
c.magenta("="),
|
||||
c.yellow("'" + redis_password + "'"))
|
||||
if redis_password else "")
|
||||
|
||||
@@ -10,7 +10,7 @@ Next steps
|
||||
|
||||
Alternatively, use the following Python code:
|
||||
import ray
|
||||
ray\.init\(address='auto', redis_password='.+'\)
|
||||
ray\.init\(address='auto', _redis_password='.+'\)
|
||||
|
||||
If connection fails, check your firewall settings and network configuration.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user