AnalyticDB for MySQL provides three compute resource group types: Multi-Cluster, Job, and Auto-Scaling. This evaluation compares their capabilities and performance to help you choose the right one for your workload.
Compute resource group types
Multi-Cluster type
-
Use cases: A Multi-Cluster resource group automatically scales resources up or down at the cluster level based on the group's load. It provides resource isolation within the group and is ideal for high-concurrency scenarios. It is suited for interactive queries where a single query's resource consumption does not exceed the capacity of one cluster. During peak business hours, it automatically provisions new compute nodes as clusters to increase overall computing capacity and adapt to the workload, preventing performance degradation. During off-peak hours, it automatically deprovisions compute nodes at the cluster level to reduce resource usage and save costs.
-
Billing: For more information, see Billing Rules.
Job type
-
Use cases: A Job resource group provisions temporary compute resources for a query and releases them immediately after the query finishes. It executes queries by using a Bulk Synchronous Parallel (BSP) model, resulting in response times of seconds to minutes. The amount of resources provisioned depends on the size of the running task. This type is ideal for non-real-time, resource-intensive tasks that are not latency-sensitive.
-
Billing: For more information, see Billing Rules.
Auto-Scaling type
-
Use cases: An Auto-Scaling resource group dynamically scales compute resources at the node level in real time based on the group's load. The maximum resources for a single query equal the resource group's upper limit. Provisioned compute nodes can be shared across multiple consecutive queries. This type provides resource isolation at the query level to prevent interference between queries and reduce performance fluctuations. It is ideal for mixed workloads that include both latency-sensitive interactive queries and resource-intensive batch queries.
-
Billing: For more information, see Billing Rules.
Resource group comparison
|
Resource group type |
Interactive query |
Batch query |
Elastic scaling |
Pay-as-you-go |
Resource isolation |
|
Multi-Cluster |
Supported |
Not supported |
Cluster-level |
Billed for a minimum of one cluster |
Cluster-level |
|
Job |
Not supported |
Supported |
Node-level |
Fully pay-as-you-go |
Query-level |
|
Auto-Scaling |
Supported |
Supported |
Node-level |
Supports pay-as-you-go |
Query-level |
Scenario performance evaluation
The following tests evaluate Auto-Scaling resource group performance against other types in common business scenarios.
Real-time queries—BI query performance
BI queries are among the most common fixed workloads in a data warehouse—predefined reports and dashboard queries run by tools such as Tableau, PowerBI, or Quick BI. They follow a clear pattern: fixed SQL logic, high execution frequency (for scheduled refreshes or frequent access), and manageable result sets, typically serving daily monitoring, periodic reports, and KPI dashboards. The core database requirements are stable concurrency and predictable latency, so dashboards stay responsive during peak hours and reports generate on time. Workload isolation is also critical to prevent large queries from degrading the reporting experience.
Using the 1 TB TPC-H dataset to simulate a BI query workload, we compared Auto-Scaling and Multi-Cluster resource groups at different concurrency levels.
|
|
|
|
Test conclusion: The Auto-Scaling resource group achieved a 100% success rate for all queries across all concurrency levels. In contrast, the Multi-Cluster resource group experienced query failures, with a failure rate exceeding 50% at 30 concurrent queries. Excluding the 30-concurrency scenario where Multi-Cluster was nearly unusable, the test results for total response time (RT) show that as concurrency increases, the total RT for Auto-Scaling grows almost linearly, while Multi-Cluster's performance degrades significantly.
These results highlight the advantage of Auto-Scaling's query-level resource isolation. Even as concurrency increases, individual queries do not interfere with each other, ensuring both cluster availability and consistent query performance.
Real-time queries—Ad-hoc query performance
Ad-hoc queries are a typical exploratory workload in a data warehouse, initiated by analysts or business users for non-recurring analysis. These queries are unpredictable—variable SQL logic (often handwritten or dynamically generated), high complexity (multi-table joins, nested subqueries, and complex aggregations), and widely fluctuating execution times. Common use cases include data exploration, root cause analysis, and temporary data retrieval. The database must handle complex queries at high concurrency with fast response times to support interactive analysis.
Based on the TPC dataset, the following SQL statements were selected for testing:
-
Lightweight ad-hoc: A set of queries with an approximate execution time of 5 seconds was created from the TPC dataset. These include multi-table joins for detailed retrieval, dimensional aggregation (GROUP BY + SUM/COUNT), ranking with window functions (RANK), multi-dimensional aggregation on a star schema, and top-N sorting of aggregated results. This set represents lightweight analytical tasks focused on quick browsing and summarization.
-
Complex ad-hoc: A set of queries with an approximate execution time of 10 seconds was created from the TPC dataset. These include semi-join filtering (EXISTS subquery), grouped comparisons with window functions (AVG OVER PARTITION BY), phased calculations with CTEs and top-N lookups, multi-dimensional aggregation on a star schema, and conditional segmentation with distinct counts (CASE + COUNT DISTINCT). This set represents heavyweight analytical tasks focused on in-depth exploration and segmentation.
We tested Auto-Scaling and Multi-Cluster resource groups with these two ad-hoc query sets at 10, 20, 50, and 100 concurrent queries for five minutes each.
|
|
|
|
|
|
Test conclusion: The most significant finding from this test is that Auto-Scaling's availability under high concurrency is clearly superior to Multi-Cluster's. Starting at 50 concurrent queries, Multi-Cluster was unable to complete any lightweight ad-hoc queries within five minutes. For complex ad-hoc queries, Multi-Cluster became unresponsive at just 20 concurrent queries. Furthermore, observing the queries per second (QPS), Auto-Scaling maintained a stable QPS across different concurrency levels. This again demonstrates that Auto-Scaling provides excellent resource isolation between queries.
Real-time queries—Small query performance
Small queries are the most frequent query type in many business scenarios, consuming few resources but highly sensitive to latency and throughput. Based on the TPC dataset, we tested two representative types: distribution key point lookups and complex small queries.
A complex small query uses a highly selective filter to locate a small number of rows and then performs complex calculations, such as multi-table joins and multi-dimensional aggregation analysis. This query type simulates a typical online scenario of real-time user profile analysis.
The following charts compare Auto-Scaling and Multi-Cluster resource group performance for these two small query workloads at different concurrency levels.
|
|
|
Test conclusion: In the distribution key point lookup scenario, Auto-Scaling's performance is slightly lower than Multi-Cluster's. However, in the complex small query scenario, Auto-Scaling demonstrates a clear advantage at high concurrency levels.
Offline query performance
Offline queries handle batch data processing in a data warehouse—T+1 reporting, data warehouse layer processing, historical data archiving, and large-scale analysis. They process terabyte- to petabyte-scale data volumes over hours, use complex logic (multi-table joins, window functions, and aggregations), and prioritize stability over low latency.
Using the 10 TB TPC dataset, we compared Auto-Scaling and Job resource group performance for offline queries.
|
|
|
Test conclusion: In the TPC-H 10 TB out-of-the-box test, Auto-Scaling performed 443.44% better overall than the Job resource group. Auto-Scaling achieved a 100% success rate, while the Job resource group's success rate was only 59%. In the TPC-DS 10 TB out-of-the-box test, Auto-Scaling performed 355.17% better overall than the Job resource group. Again, Auto-Scaling achieved a 100% success rate, compared to 92% for the Job resource group. Therefore, in offline query scenarios, Auto-Scaling is significantly superior to the Job resource group in both query performance and stability.
Assessment and conclusion
Capability matrix
The following table summarizes how the three resource group types perform across key evaluation dimensions:
|
Evaluation dimension |
Metric |
Multi-Cluster |
Job |
Auto-Scaling |
|
Real-time query |
BI query concurrency |
✅ |
❌ |
✅ |
|
High-concurrency ad-hoc support |
✅ (Low concurrency) |
❌ |
✅ |
|
|
Small-query throughput |
✅ |
❌ |
✅ |
|
|
Offline query |
Large task processing capability |
❌ |
✅ |
✅ |
|
Elasticity |
Elastic scaling granularity |
Cluster-level |
Node-level |
Node-level |
|
Billing model |
Pay-as-you-go |
Billed for a minimum of 1 cluster |
Fully pay-as-you-go |
Supports pay-as-you-go |
|
Resource isolation |
Isolation granularity |
Cluster-level |
Query-level |
Query-level |
Evaluation summary
|
Scenario type |
Compared resource group |
Auto-Scaling performance |
Key advantage |
|
BI query |
Multi-Cluster |
Better and more stable RT under high concurrency; 100% success rate vs. 95%. |
Query-level resource isolation ensures high concurrency stability. |
|
Lightweight ad-hoc |
Multi-Cluster |
Remains available at 100 concurrent queries, whereas Multi-Cluster becomes unavailable at 50. |
Excellent resource isolation provides stable QPS. |
|
Complex ad-hoc |
Multi-Cluster |
Remains available at 100 concurrent queries, whereas Multi-Cluster becomes unavailable at 20. |
Significant availability advantage under high concurrency. |
|
Distribution key point lookup |
Multi-Cluster |
Performance is on par with Multi-Cluster. |
- |
|
Complex small query |
Multi-Cluster |
Performs better at high concurrency. |
Good resource isolation; single-node plans save distributed overhead. |
|
Offline query |
Job |
Achieves a 100% success rate, while Job's success rates were 59% and 92% in two tests; Auto-Scaling also delivers superior performance. |
Overwhelming advantage over Job in performance and stability. |
Key conclusions
-
Auto-Scaling matches and exceeds Multi-Cluster in real-time query scenarios: In high-concurrency scenarios such as BI queries, ad-hoc queries, and complex small queries, Auto-Scaling delivers superior stability and a higher query success rate at high concurrency, thanks to its query-level resource isolation. While the failure rate of Multi-Cluster increases significantly under high concurrency, Auto-Scaling consistently maintains a 100% success rate.
-
Auto-Scaling outperforms Job in offline query scenarios: In offline query scenarios, Auto-Scaling is overwhelmingly superior to the Job resource group in both query performance and stability.
-
Key advantages of Auto-Scaling:
-
Query-level resource isolation: Allocates and isolates resources at the query level, preventing interference between queries and ensuring stable performance under high concurrency.
-
Fully pay-as-you-go: Unlike Multi-Cluster, which bills for a minimum of one cluster, Auto-Scaling bills only for the resources consumed.
-
Node-level elastic scaling: Scales resources at the node level, providing more fine-grained elasticity than the cluster-level scaling of Multi-Cluster.
-
One resource group for multiple scenarios: Supports both interactive and batch queries, eliminating the need for multiple resource groups.
-
-
Recommendation: Auto-Scaling is recommended for mixed workloads (both real-time and offline queries), high-concurrency real-time query scenarios, and cost-sensitive scenarios.










