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
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
RMConfigException
public String getQueueId()
getQueueId
in interface QueryQueueConfig
public String getQueueName()
getQueueName
in interface QueryQueueConfig
public long getQueueTotalMemoryInMB(int numClusterNodes)
getQueueTotalMemoryInMB
in interface QueryQueueConfig
numClusterNodes
- total number of available cluster nodes which can participate in this queuepublic long getMaxQueryMemoryInMBPerNode()
getMaxQueryMemoryInMBPerNode
in interface QueryQueueConfig
public long getMaxQueryTotalMemoryInMB(int numClusterNodes)
QueryQueueConfig
getMaxQueryTotalMemoryInMB
in interface QueryQueueConfig
numClusterNodes
- number of available cluster nodespublic boolean waitForPreferredNodes()
QueryQueueConfig
waitForPreferredNodes
in interface QueryQueueConfig
public int getMaxAdmissibleQueries()
getMaxAdmissibleQueries
in interface QueryQueueConfig
public int getMaxWaitingQueries()
getMaxWaitingQueries
in interface QueryQueueConfig
public int getWaitTimeoutInMs()
getWaitTimeoutInMs
in interface QueryQueueConfig
Copyright © 2022 The Apache Software Foundation. All rights reserved.