Compute Group
A physical cluster is a compute group inside a VeloDB Cloud warehouse. Clusters in the same warehouse share stored data, while each physical cluster has independent compute resources, cache capacity, and cached data. SQL statements retain the term COMPUTE GROUP for cluster access and selection.
Use separate clusters for workloads that need independent compute capacity, such as data ingestion and interactive queries. Use Workload Groups when workloads share a cluster and need different CPU, memory, concurrency, or read-throughput limits.
Shared data and independent compute
Adding a cluster does not require a separate replica of every table for that cluster. The cluster accesses shared warehouse data and populates its own cache as it runs queries or warmup jobs. Query performance can differ between a new cluster with a cold cache and a cluster that has already read the data.
Separate clusters isolate compute and cache resources. They still share warehouse data and can depend on common storage and control services. Do not treat a cluster boundary as a guarantee that all failures or performance effects are isolated.
A virtual cluster pairs active and standby physical clusters. It has no compute or cache capacity of its own. For its requirements and failover behavior, see virtual clusters.
View available clusters
Connect to the warehouse with a warehouse SQL user and run:
SHOW COMPUTE GROUPS;
The result is filtered by the user's cluster USAGE privilege. A user with no accessible clusters receives an empty result. The IsCurrent column identifies the cluster selected for the session. The BackendNum column describes the underlying compute-node count. It is not an instruction to manage those nodes individually.
Manage the cluster lifecycle
For SaaS and BYOC warehouses, create, scale, pause, resume, and delete clusters through cluster management. VeloDB Cloud manages their backend nodes. Self-managed Apache Doris procedures that add or decommission individual backends do not apply to this workflow.
Before deleting a cluster, move workloads and update connections and user defaults that refer to it. Additional clusters incur compute charges and maintain separate caches. Pause or delete temporary clusters after testing, and review billing.
Grant cluster access
A warehouse SQL administrator can grant an existing SQL user access to a cluster:
GRANT USAGE_PRIV ON COMPUTE GROUP analytics TO 'report_user'@'%';
Replace analytics with the cluster name and 'report_user'@'%' with the existing SQL user identity. Cluster access and data access are separate: the user also needs privileges on the databases and tables used by the query.
To revoke cluster access, run:
REVOKE USAGE_PRIV ON COMPUTE GROUP analytics FROM 'report_user'@'%';
For privilege syntax and administration requirements, see GRANT and Warehouse Users and Roles.
Set a default cluster
A user with access to a cluster can set that cluster as the user's default:
SET PROPERTY 'default_compute_group' = 'analytics';
SHOW PROPERTY LIKE 'default_compute_group';
A warehouse SQL administrator can set or inspect another user's default:
SET PROPERTY FOR 'report_user' 'default_compute_group' = 'analytics';
SHOW PROPERTY FOR 'report_user' LIKE 'default_compute_group';
A default cluster does not grant access to the cluster. Grant the required USAGE privilege first. For an existing session, explicitly select the cluster when you need to change the active compute context.
Switch clusters for a session
Select a cluster without changing the current database:
USE @analytics;
Select a database and cluster together:
USE reporting@analytics;
Replace reporting with an accessible database. The general syntax is:
USE { [catalog_name.]database_name[@compute_group_name] | @compute_group_name };
If a name contains a reserved keyword or special characters, quote the corresponding identifier with backticks. After selecting the cluster, run SHOW COMPUTE GROUPS and verify IsCurrent before starting the workload.
Common errors
| Symptom | Check and resolution |
|---|---|
USAGE denied or the desired cluster is absent from SHOW COMPUTE GROUPS. | Ask a warehouse SQL administrator to grant USAGE on the cluster. Organization access to the Console does not by itself grant SQL cluster privileges. |
| A data read or write reports that no compute group is selected. | Run SHOW COMPUTE GROUPS, select an accessible cluster with USE @analytics, and configure a default if needed. |
| The default cluster was deleted or renamed. | Choose an existing cluster and update default_compute_group and connection settings that use the old name. |
| Queries on a new cluster are slower than expected. | Check resource utilization and cache warmup. Compare representative queries after the working data has been read, or use warmup jobs. |