public class QueryQueueConfigImpl extends Object implements QueryQueueConfig
ResourcePool. It also generates a unique UUID for each queue
which will be later used by Drillbit to store in Zookeeper along with
org.apache.drill.exec.proto.beans.DrillbitEndpoint. This UUID is used in the leader election mechanism in
which Drillbit participates for each of the configured rm queue.| Constructor and Description |
|---|
QueryQueueConfigImpl(com.typesafe.config.Config queueConfig,
String poolName,
NodeResources queueNodeResource) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxAdmissibleQueries() |
long |
getMaxQueryMemoryInMBPerNode() |
long |
getMaxQueryTotalMemoryInMB(int numClusterNodes)
Given number of available nodes in the cluster what is the max memory in MB a query in this queue can be assigned
cluster wide
|
int |
getMaxWaitingQueries() |
String |
getQueueId() |
String |
getQueueName() |
long |
getQueueTotalMemoryInMB(int numClusterNodes)
Total memory share of this queue in the cluster based on per node resource share.
|
int |
getWaitTimeoutInMs() |
String |
toString() |
boolean |
waitForPreferredNodes()
Determines if admitted queries in this queue should wait in the queue if resources on the preferred assigned
nodes of a query determined by planner is unavailable.
|
public QueryQueueConfigImpl(com.typesafe.config.Config queueConfig,
String poolName,
NodeResources queueNodeResource)
throws RMConfigException
RMConfigExceptionpublic String getQueueId()
getQueueId in interface QueryQueueConfigpublic String getQueueName()
getQueueName in interface QueryQueueConfigpublic long getQueueTotalMemoryInMB(int numClusterNodes)
getQueueTotalMemoryInMB in interface QueryQueueConfignumClusterNodes - total number of available cluster nodes which can participate in this queuepublic long getMaxQueryMemoryInMBPerNode()
getMaxQueryMemoryInMBPerNode in interface QueryQueueConfigpublic long getMaxQueryTotalMemoryInMB(int numClusterNodes)
QueryQueueConfiggetMaxQueryTotalMemoryInMB in interface QueryQueueConfignumClusterNodes - number of available cluster nodespublic boolean waitForPreferredNodes()
QueryQueueConfigwaitForPreferredNodes in interface QueryQueueConfigpublic int getMaxAdmissibleQueries()
getMaxAdmissibleQueries in interface QueryQueueConfigpublic int getMaxWaitingQueries()
getMaxWaitingQueries in interface QueryQueueConfigpublic int getWaitTimeoutInMs()
getWaitTimeoutInMs in interface QueryQueueConfigCopyright © 2021 The Apache Software Foundation. All rights reserved.