Enable GCS Service by default (#7541)

This commit is contained in:
fangfengbin
2020-03-24 14:20:23 +08:00
committed by GitHub
parent b4030cdbbe
commit bf866de6fd
10 changed files with 24 additions and 15 deletions
+1 -1
View File
@@ -626,7 +626,7 @@ class Node:
# If this is the head node, start the relevant head node processes.
self.start_redis()
if os.environ.get(ray_constants.RAY_GCS_SERVICE_ENABLED, None):
if os.environ.get(ray_constants.RAY_GCS_SERVICE_ENABLED, True):
self.start_gcs_server()
else:
self.start_raylet_monitor()
@@ -82,7 +82,7 @@ def test_driver_lives_sequential(ray_start_regular):
ray.worker._global_node.kill_plasma_store()
ray.worker._global_node.kill_log_monitor()
ray.worker._global_node.kill_monitor()
if os.environ.get(ray_constants.RAY_GCS_SERVICE_ENABLED, None):
if os.environ.get(ray_constants.RAY_GCS_SERVICE_ENABLED, True):
ray.worker._global_node.kill_gcs_server()
else:
ray.worker._global_node.kill_raylet_monitor()
@@ -96,7 +96,7 @@ def test_driver_lives_sequential(ray_start_regular):
def test_driver_lives_parallel(ray_start_regular):
all_processes = ray.worker._global_node.all_processes
if os.environ.get(ray_constants.RAY_GCS_SERVICE_ENABLED, None):
if os.environ.get(ray_constants.RAY_GCS_SERVICE_ENABLED, True):
process_infos = (all_processes[ray_constants.PROCESS_TYPE_PLASMA_STORE]
+ all_processes[ray_constants.PROCESS_TYPE_GCS_SERVER]
+ all_processes[ray_constants.PROCESS_TYPE_RAYLET] +
@@ -132,7 +132,7 @@ def test_driver_lives_sequential(ray_start_regular):
ray.worker._global_node.kill_plasma_store()
ray.worker._global_node.kill_log_monitor()
ray.worker._global_node.kill_monitor()
if os.environ.get(ray_constants.RAY_GCS_SERVICE_ENABLED, None):
if os.environ.get(ray_constants.RAY_GCS_SERVICE_ENABLED, True):
ray.worker._global_node.kill_gcs_server()
else:
ray.worker._global_node.kill_raylet_monitor()
@@ -145,7 +145,7 @@ def test_driver_lives_sequential(ray_start_regular):
reason="Hanging with new GCS API.")
def test_driver_lives_parallel(ray_start_regular):
all_processes = ray.worker._global_node.all_processes
if os.environ.get(ray_constants.RAY_GCS_SERVICE_ENABLED, None):
if os.environ.get(ray_constants.RAY_GCS_SERVICE_ENABLED, True):
process_infos = (all_processes[ray_constants.PROCESS_TYPE_PLASMA_STORE]
+ all_processes[ray_constants.PROCESS_TYPE_GCS_SERVER]
+ all_processes[ray_constants.PROCESS_TYPE_RAYLET] +
+1 -1
View File
@@ -145,7 +145,7 @@ def test_raylet_tempfiles(shutdown_only):
"raylet.err"
}
if os.environ.get(ray_constants.RAY_GCS_SERVICE_ENABLED, None):
if os.environ.get(ray_constants.RAY_GCS_SERVICE_ENABLED, True):
log_files_expected.update({"gcs_server.out", "gcs_server.err"})
else:
log_files_expected.update({"raylet_monitor.out", "raylet_monitor.err"})