Package io.trino.spi.resourcegroups
Interface ResourceGroup
public interface ResourceGroup
-
Method Summary
Modifier and TypeMethodDescriptionlongintgetId()booleanintintintlongvoidsetCpuQuotaGenerationMillisPerSecond(long rate) Rate at which distributed CPU usage quota regenerates.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.
-