

# Limitations and considerations for database cluster groups for Aurora

**Note**  
Database cluster groups for Aurora are in preview release and are subject to change. For more information, see Betas and Previews in the [AWS Service Terms](https://aws.amazon.com/service-terms/) on the AWS website.

Review the following limitations, unsupported features, and considerations before you add a workload to a database cluster group for Aurora. For the supported engine versions and AWS Regions, see [Availability and pricing](databaseclustergroups-what-is.md#databaseclustergroups-wi-availability-and-pricing). For quotas and fixed limits, see [Quotas for database cluster groups for Aurora](#databaseclustergroups-limitations-quotas) and [Routing metadata and naming limits](#databaseclustergroups-limitations-routing-metadata-limits).

## General limitations
<a name="databaseclustergroups-limitations-general"></a>
+ A database cluster group for Aurora and all of its member clusters must be in the same AWS account and the same AWS Region. To manage clusters in several accounts or Regions, create a separate database cluster group in each account and Region.
+ An Aurora DB cluster can belong to only one database cluster group for Aurora. To manage clusters in separate groups, create one database cluster group for each set of clusters.
+ Member clusters must run Aurora MySQL. You choose the engine when you create the database cluster group for Aurora, and you can't change it afterward.
+ Member clusters must run Aurora MySQL version 8.4.900, a preview version. On version 8.4.900, you can create DB instances only in a DB cluster that belongs to a database cluster group for Aurora, and you must delete a member cluster's DB instances before you remove it from the group. Version 8.4.900 has no upgrade path to generally available Aurora MySQL versions. You can't upgrade a DB cluster that runs version 8.4.900 to a generally available version of Aurora MySQL 8.4 or later. Use DB clusters on version 8.4.900 for testing and evaluation during the preview.
+ Member clusters can't use burstable-performance DB instance classes (`db.t*`). A member cluster can use provisioned DB instances, Aurora Serverless v2 DB instances (`db.serverless`), or both. A group can contain both provisioned and Aurora Serverless v2 member clusters. A member cluster with Aurora Serverless v2 DB instances must have a minimum capacity of at least 0.5 ACUs. A minimum capacity of 0 ACUs, which turns on automatic pause, isn't supported. For more information, see [Burstable-performance instance class types](Concepts.DBInstanceClass.Types.md#Concepts.DBInstanceClass.Types.burstable), [Using Aurora serverless](aurora-serverless-v2.md), and [Scaling to Zero ACUs with automatic pause and resume for Aurora serverless](aurora-serverless-v2-auto-pause.md).
+ You can't delete a member cluster while it belongs to a database cluster group for Aurora. Remove the cluster from the group first.
+ Your account has quotas on the number of database cluster groups for Aurora and of their manual snapshots in each AWS Region, and on the number of member clusters in each group. When a request goes past a quota, Aurora rejects the whole request and makes no change. To use more than a quota allows, ask AWS Support for a quota increase, and then send the request again. For these quotas, see [Quotas for database cluster groups for Aurora](#databaseclustergroups-limitations-quotas). Each member cluster is an Aurora DB cluster, so the Aurora quotas for DB clusters and DB instances also apply. See [Quotas and constraints for Amazon Aurora](CHAP_Limits.md).

## Routing limitations
<a name="databaseclustergroups-limitations-routing"></a>
+ A database cluster group for Aurora with routing turned on has one routing endpoint. The routing layer sends each routed statement to the writer instance of the member cluster that holds the data. To send read-only traffic to Aurora Replicas, connect directly to the reader endpoint of each member cluster.
+ Each statement and each transaction that you run through the routing endpoint must run on a single member cluster. Cross-cluster queries, cross-cluster transactions, and distributed transactions aren't supported. Keep the data for one statement or transaction in one collocation, and combine results across member clusters in your application. For distributed queries and transactions, Aurora DSQL is a complementary option.
+ The routing endpoint doesn't support the full DDL and DML surface across member clusters, including distributed transactions. Check a statement in [Statement compatibility](databaseclustergroups-compatibility.md).
+ Global unique constraints, global secondary indexes, indexes that span member clusters, and cross-cluster foreign keys aren't supported. Each index is local to one member cluster, so include the unique columns in the routing key. Declare foreign keys on the member tables.
+ A data mapping places a table on one member cluster, and routing reaches only that copy. A table replicated to every member cluster for local joins isn't supported. Keep reference data on each member cluster, or maintain it from your application, and reach each copy through a pinned session or a direct connection.
+ Scaleout tables support the `MOD`, `HASH`, `PREFIX`, and `COLUMN` routing functions. User-defined routing functions aren't supported. See [Routing functions](databaseclustergroups-scaleout-tables.md#databaseclustergroups-routing-functions).
+ If an Availability Zone fails, the routing layer doesn't stop sending new connections to that zone right away, and some new connections might time out. Configure your application to retry connections with a timeout.
+ Advisory lock functions and customer-initiated two-phase commit aren't supported through the routing endpoint. Use a member cluster endpoint or a pinned session.
+ Bulk loading into a scaleout table isn't supported through the routing endpoint. Load rows as described in [Loading data into member clusters](databaseclustergroups-loading-data.md).
+ You can't configure connection pooling in the routing layer, because it manages its own connections. Configure your application's pool as described in [Managing connections](databaseclustergroups-connection-management.md).
+ You can't set a capacity for the routing layer. AWS manages it and it scales automatically. Size the member clusters instead. See [Routing layer and routing endpoint](databaseclustergroups-architecture.md#databaseclustergroups-architecture-router).

## Data movement limitations
<a name="databaseclustergroups-limitations-data-movement"></a>
+ A data movement job moves a whole collocation, and the tables in a collocation move together. You can't move an individual table out of a collocation or a subset of rows. See [Moving data between member clusters](databaseclustergroups-data-movement.md).
+ A data movement job moves objects from only one collocation. You can't merge member clusters, move several collocations in one operation, or redistribute several related tables at once.
+ A database cluster group for Aurora runs only one data movement job at a time. While a job is active, the routing layer refuses another move with error 1221 (HY000) (`Only 1 active data movement job is allowed`). A job stays active until its cleanup completes, so start the next move after `cleanup_status` reads `Complete` in `move_info`.
+ You can't undo a cutover. To roll back a move, start a new data movement job in the opposite direction.
+ A data movement job moves at most 10,000 tables and 1 TiB of table data, indexes included. To move more, divide the objects into several collocations, and run one move for each collocation.
+ A table that has a foreign key, or that is referenced by a foreign key, can't be moved. Drop the constraint before the move, and re-create it on the target member cluster after the move.
+ A trigger on a table in a table mapping isn't supported. Triggers are supported for tables within a database mapping.
+ The source member cluster must have `binlog_format = OFF` or `binlog_format = ROW` in the DB cluster parameter group. The source member cluster must have binary log compression off and no binary log filters that exclude a moving database. Don't change `binlog_format` at the session level while a job runs.
+ A move is blocked if table names collide under the target member cluster's `lower_case_table_names` setting.
+ The routing layer rejects schema changes (DDL) on the moving objects, and changes to the data mappings of the moving collocation, while a job runs.

## Backup and restore limitations
<a name="databaseclustergroups-limitations-backup"></a>
+ You can't restore a subset of member clusters from a group backup, because a group restore includes all member clusters. To restore one member cluster, use its own backup. See [Backing up and restoring a database cluster group for Aurora](databaseclustergroups-backups.md).

## Upgrade and maintenance limitations
<a name="databaseclustergroups-limitations-upgrades"></a>
+ Automatic minor version upgrades aren't supported at the level of a database cluster group for Aurora.
+ Request a group upgrade and specify the target engine version, and the group upgrades member clusters in waves.
+ Schema changes across all member clusters in one operation aren't supported. Run each schema change on each member cluster. See [Rolling out schema changes](databaseclustergroups-schema-changes.md).

## Monitoring and event limitations
<a name="databaseclustergroups-limitations-monitoring"></a>
+ Most group operations don't emit group-level Amazon RDS events. Data movement jobs do, with source type `db-cluster-group`. Member clusters emit cluster-level events. To track a group operation, check the status of the group and of each member cluster.
+ A single logical replication stream for a whole group isn't supported. Subscribe to each member cluster.
+ Query tracing, lock analysis, and performance correlation across member clusters aren't supported. Use each member cluster's monitoring tools. See [Tracing a session or statement across the group](databaseclustergroups-trace-session.md).

## Security limitations
<a name="databaseclustergroups-limitations-security"></a>
+ Only password-based authentication is supported for router users. IAM database authentication isn't available for router users; use it on direct connections to member clusters. Direct connections keep the member cluster's own authentication. See [IAM database authentication](databaseclustergroups-iam.md#databaseclustergroups-iam-db-auth) and Managing users and grants.
+ The routing layer doesn't filter the group's system tables per user. Design multi-tenant access so that tenants don't read the group's system tables.

## Features not supported
<a name="databaseclustergroups-limitations-not-supported"></a>

A database cluster group for Aurora doesn't support the following features:
+ Member clusters in an Aurora global database.
+ Member clusters with data groups.
+ Branching a member cluster.
+ Blue/green deployments for member clusters.
+ A reader endpoint for the group.
+ Changes to the subnets, security groups, or network type of the routing endpoint after routing is on.
+ Limiting a routing endpoint to a subset of member clusters.
+ Protocol compression at the routing endpoint.
+ Moving a table that has a foreign key or that a foreign key references.
+ Moving a table that has a trigger, when a table-level data mapping places the table. When a database-level mapping places the table, the move carries the database's triggers with it.
+ Backtrack on a member cluster.
+ Sharing or copying a group snapshot.
+ Canceling a group upgrade after it starts, or pausing between waves.
+ Coordinated global failover, or group-level failover across Regions.
+ Kerberos authentication for router users.
+ Creating router users in bulk with SQL.

## Considerations
<a name="databaseclustergroups-limitations-considerations"></a>
+ The SQL that you can run depends on how you connect. Query routing mode supports fewer statements. Native DDL, cursors, and XA statements run only in a pinned session or on a direct connection. See [Sessions, transactions, and session pinning](databaseclustergroups-sessions.md).
+ A group doesn't present its member clusters as a single database. You decide placement, and Aurora doesn't auto-discover, rebalance, split, or load-balance your data. See [Designing data placement](databaseclustergroups-choosing-routing.md) and [Managing data placement](databaseclustergroups-placement.md).
+ Aurora doesn't validate a mapping against the member cluster.
+ Aurora doesn't compare the member tables of a scaleout table. Keep them identical. See [Member table definitions](databaseclustergroups-scaleout-tables.md#databaseclustergroups-scaleout-tables-definition).
+ Changes to data mappings and scaleout tables aren't transactional.
+ A mapping change reaches the routing layer after a short delay. A statement on a stale mapping is refreshed and resent up to 3 times, or else returns error 1412 (SQLSTATE `HY000`). If the statement was in an open transaction, the transaction ends, so retry the whole transaction. Error 63928 (SQLSTATE `40001`) means the transaction was rolled back, so retry the whole transaction.
+ Write rejections and permission errors arrive after the statement reaches a member cluster.
+ Direct connections stay available after routing is on.
+ The routing endpoint has its own DNS name and certificate, and the Amazon RDS certificate bundle doesn't verify it.
+ The routing endpoint exists only in the Availability Zones of the chosen subnets.
+ Aurora patches the routing layer on an AWS-managed schedule.
+ If a member cluster stops advancing its latest restorable time, the group's restorable window stops advancing, and you're charged for accumulating backup storage until you remove that member cluster.
+ During the cutover, reads and writes to the moving objects fail with error 63927 (63923 on later engine versions). A cutover can also return error 1412, 63928, 1317, 1180, or 1927. It can also close the connection, which the client reports as error 2013 or 2006. After 63927 or 1412, retry the statement. After 63928 or 1180, retry the whole transaction. After 1317, roll back and retry the whole transaction, or reconnect first if the connection closed. After 1927, 2013, or 2006, reconnect and retry the whole transaction.
+ Sequence and auto-increment values count within one member cluster and can repeat across clusters. Generate group-unique identifiers in your application.
+ A collocation key keeps a dependent scaleout table with its parent. It isn't a foreign key.
+ The group doesn't align the parameter groups of its member clusters. Through the routing endpoint, the routing layer sets `sql_mode`, `time_zone`, `autocommit`, `transaction_isolation`, `auto_increment_increment`, the character set, and the session timeouts `wait_timeout`, `interactive_timeout`, and `net_write_timeout` on every member session. Member cluster parameter group values for these settings don't apply to routed sessions. The default `sql_mode` is empty, so routed writes aren't strict: an out-of-range number is stored as the column's limit, and an over-long string is cut, each with a warning. To get strict mode, set the `sql_mode` routing endpoint parameter, for example to `STRICT_TRANS_TABLES`. A routed session that doesn't set `time_zone` uses the `time_zone` routing endpoint parameter, `+00:00` by default. Keep other parameters that affect how a statement is interpreted the same on every member cluster. To create a DB cluster parameter group, see [Creating a DB cluster parameter groupin Amazon Aurora](USER_WorkingWithParamGroups.CreatingCluster.md).

## Quotas for database cluster groups for Aurora
<a name="databaseclustergroups-limitations-quotas"></a>

The following quotas apply to database cluster groups for Aurora in your AWS account.


| Name | Default | Adjustable | Error code | Error message | Description | 
| --- | --- | --- | --- | --- | --- | 
| Database cluster groups for Aurora per account | 5 | Yes, through AWS Support | DBClusterGroupQuotaExceeded | Aurora can't create the DB cluster group because you've reached the quota of 5 DB cluster groups for this Region. | The number of database cluster groups for Aurora that your account can have in one AWS Region, including groups that a restore creates | 
| Member clusters per database cluster group for Aurora | 20 | Yes, through AWS Support, up to 1,000 | DBClusterGroupMemberQuotaExceeded | Aurora can't add the DB cluster because this DB cluster group has reached the quota of 20 DB clusters per DB cluster group. | The number of member clusters that one database cluster group for Aurora can have | 
| Manual snapshots of database cluster groups for Aurora per account | 10 | Yes, through AWS Support | DBClusterGroupSnapshotQuotaExceeded | Aurora can't create the DB cluster group snapshot because you've reached the quota of 10 manual DB cluster group snapshots for this Region. Delete manual DB cluster group snapshots you no longer need and try again. | The number of manual snapshots of database cluster groups for Aurora that your account can have in one AWS Region | 

The error message states the limit that applies to your account.

## Routing metadata and naming limits
<a name="databaseclustergroups-limitations-routing-metadata-limits"></a>

The following routing metadata limits apply to each database cluster group for Aurora. The limits on what one group holds are totals and can't be increased.


| Name | Limit | Description | 
| --- | --- | --- | 
| Data mappings that one statement adds, changes, or removes | 1,000 | The data mappings that one statement can add, change, or remove. A larger INSERT, UPDATE, or DELETE fails with error 1235 and changes nothing, so split the change into smaller statements. A DELETE without a WHERE clause removes up to 1,000 mappings and leaves the rest. | 
| Data mappings in one group | 1,000,000 | The data mappings that one group can hold. | 
| Routing functions in one group | 1,000 | The routing functions that one group can hold. | 
| Scaleout tables in one group | 10,000 | The scaleout tables that one group can hold. | 
| Member tables of one scaleout table | 10,000 | The member tables that one scaleout table can have. | 
| Value list of one target collocation | 1,024 characters | The length of the VALUES IN list of one target collocation in a routing function. | 

### Naming constraints
<a name="databaseclustergroups-limitations-naming"></a>

The routing layer checks the following names. These are fixed limits, and you can't ask to change them.


| Name | Limit | 
| --- | --- | 
| Member cluster alias, maximum length | 63 characters | 
| Member cluster alias, format | Starts with a letter, contains only letters, digits, and hyphens, doesn't end with a hyphen, and has no two consecutive hyphens | 
| Member cluster alias, uniqueness | Compared without regard to case and stored in lowercase, so it must be unique in the group | 
| Router user name, maximum length | 32 characters | 
| Router user host, maximum length | 255 characters | 
| Identifier, maximum length | 64 characters | 
| Data mapping name characters | Database and table names: any character except a period, white space, control characters, characters above U\+FFFF, and ` " ' \\ , ( /\* \*/. Collocation names: letters, digits, \_, $, and -. | 

On Aurora MySQL, the routing layer returns the following errors for these names:
+ **Router user name and host:** `CREATE USER` or `RENAME USER` with a longer name or host fails with error 1396 (SQLSTATE `HY000`) and the message `String '{{name}}' is too long for user name (should be no longer than 32)` or `String '{{host}}' is too long for host name (should be no longer than 255)`. A DB cluster returns error 1470 for the same statement.
+ **Member cluster alias:** an `UPDATE` of `dbclustergroup_sys.member_cluster_mappings` that breaks a member cluster alias limit fails with error 1235 (SQLSTATE `42000`) and changes nothing. The message is `Invalid db_cluster_alias '{{alias}}': must be at most 63 characters`, `Invalid db_cluster_alias '{{alias}}': must begin with a letter, contain only letters, digits and hyphens, and must not end with a hyphen or contain two consecutive hyphens`, or, for an alias that another member cluster uses in any case, `Invalid db_cluster_alias '{{alias}}': an alias '{{existing_alias}}' already exists`.
+ **Data mapping names:** a database, schema, or table name in a data mapping can hold any character except `.`, whitespace, control characters, characters above U\+FFFF, and the characters ``` `"` `'` `\` `,` `(` `/*` `*/`. It must not be empty or a reserved name. A write to `dbclustergroup_sys.data_mappings` with a name that contains one of those characters fails with error 1235 (SQLSTATE `42000`) and a message such as `Identifier name 'a.b' is invalid: it must not contain '.'`. A name over 64 characters fails with error 1059 (SQLSTATE `42000`) and the message `Identifier name '{{name}}' is too long`. A collocation name takes only letters, digits, `_`, `$`, and `-`.

## Prerequisites for database cluster groups for Aurora
<a name="databaseclustergroups-limitations-prereqs"></a>

Before you create or use a database cluster group for Aurora, make sure that you have the following:
+ An IAM identity with permission for the actions for database cluster groups for Aurora. See [IAM and API permissions](databaseclustergroups-iam.md).
+ Aurora MySQL DB clusters in the same account and Region.
+ To turn on routing, subnets in at least two Availability Zones of one VPC, and network access to the routing endpoint. See [Network access](databaseclustergroups-network.md).
+ A router user for each database user, and a matching member cluster user on every member cluster, authenticated with a password.

Joining a database cluster group for Aurora changes a few settings on a DB cluster. See [Member clusters](databaseclustergroups-architecture.md#databaseclustergroups-architecture-member-clusters).