Interface ResourceGroup
public interface ResourceGroup
-
Method Summary
Modifier and TypeMethodDescriptionlongintgetId()booleanintintintlongbooleanvoidsetCpuQuotaGenerationMillisPerSecond(long rate) Rate at which distributed CPU usage quota regenerates.voidsetDisabled(boolean disabled) Marks the group as disabled.voidsetHardConcurrencyLimit(int hardConcurrencyLimit) Maximum number of concurrently running queries, after which new queries will queue instead of starting.voidsetHardCpuLimit(Duration limit) Threshold on total distributed CPU usage after which new queries will queue instead of starting.voidsetJmxExport(boolean export) Whether to export statistics about this group and allow configuration via JMX.voidsetMaxQueuedQueries(int maxQueuedQueries) Maximum number of queued queries after which submitted queries will be rejected.voidsetSchedulingPolicy(SchedulingPolicy policy) Scheduling policy to use when dividing resources among child resource groups, or among queries submitted to this group.voidsetSchedulingWeight(int weight) Scheduling weight of this group in its parent group.voidsetSoftConcurrencyLimit(int softConcurrencyLimit) Number of concurrently running queries after which new queries will only run if all peer resource groups below their soft limits are ineligible or if all eligible peers are above soft limits.voidsetSoftCpuLimit(Duration limit) Threshold on total distributed CPU usage after which max running queries will be reduced.voidsetSoftMemoryLimitBytes(long limit) Threshold on total distributed memory usage after which new queries will queue instead of starting.
-
Method Details
-
getId
ResourceGroupId getId() -
getSoftMemoryLimitBytes
long getSoftMemoryLimitBytes() -
setSoftMemoryLimitBytes
void setSoftMemoryLimitBytes(long limit) Threshold on total distributed memory usage after which new queries will queue instead of starting. -
getSoftCpuLimit
Duration getSoftCpuLimit() -
setSoftCpuLimit
Threshold on total distributed CPU usage after which max running queries will be reduced. -
getHardCpuLimit
Duration getHardCpuLimit() -
setHardCpuLimit
Threshold on total distributed CPU usage after which new queries will queue instead of starting. -
getCpuQuotaGenerationMillisPerSecond
long getCpuQuotaGenerationMillisPerSecond() -
setCpuQuotaGenerationMillisPerSecond
void setCpuQuotaGenerationMillisPerSecond(long rate) Rate at which distributed CPU usage quota regenerates. -
getSoftConcurrencyLimit
int getSoftConcurrencyLimit() -
setSoftConcurrencyLimit
void setSoftConcurrencyLimit(int softConcurrencyLimit) Number of concurrently running queries after which new queries will only run if all peer resource groups below their soft limits are ineligible or if all eligible peers are above soft limits. -
getHardConcurrencyLimit
int getHardConcurrencyLimit() -
setHardConcurrencyLimit
void setHardConcurrencyLimit(int hardConcurrencyLimit) Maximum number of concurrently running queries, after which new queries will queue instead of starting. -
getMaxQueuedQueries
int getMaxQueuedQueries() -
setMaxQueuedQueries
void setMaxQueuedQueries(int maxQueuedQueries) Maximum number of queued queries after which submitted queries will be rejected. -
getSchedulingWeight
int getSchedulingWeight() -
setSchedulingWeight
void setSchedulingWeight(int weight) Scheduling weight of this group in its parent group. -
getSchedulingPolicy
SchedulingPolicy getSchedulingPolicy() -
setSchedulingPolicy
Scheduling policy to use when dividing resources among child resource groups, or among queries submitted to this group. -
getJmxExport
boolean getJmxExport() -
setJmxExport
void setJmxExport(boolean export) Whether to export statistics about this group and allow configuration via JMX. -
isDisabled
boolean isDisabled() -
setDisabled
void setDisabled(boolean disabled) Marks the group as disabled. Both queued and running queries already assigned to the group will not be affected by this change, i.e., they will run until completion, and the resources they consume will be considered when calculating overall resource utilization. Once its query queue is empty, the group is treated by the engine as non-existent. For example, if it was a leaf group, its parent now becomes a leaf, unless it has other active subgroups.
-