

# Overview of database cluster groups for Aurora

A database cluster group for Aurora holds a set of Aurora MySQL DB clusters, called **member clusters**, that you manage together. Each member cluster remains an independent Aurora DB cluster with its own endpoints, which you access, configure, and tune with the tools that you use today. A database cluster group works with or without routing.

## Capabilities of database cluster groups for Aurora
<a name="databaseclustergroups-wi-ways-to-run-a-group"></a>

A database cluster group for Aurora provides three capabilities across its member clusters, the Aurora DB clusters in the group. Coordinated operations apply to every database cluster group. Routing and data movement are optional. You can enable routing when you create the group or after you create it.

**Coordinated operations**  
A database cluster group for Aurora runs operations across all of its member clusters, so you manage related clusters together instead of one at a time. Coordinated operations include the following:  
+ **Upgrades and maintenance.** The group applies minor version upgrades in waves that you define. The group also runs maintenance and configuration changes in the group's maintenance window. For more information, see [Upgrading a database cluster group for Aurora in waves](databaseclustergroups-upgrades.md).
+ **Backup and point-in-time restore.** The group backs up every member cluster. It restores all member clusters to the same point in time, so related data stays consistent after a restore. For more information, see [Backing up and restoring a database cluster group for Aurora](databaseclustergroups-backups.md).
+ **Monitoring.** Amazon CloudWatch provides metrics for the group, aggregated from its member clusters. Each member cluster keeps its own metrics, alarms, and logs, and its own Performance Insights and CloudWatch Database Insights data. For more information, see [Monitoring database cluster groups for Aurora](databaseclustergroups-monitoring.md).

**Routing**  
When you enable routing, the database cluster group for Aurora provides a routing endpoint, the single endpoint that your applications connect to. Behind the routing endpoint, the routing layer sends each request to the one member cluster that holds the data for that request. AWS manages the routing layer and scales it automatically. For more information, see [Architecture of a database cluster group for Aurora](databaseclustergroups-architecture.md) and [Connecting to the routing endpoint](databaseclustergroups-connecting.md).  
Data mappings define where your data is stored. A data mapping records which member cluster holds a database or a table. If a table is too large for one member cluster, use a scaleout table. A scaleout table is one logical table that spreads its rows across tables on several member clusters. The routing key is the column or set of columns whose value decides which member cluster holds a row. To keep related objects together, place them in the same collocation. A collocation is a logical group of related objects. A transaction that spans multiple tables can run on one member cluster when those tables are in the same collocation. For more information, see [Designing data placement](databaseclustergroups-choosing-routing.md).

**Data movement**  
As demand changes, you can move data to other member clusters to balance demand, either adding new member clusters or using existing ones, or consolidate data and remove member clusters to reduce costs. A data movement job moves one collocation, the set of objects that stay together on one member cluster, from one member cluster to another member cluster. The source member cluster keeps serving traffic during the move. When you shift your workload to the moved objects, which is called cutover, writes to the moved objects pause briefly and fail with a retryable error, so your application retries them. The group coordinates data movement with routing, so applications keep reaching the correct records without changes to application code. You decide what moves and when. For more information, see [Moving data between member clusters](databaseclustergroups-data-movement.md).

Enabling routing creates a routing endpoint but doesn't redirect any existing connections. An application connects through the routing layer only when you change its connection string to the routing endpoint. Applications, keeping their current connection strings, continue to connect directly to member clusters, which remain standard Aurora DB clusters with their own endpoints.

## Use cases for database cluster groups for Aurora
<a name="databaseclustergroups-wi-when-to-use-a-db-cluster-group"></a>

A database cluster group for Aurora supports three use cases. Start with the use case that matches your Aurora DB clusters today.
+ **You have Aurora DB clusters to manage together.** Your application's data spans multiple Aurora DB clusters, so you upgrade, maintain, and back up each one separately, and a restore can return them to different points in time. Add your clusters to a database cluster group for Aurora and you can use coordinated operations, group backup, consistent point-in-time restore, and monitoring across them. Adding a cluster copies no data and doesn't change its endpoints. You don't need to enable routing to get these capabilities. For more information, see [Add member clusters](databaseclustergroups-gs-add-members.md).
+ **Your application already partitions its data across Aurora DB clusters.** Your application includes its own logic to find the DB cluster that holds each record, and you update that logic each time you add a DB cluster. Adding a cluster copies no data and doesn't change its endpoints. When you enable routing, you describe your existing partitions with data mappings, and the routing layer sends each request to the member cluster that holds its data. No data moves. For more information, see [Describing existing data partitions with data mappings](databaseclustergroups-existing-split.md).
+ **Your workload needs to scale out beyond one Aurora DB cluster.** Your workload is approaching the write capacity of a single DB cluster. You choose a routing key and a placement for your data, and you adopt the placement in stages. Your application might need changes, and the database cluster group for Aurora doesn't split a DB cluster for you. For more information, see [Designing data placement](databaseclustergroups-choosing-routing.md).

