Skip to content

Commit

Permalink
[core] recover startup logs (ray-project#12876)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardliaw authored Dec 15, 2020
1 parent 6795d7c commit 87cf1a9
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions python/ray/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,12 +733,19 @@ def start_worker(self):
raise NotImplementedError

def start_monitor(self):
"""Start the monitor."""
"""Start the monitor.
Autoscaling output goes to these monitor.err/out files, and
any modification to these files may break existing
cluster launching commands.
"""
stdout_file, stderr_file = self.get_log_file_handles(
"monitor", unique=True)
process_info = ray._private.services.start_monitor(
self._redis_address,
self._logs_dir,
stdout_file=subprocess.DEVNULL,
stderr_file=subprocess.DEVNULL,
stdout_file=stdout_file,
stderr_file=stderr_file,
autoscaling_config=self._ray_params.autoscaling_config,
redis_password=self._ray_params.redis_password,
fate_share=self.kernel_fate_share)
Expand Down

0 comments on commit 87cf1a9

Please sign in to comment.