AE Analysis - Multi-Cluster
In a multi-cluster deployment, route report and Ad-hoc queries by global or slave cluster so cluster-selection errors no longer skew the data definition.
User path
step to stepThe AE Global Cluster Query Skill is a multi-cluster data-routing capability in ThinkingAI's industry Skill library. In an AE multi-cluster (global/slave) deployment, it helps operations and analysis teams choose the right query scope and cluster routing, avoiding skewed data definitions or empty results from cluster-selection errors, moving from "not knowing which cluster to query" to a precise mode of checking cluster info, choosing the route, then querying. This is ThinkingAI's decade of industry experience, packaged into ready-to-use Skills.
Live walkthrough
+list_query_clusters lists all query clusters for a sample overseas SLG game DEMOcluster_query_scope parameter, so it queried only the current cluster by default+query_report_data --cluster_query_scope GLOBAL re-pulls last week's revenueSLAVE to pull revenue and DAU cluster by cluster, cross-check the sumFound why it didn't reconcile: your report only counted the current cluster. Re-pulled at GLOBAL scope, last week's revenue is 408.3 ($10K), a gap of 161.1 ($10K), or 39.5% of the global figure, exactly the combined revenue of the two slave clusters.
1. Your project has three query clusters
cluster_query_scope parameter, only this one is queried, which is the source of the gapSLAVE for these to be queriedGLOBAL query access, so the global aggregate scope is usable directly, with no need to sum clusters by hand2. Revenue breakdown at global scope
| Cluster | Last week's revenue ($10K) | Revenue share | Weekly avg. DAU (10K) | Payment rate |
|---|---|---|---|---|
| Current cluster | 247.2 | 60.5% | 18.2 | 3.1% |
| Southeast Asia slave cluster | 121.5 | 29.8% | 15.6 | 2.2% |
| North America/Europe slave cluster | 39.6 | 9.7% | 3.4 | 4.0% |
| GLOBAL total | 408.3 | 100% | 37.2 | 2.8% |
The Southeast Asia slave cluster contributed nearly a third of revenue (29.8%), and its DAU is close to the current cluster (15.6 vs. 18.2, in 10K), all of which was entirely missing from the original report. The NA/EU cluster is small but has the highest payment rate (4.0%), worth looking at on its own for deep regional analysis.
3. Metric-definition rules to avoid tripping again
--cluster_query_scope GLOBAL, aggregates all clusters in one passSLAVE + the specified slave cluster, returns only that cluster's dataOn your data
That was a simulated run
Leave your work email and we will run a live walkthrough on your real business data.
The problem
Multi-cluster deployment is the standard architecture for global and overseas products, yet more than 50% of analysis teams stumble on cross-cluster queries: they don't know how many query clusters the project has, don't know the slave cluster names and IDs, and don't know the difference between GLOBAL and SLAVE permissions. After choosing a query scope on instinct, they get empty data, a permission error, or a definition inconsistent with the single cluster. A cross-cluster query averages more than 30 minutes to debug, and the error is often caught only after the data has already been used for a decision.
What it does
When to use it
An overseas project that needs to query global aggregated data (all clusters combined)
You need to query a specific slave cluster (such as Southeast Asia or Europe/US) on its own
Unsure how many clusters the project has and need to check cluster info first
A query returns a permission error and you need to confirm the allowed query-scope parameters
You need to distinguish the concepts of "query cluster" and "user cohort" to avoid confusion
In the field
FAQ
What is the difference between a GLOBAL query and a SLAVE query?
A GLOBAL query aggregates data across all clusters, good for a global overview. A SLAVE query returns only the specified slave cluster's data, good for deep regional analysis.
How does this Skill relate to ae-analysis?
ae-analysis-global is a multi-cluster overlay on ae-analysis, adding this Skill's routing rules only when the project has multi-cluster mode enabled.
Can SQL models query across clusters?
No. SQL Ad-hoc models support only the current cluster and do not support GLOBAL or SLAVE routing.
Related Skills
Equip your Agent with AE Analysis - Multi-Cluster
Book a demo and see how it works in your own business.
