Aurora data groups requirements and considerations
Aurora data groups have the following requirements and considerations.
Topics
Requirements for Aurora data groups
The following requirements apply to Aurora data groups:
-
Your DB cluster must run an engine version that supports data groups.
Engine Versions Aurora PostgreSQL
Version 19 Beta 4 (engine version
19.0)To check whether an engine version supports data groups, look for
SupportsDataGroupsin the output of thedescribe-db-engine-versionsAWS CLI command. -
Your DB cluster must use Aurora I/O-Optimized storage (
aurora-iopt1). This applies to the DB cluster where you create a data group and to the target of a move. For more information, see Storage configurations for Amazon Aurora DB clusters. -
Your DB cluster must have a writer DB instance. You can create a data group while the writer DB instance is still being created. The data group becomes
activeafter the writer DB instance is available. For a move, both the source DB cluster and the target DB cluster must have a writer DB instance in theavailablestate. -
You can move a data group only between two DB clusters in the same AWS account and AWS Region that have the same data group domain. For more information about data group domains, see Data group domains.
-
Your DB cluster must be in the
availablestate when you create a data group or start a move. -
Some features must be turned off in the DB cluster parameter group when you create a data group, and on the target DB cluster when you move one:
-
rds.babelfish_statusisn'ton, andaurora.enhanced_logical_replicationisn't turned on.To check, find the DB cluster parameter group, and then read the two parameters from it.
aws rds describe-db-clusters \ --db-cluster-identifierorders-cluster-1\ --query "DBClusters[0].DBClusterParameterGroup" aws rds describe-db-cluster-parameters \ --db-cluster-parameter-group-nameorders-cluster-params\ --query "Parameters[?ParameterName=='rds.babelfish_status' || ParameterName=='aurora.enhanced_logical_replication'].[ParameterName,ParameterValue]" \ --output textThe output resembles the following example.
aurora.enhanced_logical_replication None rds.babelfish_status offA value of
Nonemeans that the parameter isn't set and uses its default, which is off.
-
Considerations for Aurora data groups
The following considerations apply to Aurora data groups:
-
A data group name must follow these rules:
-
It must be 1–36 characters long.
-
It must start with a letter.
-
It can contain only letters and digits.
-
It must be unique in the DB cluster.
-
It isn't case-sensitive. Aurora stores it as a lowercase string. For example,
Tenant42andtenant42are the same name.
The examples in this guide use names without hyphens, such as
tenant42.For example,
tenant42andexamplecorpare valid names. The following names aren't valid:tenant-42(hyphen),tenant_42(underscore), and42tenant(starts with a digit). -
-
After you create a data group, every command takes its identifier, such as
dg-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111, or its ARN. The name doesn't work as an identifier. -
At preview, a DB cluster can have up to 100 data groups. A data group that's being created or moved to the DB cluster counts toward this limit. When the DB cluster is at the limit, a create or a prepare-move to it fails with
DataGroupQuotaExceededFault. -
When you restore a DB cluster from a backup, you can restore all of its data groups, or choose up to 100 data groups to restore.
-
The target DB cluster volume must stay under 256 TiB after a move.
-
Logical replication works as follows with data groups:
-
Logical replication subscriptions in the data group's databases move with it.
-
Publications move with their databases. Replication slots don't move, and a database in the data group that owns a replication slot blocks a move.
-
While a move is being prepared, you can't create or change subscriptions in the data group, and their tables don't start a new synchronization.
-
-
Every role or user that owns objects in a data group, or has privileges on them, must be mapped to the data group before you prepare a move. This includes the cluster admin user. For more information, see Managing roles for data groups.
-
If a role that's mapped with
EXPECT_NAME_MATCHdoesn't exist on the target DB cluster, prepare fails. The data group returns toactiveon the source DB cluster, and Aurora sends an event. Create the role on the target DB cluster, and then prepare the move again. -
Drop any logical replication slot that a database in the data group owns before you prepare a move. If one exists, the move fails, and the PostgreSQL log shows
cannot move a publisher database. -
Don't compare transaction IDs,
xminvalues, or snapshots across a move. Moved rows keep their source transaction IDs, and the target DB cluster has its own counter. For more information, see What moves and what stays on the source DB cluster. -
After a move,
VACUUMand autovacuum don't run on the moved databases until Aurora finishes processing them on the target DB cluster. This can take many hours. For more information, see What moves and what stays on the source DB cluster. -
When you delete a DB cluster, Aurora also deletes its data groups and the data in them.
Features not supported at preview
The following features aren't supported with data groups at preview:
-
Blue/green deployments
-
Zero-ETL integrations
-
Aurora Standard storage
-
Babelfish for Aurora PostgreSQL
-
Aurora PostgreSQL enhanced logical replication
-
Aurora PostgreSQL Limitless Database
-
Database cluster groups for Aurora
-
Copying a DB cluster snapshot that contains data groups
-
Sharing a DB cluster snapshot that contains data groups
-
Exporting data to Amazon S3 from a DB cluster snapshot that contains data groups
-
Cross-account cloning
-
Forcing a move when required parameters differ between the DB clusters
-
Automatic switchover for data group migrations
-
Renaming a data group