示例#1
0
 def init_router(self):
     logger.info(LOG_PREFIX + "Initializing queuing system")
     self.router_actor_handle = CentralizedQueuesActor.remote()
     self.router_actor_handle.register_self_handle.remote(
         self.router_actor_handle)
示例#2
0
 def init_api_server(self):
     logger.info(LOG_PREFIX + "Initalizing routing table")
     self.kv_store_actor_handle = KVStoreProxyActor.remote()
     logger.info((LOG_PREFIX + "Health checking routing table {}").format(
         ray.get(self.kv_store_actor_handle.get_request_count.remote())), )
示例#3
0
 def init_http_server(self):
     logger.info(LOG_PREFIX + "Initializing HTTP server")
     self.http_actor_handle = HTTPActor.remote(self.kv_store_actor_handle,
                                               self.router_actor_handle)
     self.http_actor_handle.run.remote(host="0.0.0.0", port=8000)
     self.http_address = "http://localhost:8000"
示例#4
0
 def init_metric_monitor(self, gc_window_seconds=3600):
     logger.info(LOG_PREFIX + "Initializing metric monitor")
     self.metric_monitor_handle = MetricMonitor.remote(gc_window_seconds)
     start_metric_monitor_loop.remote(self.metric_monitor_handle)
     self.metric_monitor_handle.add_target.remote(self.router_actor_handle)