When you enable routing, start at the level where your application already separates data. With database-level routing, each data mapping places one database on a member cluster, such as a database for each tenant. Your application keeps the database names that it uses today. For more information, see [Data mappings and collocations](databaseclustergroups-data-mappings.md).

## Considerations for database cluster groups for Aurora
<a name="databaseclustergroups-wi-what-a-group-is-not"></a>

Each member cluster remains an independent Aurora DB cluster. Through the routing endpoint, each statement and each transaction runs on one member cluster, and separate transactions in one session can each run on a different member cluster. To work with rows on two member clusters, run one statement or transaction on each, or keep related rows in one collocation. You decide how to organize your data across member clusters and when it moves.

Each member cluster enforces primary keys, unique constraints, and indexes locally, on its own rows. There's no support for a global constraint that spans more than one member cluster. Each member cluster generates its own `AUTO_INCREMENT` and sequence values. A value can therefore repeat between member clusters, so generate keys that must be unique across the group in your application. For more information, see [Statement compatibility](databaseclustergroups-compatibility.md).

The placement of your data stays your decision. The group doesn't choose where data goes, rebalance it, split a member cluster, or copy a table to every member cluster. For each of these and what to do instead, see [Features not supported](databaseclustergroups-limitations.md#databaseclustergroups-limitations-not-supported).

A group and all of its member clusters are in one AWS account and one AWS Region. For a workload that needs more than one Region, run a group in each Region and coordinate between the groups in your application or with your own replication. A change data capture consumer connects to each member cluster directly.

For the full list of requirements and limits, see [Limitations and considerations for database cluster groups for Aurora](databaseclustergroups-limitations.md).

## Availability and pricing
<a name="databaseclustergroups-wi-availability-and-pricing"></a>

Database cluster groups for Aurora are available in preview for Aurora MySQL major version 8.4. Member clusters must run Aurora MySQL version 8.4.900, a preview version. For the upgrade limitation of this version, see [Limitations and considerations for database cluster groups for Aurora](databaseclustergroups-limitations.md).

Database cluster groups for Aurora are available in the following AWS Regions:
+ 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)

**Note**  
During the preview, there's no additional charge to add DB clusters to a database cluster group for Aurora, enable routing, or move data between member clusters. Standard AWS data transfer rates still apply to data that managed data movement transfers.  
You pay standard Aurora rates for each member cluster, including DB instances, storage, I/O, and backup storage. You also pay for snapshots of database cluster groups for Aurora at the standard Aurora backup storage rate. For more information, see [Aurora pricing](https://aws.amazon.com/rds/aurora/pricing/).  
Enabling routing provisions AWS PrivateLink interface endpoints in your VPC, which incur additional charges. For more information, see [AWS PrivateLink pricing](https://aws.amazon.com/privatelink/pricing/).

## What's next
<a name="databaseclustergroups-wi-next-steps"></a>

Where to go next depends on your starting point:
+ To learn how a group, its member clusters, and the routing layer fit together, see [Architecture of a database cluster group for Aurora](databaseclustergroups-architecture.md).
+ To create a group with new clusters or with the clusters that you run today, see [Getting started with database cluster groups for Aurora](databaseclustergroups-getting-started.md).
+ To upgrade, back up, and restore a group, see [Managing a database cluster group for Aurora](databaseclustergroups-managing.md). To monitor a group, see [Monitoring database cluster groups for Aurora](databaseclustergroups-monitoring.md).
+ To decide how to place your data before you enable routing, see [Designing data placement](databaseclustergroups-choosing-routing.md).
+ To connect applications to the routing endpoint, see [Connecting to the routing endpoint](databaseclustergroups-connecting.md).