Skip to content

Is DDL updates to Writer instance Aurora MySQL synced with Reader instance?

0

We recently migrated from RDS MySQL to Aurora MySQL (8.0.mysql_aurora.3.08.0) and have a Aurora MySQL regional cluster with one "Writer" and one "Reader" instances. We plan to make few DDL updates. Is changes gets synced to with all instances, when running scripts on "Writer Instance" automatically and instantly?

asked a year ago276 views

1 Answer
1
Accepted Answer

Hi,

Thank you so much for asking your question.

Yes, when you execute DDL changes on the Writer instance of your Aurora MySQL cluster, those changes are automatically and instantly propagated to all Reader instances in the cluster. This is one of the key benefits of Aurora's architecture.

However, there are a few important points to consider(Following consideration is not Aurora MySQL specific):

  • Always test DDL changes in a non-production environment first
  • Monitor the replication lag during DDL operations
  • Some DDL operations require table locks which can block reads and writes
  • DDL operations can be resource-intensive
    • They may cause increased CPU, memory, and I/O usage and Temporary tables might be created during the process
    • Large tables might require significant temporary space during alterations

I hope this might help.

AWS

answered a year ago

EXPERT

reviewed a year ago

  • Thanks for your quick response. We ran the DDL in test cluster created from prod cluster snapshot, with only one instance to check how long it would take, but agree we should have tested with at least one writer, one reader. Anyway our changes are not going to take long and its a planned outage anyway.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.