Add ability to not start Monitor when calling ray start (#13505)

This commit is contained in:
Ameer Haj Ali
2021-01-19 04:31:53 +02:00
committed by GitHub
parent fb16dd5265
commit 1fbc3ddfac
3 changed files with 17 additions and 4 deletions
+4
View File
@@ -95,6 +95,8 @@ class RayParams:
metrics_agent_port(int): The port to bind metrics agent.
metrics_export_port(int): The port at which metrics are exposed
through a Prometheus endpoint.
no_monitor(bool): If True, the ray autoscaler monitor for this cluster
will not be started.
_system_config (dict): Configuration for overriding RayConfig
defaults. Used to set system configuration and for experimental Ray
core feature flags.
@@ -150,6 +152,7 @@ class RayParams:
enable_object_reconstruction=False,
metrics_agent_port=None,
metrics_export_port=None,
no_monitor=False,
lru_evict=False):
self.object_ref_seed = object_ref_seed
self.redis_address = redis_address
@@ -190,6 +193,7 @@ class RayParams:
self.java_worker_options = java_worker_options
self.metrics_agent_port = metrics_agent_port
self.metrics_export_port = metrics_export_port
self.no_monitor = no_monitor
self.start_initial_python_workers_for_first_job = (
start_initial_python_workers_for_first_job)
self._system_config = _system_config or {}