Skip to content

Commit ea339b6

Browse files
author
Shlomi Noach
authored
Merge pull request #805 from knepe/update-rds-docs
Update rds docs
2 parents 7c9c2b3 + 19215b2 commit ea339b6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/rds.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ If you use `pt-table-checksum` as a part of your data integrity checks, you migh
2626
This tool requires binlog_format=STATEMENT, but the current binlog_format is set to ROW and an error occurred while attempting to change it. If running MySQL 5.1.29 or newer, setting binlog_format requires the SUPER privilege. You will need to manually set binlog_format to 'STATEMENT' before running this tool.
2727
```
2828

29+
#### Binlog filtering
30+
31+
In Aurora, the [binlog filtering feature][aws_replication_docs_bin_log_filtering] is enabled by default. This becomes an issue when gh-ost tries to do the cut-over, because gh-ost waits for an entry in the binlog to proceed but this entry will never end up in the binlog because it gets filtered out by the binlog filtering feature.
32+
You need to turn this feature off during the migration process.
33+
Set the `aurora_enable_repl_bin_log_filtering` parameter to 0 in the Parameter Group for your cluster.
34+
When the migration is done, set it back to 1 (default).
35+
36+
2937
#### Preflight checklist
3038

3139
Before trying to run any `gh-ost` migrations you will want to confirm the following:
@@ -35,6 +43,7 @@ Before trying to run any `gh-ost` migrations you will want to confirm the follow
3543
- [ ] Executing `SHOW SLAVE STATUS\G` on your replica cluster displays the correct master host, binlog position, etc.
3644
- [ ] Database backup retention is greater than 1 day to enable binlogs
3745
- [ ] You have setup [`hooks`][ghost_hooks] to issue RDS procedures for stopping and starting replication. (see [github/gh-ost#163][ghost_rds_issue_tracking] for examples)
46+
- [ ] The parameter `aurora_enable_repl_bin_log_filtering` is set to 0
3847

3948
[new_issue]: https://github.com/github/gh-ost/issues/new
4049
[assume_rbr_docs]: https://github.com/github/gh-ost/blob/master/doc/command-line-flags.md#assume-rbr
@@ -43,3 +52,4 @@ Before trying to run any `gh-ost` migrations you will want to confirm the follow
4352
[percona_toolkit_patch]: https://github.com/jacobbednarz/percona-toolkit/commit/0271ba6a094da446a5e5bb8d99b5c26f1777f2b9
4453
[ghost_hooks]: https://github.com/github/gh-ost/blob/master/doc/hooks.md
4554
[ghost_rds_issue_tracking]: https://github.com/github/gh-ost/issues/163
55+
[aws_replication_docs_bin_log_filtering]: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Replication.html#AuroraMySQL.Replication.Performance

0 commit comments

Comments
 (0)