View a markdown version of this page

Managing data placement - Amazon Aurora

Managing data placement

In a database cluster group for Aurora with routing enabled, you decide where each database, table, and set of rows lives, and when data moves. After you design the placement, as described in Designing data placement, you change it with the tasks in this section. Placement follows a cycle that you repeat as the workload grows:

  1. Design. Choose the mapping level, the routing key, and the collocations. For more information, see Designing data placement.

  2. Place. Write data mappings, routing functions, and scaleout tables at the routing endpoint, and keep the schemas of the member clusters consistent.

  3. Observe. Compare the load on each member cluster, and find the collocations and keys that carry it. For more information, see Troubleshooting uneven load across member clusters.

  4. Move. Move collocations onto the member clusters that have spare capacity, one collocation per move. To run on more or fewer member clusters, add or remove member clusters and move collocations. For the moves that the group offers, see Moving data between member clusters.

You make these changes with SQL, at the routing endpoint or on a member cluster (direct). For when a change to data mappings reaches the routing layer, see Applying data mapping changes. Export the mappings before and after each change, as described in Exporting the mappings before and after a change.

The following table shows where to find each task.

Task See
Add, repoint, rename, or remove data mappings Changing data mappings
Change how a scaleout table maps keys to collocations Changing a routing function
Move a collocation to another member cluster Moving data between member clusters
Find a busy member cluster and what makes it busy Troubleshooting uneven load across member clusters
Spread data across more or fewer member clusters Rebalancing member clusters
Run DDL on every member cluster and keep them consistent Rolling out schema changes
Bulk load data into member clusters, or import it from outside Aurora Loading data into member clusters
Copy data yourself, or rewrite many rows in small batches Copying data and running backfills