26 namespace ExecutorResourceMgr_Namespace {
47 : std::runtime_error(
"Query exceeded queue timeout threshold " +
54 const size_t requested_buffer_pool_mem,
60 ") in executor resource pool") {}
64 switch (device_type) {
80 "Query requested more CPU slots (" + std::
to_string(requested_cpu_slots) +
81 ") than max available for query (" + std::
to_string(max_cpu_slots) +
82 ") in executor resource pool") {}
89 "Query requested more GPU slots (" + std::
to_string(requested_gpu_slots) +
90 ") than available per query (" + std::
to_string(max_gpu_slots) +
91 ") in executor resource pool") {}
97 const size_t requested_cpu_result_mem)
99 "Query requested more CPU result memory (" +
100 format_num_bytes(requested_cpu_result_mem) +
") than available per query (" +
126 "cpu_buffer_pool_mem",
127 "gpu_buffer_pool_mem"};
164 "pinned_cpu_buffer_pool_mem",
165 "pinned_gpu_buffer_pool_mem",
166 "pageable_cpu_buffer_pool_mem",
167 "pageable_gpu_buffer_pool_mem",
std::vector< int > ChunkKey
QueryNeedsTooMuchCpuResultMem(const size_t max_cpu_result_mem, const size_t requested_cpu_result_mem)
QueryNeedsTooManyCpuSlots(const size_t max_cpu_slots, const size_t requested_cpu_slots)
static constexpr size_t ResourceTypeSize
ResourceType
Stores the resource type for a ExecutorResourcePool request.
std::string get_device_type_string(const ExecutorDeviceType device_type)
static const char * ResourceTypeStrings[]
ResourceSubtype
Stores the resource sub-type for a ExecutorResourcePool request.
RequestId getRequestId() const
std::string resource_subtype_to_string(const ResourceSubtype resource_subtype)
QueryNeedsTooMuchBufferPoolMem(const size_t max_buffer_pool_mem, const size_t requested_buffer_pool_mem, const ExecutorDeviceType device_type)
QueryTimedOutWaitingInQueue(const size_t timeout_ms)
std::string resource_type_to_string(const ResourceType resource_type)
static constexpr size_t ResourceSubtypeSize
QueryNeedsTooManyGpuSlots(const size_t max_gpu_slots, const size_t requested_gpu_slots)
std::string getErrorMsg() const
static const char * ResourceSubtypeStrings[]
ExecutorResourceMgrError(RequestId const request_id, std::string error_msg)