[Dashboard] Start the new dashboard (#9860)

This commit is contained in:
fyrestone
2020-08-13 11:01:46 +08:00
committed by GitHub
parent 16486a8df3
commit 739933e5b8
34 changed files with 1077 additions and 103 deletions
+7 -3
View File
@@ -617,8 +617,11 @@ class Node:
if we fail to start the dashboard. Otherwise it will print
a warning if we fail to start the dashboard.
"""
stdout_file, stderr_file = self.get_log_file_handles(
"dashboard", unique=True)
if "RAY_USE_NEW_DASHBOARD" in os.environ:
stdout_file, stderr_file = None, None
else:
stdout_file, stderr_file = self.get_log_file_handles(
"dashboard", unique=True)
self._webui_url, process_info = ray.services.start_dashboard(
require_dashboard,
self._ray_params.dashboard_host,
@@ -800,7 +803,8 @@ class Node:
self.start_plasma_store()
self.start_raylet()
self.start_reporter()
if "RAY_USE_NEW_DASHBOARD" not in os.environ:
self.start_reporter()
if self._ray_params.include_log_monitor:
self.start_log_monitor()