Add ability to specify worker and driver ports (#7833)

This commit is contained in:
Edward Oakes
2020-04-16 13:49:25 -05:00
committed by GitHub
parent d5f517b2f5
commit 9f751ff8c4
20 changed files with 351 additions and 108 deletions
+7
View File
@@ -376,6 +376,13 @@ def test_calling_start_ray_head(call_ray_stop_only):
])
subprocess.check_output(["ray", "stop"])
# Test starting Ray with the worker port range specified.
subprocess.check_output([
"ray", "start", "--head", "--min-worker-port", "12345",
"--max-worker-port", "12346"
])
subprocess.check_output(["ray", "stop"])
# Test starting Ray with the number of CPUs specified.
subprocess.check_output(["ray", "start", "--head", "--num-cpus", "2"])
subprocess.check_output(["ray", "stop"])