[Core] Randomize and 'Reserve' Port Generated for Node Manager (#8628)

This commit is contained in:
Ian Rodney
2020-06-03 12:19:03 -07:00
committed by GitHub
parent 1534568272
commit 7a2c9524d1
2 changed files with 40 additions and 7 deletions
+4 -1
View File
@@ -1230,7 +1230,8 @@ def start_raylet(redis_address,
include_java=False,
java_worker_options=None,
load_code_from_local=False,
fate_share=None):
fate_share=None,
socket_to_use=None):
"""Start a raylet, which is a combined local scheduler and object manager.
Args:
@@ -1361,6 +1362,8 @@ def start_raylet(redis_address,
"--temp_dir={}".format(temp_dir),
"--session_dir={}".format(session_dir),
]
if socket_to_use:
socket_to_use.close()
process_info = start_ray_process(
command,
ray_constants.PROCESS_TYPE_RAYLET,