Pipelining task submission to workers (#9363)

* first step of pipelining

* pipelining tests & default configs
- added pipelining unit tests in direct_task_transport_test.cc
- added an entry in ray_config_def.h, ray_config.pxi, and ray_config.pxd to configure the parameter controlling the maximum number of tasks that can be in fligh to each worker
- consolidated worker_to_lease_client_ and worker_to_lease_client_ hash maps in direct_task_transport.h into a single one called worker_to_lease_entry_

* post-review revisions

* linting, following naming/style convention

* linting
This commit is contained in:
Gabriele Oliaro
2020-07-17 13:45:13 -04:00
committed by GitHub
parent b351d13940
commit 026c009086
7 changed files with 214 additions and 19 deletions
+2
View File
@@ -90,3 +90,5 @@ cdef extern from "ray/common/ray_config.h" nogil:
c_bool gcs_actor_service_enabled() const
c_bool put_small_object_in_memory_store() const
uint32_t max_tasks_in_flight_per_worker() const
+4
View File
@@ -161,3 +161,7 @@ cdef class Config:
@staticmethod
def put_small_object_in_memory_store():
return RayConfig.instance().put_small_object_in_memory_store()
@staticmethod
def max_tasks_in_flight_per_worker():
return RayConfig.instance().max_tasks_in_flight_per_worker()