Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temporarily Enable binary logging on production Aurora database cluster #44104

Merged
merged 1 commit into from
Dec 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 12 additions & 2 deletions aws/cloudformation/db_parameters.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,18 @@ Reporting:

# System variables for the Aurora DB cluster.
AuroraCluster: &aurora
# Disable binary logging to improve write performance.
binlog_format: 'OFF'
# When using row-based logging, the primary database writes events to the binary log that indicate how individual table rows are changed.
# Replication of the primary database to a replica works by copying the events representing the changes to the table rows to the replica.
# ROW required for DMS Change Data Capture:
# https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MySQL.html#CHAP_Source.MySQL.AmazonManaged
# ROW also required to use gh-ost to carry out online schema changes on large tables:
# https://github.com/github/gh-ost/blob/master/doc/requirements-and-limitations.md
binlog_format: ROW
# When enabled, this variable causes the primary database to write a checksum for each event in the binary log.
# When disabled (value NONE), write and check the event length (rather than a checksum) for each event.
# NONE required for DMS Change Data Capture:
# https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MySQL.html#CHAP_Source.MySQL.AmazonManaged
binlog_checksum: NONE

# Enable GTIDs: https://aws.amazon.com/blogs/database/amazon-aurora-for-mysql-compatibility-now-supports-global-transaction-identifiers-gtids-replication/
gtid-mode: ON_PERMISSIVE
Expand Down