Skip to main content
VeloDB Cloud 26.x is based on Apache Doris 4.x. See Version Mapping.

Workload Management Overview

Workload management controls how queries and data loads share compute resources in a VeloDB Cloud warehouse. Use separate clusters to separate compute capacity, then use workload groups and query limits to control workloads within each cluster.

Resource limits can reduce contention. They do not guarantee response times or eliminate interference from shared storage, caches, or background activity.

Choose an isolation method​

MethodScopeUse it when
ClustersSeparate compute groups in one warehouse, sharing warehouse dataInteractive queries and batch workloads need separate compute capacity or scaling schedules.
Workload groupsCPU, memory, scan throughput, and query admission within one clusterTeams or applications share a cluster and need different resource limits.
Resource groupsBackend tags and replica placement in self-managed Apache DorisUnderstand a migration from an integrated storage and compute deployment. Use clusters for this purpose in VeloDB Cloud.

Clusters provide a stronger compute boundary than workload groups. A workload group does not create separate data, SQL permissions, or an independent failure domain. Grant warehouse SQL privileges separately.

Control concurrency and queues​

Concurrency control and queuing limits how many queries a workload group admits and how many queries can wait. Configure max_concurrency, max_queue_size, and queue_timeout together.

Admission is maintained by each frontend (FE). These limits are not a single warehouse-wide concurrency counter. A query can also wait because resources are unavailable. Use the observed queue and resource metrics to select limits for your workload.

Stop expensive queries​

Query circuit breakers provide two controls:

  • SQL block rules reject statements that match SQL patterns or exceed planning-time scan limits.
  • Workload policies cancel supported running work when runtime resource or time conditions match.

Planning estimates can differ from actual work. Runtime policies are checked asynchronously, so a query can exceed a threshold before cancellation takes effect. Use these controls alongside appropriate table design, query tuning, and cluster capacity.

For immediate intervention, cancel a query by its query ID or a trace ID that your application assigned.

Understand minimum and maximum limits​

A workload group's minimum CPU or memory percentage expresses its resource allocation under contention. A maximum percentage caps that group's use. Minimum and maximum values must satisfy the workload group's validation rules, including minimum not exceeding maximum.

For CPU, unused capacity can be shared while each group's maximum still applies. Memory enforcement and query cancellation depend on current allocations and memory pressure. Review the workload group property reference before changing limits on a busy cluster.

Diagnose before changing limits​

  1. Check whether CPU, memory, scan throughput, or query concurrency is the bottleneck.
  2. Use workload analysis to identify the workload groups and queries consuming those resources.
  3. Change one limit or query behavior at a time, then compare queue length, failures, latency, and resource use.
  4. If healthy queries still need more compute capacity, scale the cluster.

See also​