Resource Group
A Resource Group in self-managed Apache Doris groups backend nodes by location tags and places table replicas on those nodes. This mechanism belongs to the integrated storage and compute architecture. VeloDB Cloud uses shared object storage and managed clusters, so replica placement through Resource Groups is not the way to isolate Cloud workloads.
For SaaS and BYOC warehouses, choose between separate clusters and Workload Groups:
| Requirement | Cloud mechanism | What it controls |
|---|---|---|
| Run ingestion, ETL, and interactive queries on separate compute resources. | Separate clusters in one warehouse. | Each cluster has independent compute and local cache capacity while accessing the warehouse's shared data. |
| Share one cluster while controlling how workloads compete for resources. | Workload Groups. | CPU and memory limits, read throughput, and query concurrency within that cluster. |
| Restrict which databases or tables a user can access. | Warehouse SQL users, roles, and privileges. | Authorization to SQL objects. Compute isolation does not grant data access. |
Replica placement and shared storage
In an integrated Apache Doris deployment, a table must have a replica in each Resource Group that needs to serve it. This couples compute isolation to replica placement and storage capacity. VeloDB Cloud clusters read shared warehouse data without a separate table-replica allocation for each cluster. Adding a cluster adds compute and cache capacity, with its corresponding compute cost.
Do not use tag.location, replication_allocation, or the user property resource_tags.location to design Cloud workload isolation. VeloDB Cloud manages storage placement and the nodes that belong to a cluster. Manage the cluster lifecycle through the cluster management tools instead.
Choose an isolation strategy
Separate reads and writes
Use one cluster for ingestion and ETL and another for interactive queries. Both can access the same warehouse data, subject to the SQL user's privileges. Route connections and SQL sessions to the intended cluster, and verify the selected cluster before running the workload.
This separates the compute used by the two workloads. Shared storage and other warehouse services can still be common dependencies. Separate clusters do not promise that every workload has independent failure behavior or latency.
Separate business workloads
Use separate clusters when business workloads need independent sizing, scaling, and cache capacity. Use warehouse SQL privileges to control data access. A cluster boundary alone does not prevent a user from querying a table that the user is authorized to access.
When workloads can share compute, use Workload Groups to cap a background workload and reserve capacity for higher-priority work. Workload Groups share some process resources, so evaluate their effect with representative queries.
Separate users
Grant each warehouse SQL user or role access to the appropriate cluster. Set a default cluster or select one for the session. If users share a cluster, assign their queries to suitable Workload Groups after granting the required Workload Group privilege.
Consider ingestion resources
Loading data can involve reading an external source, transforming rows, writing shared data, and background maintenance. Selecting a cluster routes the work supported by that load method to the selected compute resources. It does not create a table-replica boundary or make all background work part of a Workload Group.
Check the cluster-selection rules for the load method you use. For example, Stream Load, Broker Load, and Routine Load have their own request or job settings.
Cost considerations
Separate clusters consume additional compute and maintain their own caches. Choose their size and running schedule for the workload, and pause or delete unneeded clusters after testing. See cluster management and billing.
See also
- Compute Group explains cluster selection and SQL access.
- Workload Group explains resource controls within a cluster.
- Warehouse Users and Roles explains SQL access control.