As an application grows, a single database cluster may eventually reach its limits. Increasing the instance size can provide more capacity, but vertical scaling has practical limits. Large applications with multiple tenants, high transaction volumes, or growing datasets may need to distribute their data across several database clusters.
Managing this architecture creates another challenge: the application must know which database cluster contains the data for each request. Whenever a new cluster is added or data is moved, developers may need to update connection logic, routing rules, and application configuration.
AWS is addressing this problem with database cluster groups for Amazon Aurora MySQL. Announced in December 2026, this capability allows organizations to manage multiple Aurora MySQL clusters together and optionally use a managed routing layer to direct queries to the cluster that holds the requested data.
Instead of maintaining custom database-routing logic in every application, developers can connect through a single routing endpoint. Aurora uses data mappings and routing functions to determine where each statement should execute.
In this article, we'll explore how database cluster groups work, how query routing is organized, how applications connect to the routing endpoint, and what developers should consider when distributing data across multiple Aurora MySQL clusters.
What Are Database Cluster Groups in Amazon Aurora?
A database cluster group is an Amazon RDS resource that contains multiple Aurora MySQL DB clusters, called member clusters.
Each member cluster remains an independent Aurora DB cluster. It has its own writer instance, reader instances, endpoints, storage, parameter group, and database configuration.
The group provides management capabilities across these clusters. Depending on the configuration, it can coordinate maintenance, upgrades, backups, monitoring, query routing, and data movement.
For example, imagine an e-commerce application with three database clusters:
- Cluster A stores customer and account information.
- Cluster B stores order and payment information.
- Cluster C stores inventory information.
Without a managed routing layer, the application must know which cluster contains each database or table. Developers often implement this logic using configuration files, custom database proxies, or application-level routing services.
A database cluster group can provide one routing endpoint for applications. Aurora determines the correct member cluster based on the data placement configuration.
The architecture looks like this:
Application
|
v
Aurora Routing Endpoint
|
v
Managed Router
|
+-----------+-----------+
| | |
v v v
Cluster A Cluster B Cluster C
| | |
v v v
Customer Orders Inventory
Data Data Data
The routing layer is managed by AWS and scales automatically. It does not store application table data. The member clusters continue to store and process the actual database records.
Why Query Routing Across Clusters Matters
Traditional Aurora scaling primarily increases the capacity of an individual DB cluster. Aurora Replicas can improve read capacity, while larger instance classes can provide more compute and memory.
However, these approaches do not automatically distribute write workloads across independent clusters.
Consider a multi-tenant SaaS application with thousands of customers. If every tenant uses the same database cluster, one cluster must handle all tenant transactions.
Some tenants may generate significantly more traffic than others. A small number of high-volume customers can put pressure on the database and affect the experience of other tenants.
Database cluster groups provide another approach: distribute databases or selected tables across multiple Aurora MySQL clusters and route queries to the correct location.
This can help organizations:
- Distribute write workloads across independent clusters.
- Keep tenant data on separate database clusters.
- Add capacity by introducing additional member clusters.
- Move data between clusters as demand changes.
- Reduce application-level database-routing code.
- Coordinate maintenance and backups across related clusters.
The important point is that adding more clusters does not automatically distribute existing data. You must define the data placement strategy and move or load data accordingly.
Understanding the Three Main Capabilities
Database cluster groups provide three main capabilities: coordinated operations, query routing, and managed data movement.
Coordinated operations
A database cluster group allows administrators to manage related Aurora clusters together.
For example, instead of scheduling minor version upgrades independently, administrators can configure upgrade waves across the group.
Other coordinated capabilities include:
- Maintenance and configuration changes.
- Group-level backups.
- Point-in-time restoration of member clusters to a consistent time.
- Aggregated CloudWatch monitoring.
This is useful when several database clusters belong to the same application and must be managed as one operational environment.
Query routing
When routing is enabled, AWS creates a routing endpoint for the group.
Applications connect to this endpoint, and the routing layer sends each statement to the member cluster that contains the requested data.
The routing decision is based on data mappings and, when required, routing functions.
The routing layer does not inspect the database schema to discover where tables are stored. You must describe the placement of databases and tables explicitly.
Managed data movement
As workloads grow, one member cluster might become busier than the others.
Database cluster groups provide managed data movement to move a collocation from one member cluster to another.
A collocation is a logical group of related database objects that must stay together.
During a move, AWS copies the data to the destination cluster and keeps it synchronized with changes on the source. At cutover, routing switches to the destination.
The source cluster continues serving traffic during most of the process. Writes to the moving objects can briefly fail with retryable errors during cutover, so applications must retry safely.
How the Routing Layer Works
The routing layer uses data placement information to decide where a statement should execute.
There are three important concepts:
- Data mappings identify which member cluster stores a database or table.
- Routing functions determine where rows belong when a table is distributed across clusters.
- Collocations keep related objects together so that a transaction can execute on one member cluster.
Understanding these concepts is important before changing an application's connection string.
Database-level mappings
A database-level mapping places an entire database on one member cluster.
For example:
Database | Member cluster |
tenant_001 | Cluster A |
tenant_002 | Cluster B |
tenant_003 | Cluster C |
When an application queries tenant_001, the routing layer sends the statement to Cluster A.
This approach is suitable when each tenant has its own database and the application already knows which database it needs.
It does not require a routing key because the database name itself identifies the destination.
Table-level mappings
A table-level mapping places a particular table on one member cluster.
This is useful when several databases share a cluster, but individual tables need separate placement.
For example, a reporting table might be stored on Cluster C while the application database remains on Cluster A.
A table-level mapping provides more flexibility than assigning an entire database to one cluster.
However, the routing layer can execute a statement only when all the objects involved resolve to one member cluster.
Scaleout tables
A scaleout table is one logical table whose rows are distributed across multiple member clusters.
For example, an orders table might contain records for thousands of customers. Instead of storing every order on one cluster, the application can distribute rows using customer_id as the routing key.
Logical Table: orders
Routing Key: customer_id
+-------------------+
| customer_id = 101 |
+-------------------+
|
v
Cluster A
+-------------------+
| customer_id = 202 |
+-------------------+
|
v
Cluster B
+-------------------+
| customer_id = 303 |
+-------------------+
|
v
Cluster C
When a query includes the routing key, Aurora determines the collocation and sends the statement to the appropriate member cluster.
This is useful when one table has grown beyond the capacity of a single cluster.
Choosing a Routing Strategy
Aurora supports several routing approaches for scaleout tables.
Routing function | How it works | Suitable scenario |
MOD | Uses a modulo operation to calculate placement | Numeric identifiers distributed across a fixed set of collocations |
HASH | Uses a hash of the routing key | Distributing records across collocations |
PREFIX | Uses a prefix from the routing key | Identifiers with meaningful prefixes |
COLUMN | Uses column values and configured ranges | Range-based placement using integer or temporal values |
The right choice depends on the existing data model and access patterns.
For example, a SaaS application might use tenant_id as its routing key. If each tenant's records should stay together, a hash-based routing function can distribute tenants across collocations.
An application that partitions data using numeric customer ranges might use the COLUMN routing function instead.
Do not choose a routing function only because it distributes data evenly. Consider how often the application reads related records, how transactions are organized, and how frequently data might need to move.
Setting Up a Database Cluster Group
Database cluster groups are currently in Preview and support Aurora MySQL version 8.4.900.
This is a preview engine version, not the normal generally available Aurora MySQL 8.4 release. AWS documents that there is no upgrade path from 8.4.900 to a generally available Aurora MySQL version. Use it for evaluation rather than assuming it is suitable for an existing production cluster.
The following setup describes the main deployment stages. Resource creation and data placement should be completed using the current preview-supported console, AWS CLI, or API operations.
Step 1: Select the AWS Region
The group and all its member clusters must be in the same AWS account and Region.
At launch, the preview is available in:
- US East (N. Virginia)
- US East (Ohio)
- US West (Oregon)
- Asia Pacific (Mumbai)
- Asia Pacific (Tokyo)
- Asia Pacific (Malaysia)
- Asia Pacific (Thailand)
- Europe (Ireland)
- Europe (Spain)
For an application operating in India, Mumbai is one of the supported preview Regions.
Step 2: Prepare the Aurora MySQL clusters
Every member cluster must use Aurora MySQL version 8.4.900.
The cluster group supports provisioned instances and Aurora Serverless v2 instances. Burstable instance classes such as db.t3 and db.t4g are not supported.
There is an important creation requirement for this preview version: create a new member DB cluster without DB instances, add it to the group, and then create its DB instances.
Adding a cluster to the group does not copy its data or change its existing endpoints.
If you want to bring an existing Aurora MySQL cluster into the group, restore a snapshot onto version 8.4.900 and add the restored cluster. Restoring directly from an earlier major version, such as Aurora MySQL 3, onto this preview version is not supported.
Step 3: Create the database cluster group
Create a database cluster group through the Amazon RDS console or the supported RDS API and AWS CLI operations.
The group has its own identifier and configuration, including its engine, maintenance window, backup settings, deletion protection, and optional routing configuration.
Choose the engine as Aurora MySQL when creating the group. The engine cannot be changed later.
The group and its member clusters must remain in the same account and Region.
Step 4: Add member clusters
Add the prepared DB clusters to the group using the supported add-member-cluster operation.
The following AWS CLI command illustrates the operation:
aws rds add-db-cluster-to-db-cluster-group \
--db-cluster-identifier orders-cluster \
--db-cluster-group-identifier ecommerce-group \
--region ap-south-1
Replace the example identifiers with your actual resource names.
Adding a cluster establishes its membership. It does not automatically move databases or tables from another cluster.
After the cluster joins, create its writer and reader instances as required.
Repeat the process for each member cluster.
Step 5: Enable routing
Routing is optional. A group can provide coordinated management capabilities without enabling the routing layer.
When you enable routing, AWS provisions the managed routing layer and creates a routing endpoint.
The routing endpoint is reachable from the group's VPC and connected networks. It is not publicly accessible.
You can enable routing during group creation or later by modifying the group using the supported routing endpoint configuration.
Step 6: Configure data mappings
After routing is enabled, define the database and table placement.
For example, a multi-tenant application might use database-level mappings to place each tenant database on a different member cluster.
For a table that needs to span clusters, define a scaleout table and its routing function.
Create the underlying databases and tables on the intended member clusters before adding the corresponding mappings. The routing layer does not validate that the mapped objects actually exist.
Use the member cluster aliases exposed by the group's system tables rather than deriving aliases from cluster identifiers.
Connecting an Application to the Routing Endpoint
After enabling routing, applications can connect through the group's routing endpoint.
You should retrieve the endpoint from the RDS API rather than constructing its hostname manually.
Use describe-db-cluster-groups:
aws rds describe-db-cluster-groups \
--region ap-south-1 \
--db-cluster-group-identifier ecommerce-group \
--query 'DBClusterGroups[0].RoutingEndpointConfigurationInfo.[Endpoint,Port]' \
--output text
The command returns the routing endpoint and port.
The endpoint provides a single connection address for routed application traffic.
Create router users
Applications connect using router users.
A router user exists at the routing endpoint and is not automatically copied to member clusters.
Create a matching member-cluster user with the same name on every member cluster the application needs to access. Grant the member user only the database privileges required by the application.
The routing layer authenticates the router user when the connection opens. The member cluster then checks the corresponding user's privileges when a statement reaches it.
This means a successful login does not guarantee that every query will be authorized.
Connect using the MySQL client
The routing endpoint requires TLS 1.2 or TLS 1.3 and a utf8mb4 client handshake.
A connection can be opened using the standard MySQL client:
mysql \
-h ROUTING_ENDPOINT \
-P 3306 \
-u app_router \
-p \
--ssl-mode=REQUIRED \
--default-character-set=utf8mb4
Replace ROUTING_ENDPOINT with the endpoint returned by the RDS API.
The router user must already exist, and the connecting host must be able to reach the routing endpoint through the configured VPC networking and security groups.
IAM database authentication is not supported for router users. Use password-based authentication for connections through the routing endpoint.
Running Queries Through the Routing Layer
Once connected, applications use router names defined by the data mappings.
Consider an application with tenant databases distributed across three clusters.
A query might look like this:
SELECT
customer_id,
customer_name,
email
FROM tenant_001.customers
WHERE customer_id = 101;
If tenant_001 is mapped to Cluster A, the routing layer sends the statement to Cluster A's writer.
The application does not need to know the physical cluster endpoint.
For a scaleout table, the query must include the routing key:
SELECT
order_id,
customer_id,
order_status,
total_amount
FROM ecommerce.orders
WHERE customer_id = 202;
If customer_id is the configured routing key, Aurora uses its value to determine the collocation and member cluster.
A query that does not provide enough routing information might not be resolvable.
For example:
SELECT
order_id,
customer_id,
total_amount
FROM ecommerce.orders;
This query attempts to read the entire scaleout table. If its rows are distributed across multiple member clusters, the routing layer cannot execute the statement on one cluster.
The application must issue separate queries for the required keys and combine the results, or use a different analytical architecture.
Understanding Transactions and Cross-Cluster Queries
The most important routing rule is that each statement and transaction must resolve to exactly one member cluster.
A transaction cannot span multiple member clusters through the routing endpoint.
For example, consider an application that updates an order and its payment record.
If both tables belong to the same collocation, the transaction can execute on one member cluster.
START TRANSACTION;
UPDATE ecommerce.orders
SET order_status = 'PAID'
WHERE customer_id = 202
AND order_id = 9001;
INSERT INTO ecommerce.payments (
customer_id,
order_id,
payment_status
)
VALUES (
202,
9001,
'SUCCESS'
);
COMMIT;
This design works only if both tables resolve to the same member cluster and the statement forms are supported by the routing layer.
If the order and payment data are placed on different clusters, the routing layer cannot provide an atomic transaction across them.
In that situation, redesign the placement so related records stay together or coordinate separate transactions in the application with appropriate failure handling.
Joins across clusters
The same restriction applies to joins.
If a query joins two tables that resolve to different member clusters, the routing layer cannot execute it as a distributed join.
For example:
SELECT
o.order_id,
c.customer_name
FROM ecommerce.orders o
JOIN customers.customers c
ON o.customer_id = c.customer_id;
If the orders and customers tables are on different member clusters, this query cannot be routed as one statement.
You have two practical options:
- Place related tables in the same collocation when they are frequently joined.
- Query each cluster separately and combine the results in the application.
For workloads that need distributed queries and transactions across databases, Amazon Aurora DSQL can be a complementary option.
Moving Data Between Member Clusters
Data placement should change as application demand changes.
Suppose Cluster A initially stores data for tenants 001 through 100. Over time, a few tenants generate much more traffic than the others.
You might decide to move one tenant's data to Cluster C.
Database cluster groups provide managed data movement for this purpose.
A data movement job:
- Copies the selected collocation to the destination cluster.
- Keeps the destination copy synchronized with changes on the source.
- Switches routing to the destination during cutover.
- Cleans up the source copy after the move completes.
The source cluster continues serving traffic during the copy phase.
During cutover, writes to the moving objects can briefly fail with retryable errors. Applications should retry these operations safely.
A move is initiated through the routing endpoint using the ALTER DBCLUSTERGROUP MOVE COLLOCATION statement.
ALTER DBCLUSTERGROUP MOVE COLLOCATION
'tenant_001'
TO MEMBER CLUSTER 'cluster_c';
This illustrates the operation's intent. Use the actual collocation name and member cluster alias from your group configuration, and verify the current preview SQL syntax before running it.
A group can run only one data movement job at a time during the preview. Wait for the previous job's cleanup to complete before starting another.
The routing layer updates its placement information as part of the managed process. Applications continue using the same routing endpoint.
Monitoring Database Cluster Groups
Monitoring is important because a group contains multiple independent database clusters.
Amazon CloudWatch provides aggregated metrics at the group level, while each member cluster retains its own metrics, alarms, logs, and database performance information.
Monitor the following areas:
Monitoring area | What to review |
CPU utilization | Identify member clusters under compute pressure |
Database connections | Detect connection growth and uneven workload distribution |
Read and write activity | Understand workload differences between clusters |
Storage utilization | Identify clusters approaching storage limits |
Query performance | Find slow queries and inefficient access patterns |
Data movement | Review job progress and cleanup status |
Routing errors | Identify statements that cannot resolve to one cluster |
Do not depend only on group-level metrics. A group average can hide a heavily loaded member cluster.
Use each cluster's performance and database monitoring tools when investigating workload problems.
Common Mistakes to Avoid
Assuming the group automatically partitions data
Adding a member cluster does not move data or distribute existing tables.
You must define data mappings, create scaleout tables where needed, and load or move the data.
Choosing an unsuitable routing key
A routing key should reflect the way applications access and modify data.
If transactions frequently involve multiple routing-key values, the application might encounter cross-cluster transaction limitations.
Choose a key that keeps related records together.
Running queries without routing information
A scaleout table requires enough routing information to identify one member cluster.
Queries that attempt to access multiple collocations cannot execute as a single routed statement.
Expecting distributed transactions
The routing layer does not provide distributed transactions across member clusters.
Design transactions so all required records are stored in the same collocation.
Forgetting global uniqueness
Each member cluster enforces its own primary keys and unique constraints.
AUTO_INCREMENT values can repeat across different clusters. If an identifier must be unique across the entire group, generate it in the application using a globally unique strategy.
Using IAM authentication with router users
Router users use password-based authentication. IAM database authentication is not supported at the routing endpoint.
Applications that require IAM database authentication can connect directly to individual member cluster endpoints instead.
Assuming the reader endpoint is read-only
During the preview, the group's API can return a ReaderEndpoint value, but it does not provide a conventional read-only endpoint for the group.
To send read-only traffic to Aurora Replicas, connect directly to the reader endpoint of each member cluster.
Database Cluster Groups vs. Traditional Aurora Read Scaling
Database cluster groups and traditional Aurora read scaling solve different problems.
Area | Traditional Aurora cluster | Database cluster group |
Database architecture | One DB cluster with a writer and optional readers | Multiple independent member clusters |
Read scaling | Aurora Replicas and reader endpoint | Direct reader endpoints on member clusters |
Write scaling | Primarily vertical scaling within the cluster | Distribute data and writes across member clusters |
Query routing | Cluster and reader endpoints | Optional managed routing endpoint |
Data placement | Within one cluster | Explicit mappings and scaleout tables |
Data movement | Traditional migration and application-managed approaches | Managed collocation movement |
Transactions | Within the cluster | Each routed transaction stays on one member cluster |
A traditional Aurora cluster is still a good choice for many applications.
Database cluster groups become relevant when the workload needs to distribute data and write activity across multiple clusters rather than simply add read capacity.
Availability, Pricing, and Preview Limitations
Database cluster groups for Aurora are currently in Preview.
The preview supports Aurora MySQL version 8.4.900 and is available in selected AWS Regions, including Mumbai.
There is no additional charge for creating groups, enabling routing, or using managed data movement during the preview. Standard Aurora charges still apply to member clusters, storage, I/O, and backups. Data transferred during managed data movement can incur standard data transfer charges.
Enabling routing provisions AWS PrivateLink interface endpoints in the VPC, which can incur additional charges.
Other important limitations include:
- A group and all its member clusters must be in the same AWS account and Region.
- A cluster can belong to only one group.
- Each group supports up to 20 member clusters by default, with quota increases available through AWS Support.
- Global unique constraints, global secondary indexes, and cross-cluster foreign keys are not supported.
- The routing layer does not automatically split or rebalance data.
- Only one managed data movement job can run at a time during the preview.
- Aurora MySQL 8.4.900 has no upgrade path to a generally available Aurora MySQL version.
Review the current AWS documentation before using the feature for important workloads because preview capabilities and limitations can change.
Best Practices for Production-Oriented Designs
- Choose a routing key based on actual application access patterns, not just the easiest column to partition.
- Keep records that participate in the same transaction within one collocation.
- Create more collocations than the number of member clusters you initially need. This gives you more flexibility when moving data later.
- Use database-level mappings when each tenant or business domain already has its own database.
- Use scaleout tables only when a table needs to distribute rows across multiple clusters.
- Generate globally unique identifiers in the application when IDs must remain unique across the group.
- Configure matching router and member-cluster users with least-privilege permissions.
- Require TLS and utf8mb4 for every client connection to the routing endpoint.
- Handle retryable errors during data movement cutover and use safe retry logic for application writes.
- Monitor individual member clusters as well as aggregated group metrics.
- Test cross-cluster joins, transactions, and queries without routing keys before migrating application connections.
- Evaluate the preview engine version and its upgrade limitations before using the feature outside a test environment.
Advantages and Limitations
Advantages
- Provides one routing endpoint for multiple Aurora MySQL clusters.
- Reduces custom database-routing logic in applications.
- Supports database-level, table-level, and row-level data placement.
- Provides managed data movement between member clusters.
- Coordinates backups, maintenance, upgrades, and monitoring.
- Allows member clusters to retain their independent configuration and endpoints.
- Automatically scales the managed routing layer.
Limitations
- Currently in Preview for Aurora MySQL 8.4.900.
- Requires explicit data partitioning and placement design.
- Does not support cross-cluster transactions or distributed joins.
- Does not provide global unique constraints or cross-cluster foreign keys.
- Requires application-level handling for operations that span multiple clusters.
- Uses password-based authentication for router users.
- Has regional, account, and member-cluster limits.
- The preview engine version has no upgrade path to a generally available Aurora MySQL version.
Summary
Database cluster groups for Amazon Aurora MySQL provide a managed way to organize multiple database clusters and route application queries to the cluster that stores the requested data.
The routing layer uses data mappings, routing functions, and collocations to determine where statements should execute. Applications can connect through one routing endpoint instead of maintaining their own cluster-selection logic.
The feature also provides coordinated management and managed data movement, allowing organizations to add capacity and move data between member clusters as workloads change.
However, the routing layer does not turn multiple databases into one distributed transactional database. Each statement and transaction must resolve to one member cluster. Cross-cluster joins, transactions, and global constraints remain application design responsibilities.
For applications that already partition data by tenant or business domain, database cluster groups offer a way to simplify routing while retaining independent Aurora clusters. For workloads that need to scale beyond a single cluster, they provide a managed foundation for a carefully planned partitioning strategy.
Join the conversation! Your thoughts help the community grow.