Can we configure separate binary logging (binlog) on Aurora MySQL's Read Replica instance?

0

A customer has enabled binlog and expecting to get binlogs from read replica instance of Aurora - MySQL Cluster. Here are the steps being followed:

Enabled binlogs via cluster parameter group and set the format to ROW.

Restarted the cluster to ensure changes take effect

Logging into writer node shows

mysql> show master status -> ; +----------------------------+----------+--------------+------------------+-------------------+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set | +----------------------------+----------+--------------+------------------+-------------------+ | mysql-bin-changelog.000002 | 120 | | | | +----------------------------+----------+--------------+------------------+-------------------+ 1 row in set (0.01 sec)

However, the reader node does not return any value

mysql> show master status; Empty set (0.01 sec)

On both reader and writer, the bin_log_format is shown as ROW

MySQL [(none)]> SHOW VARIABLES LIKE 'binlog_format'; +---------------+-------+ | Variable_name | Value | +---------------+-------+ | binlog_format | ROW | +---------------+-------+ 1 row in set (0.061 sec)

Backup retention value is also set to a non-zero value.

My understanding here is you can pull binlog only from the writer node in Aurora. The replica nodes use redo logs and share the storage layer with the writer. The customer's expectations seems incorrect. Can I be doubly sure here?

profile pictureAWS
专家
已提问 5 年前2516 查看次数
2 回答
0
已接受的回答

Yes, that is correct. You can only pull binary logs from the Writer Instance. Also, Amazon RDS normally purges a binary log as soon as possible, but the binary log must still be available on the instance to be accessed by mysqlbinlog. To specify the number of hours for RDS to retain binary logs, use the mysql.rds_set_configuration stored procedure and specify a period with enough time for for replication to occur.

How do I enable binary logging for Amazon Aurora for MySQL?: https://aws.amazon.com/premiumsupport/knowledge-center/enable-binary-logging-aurora/

AWS
VijayK
已回答 5 年前
0

This answer is 4 years old. Is this still the case now? We would like to read binlogs from Reader replica instead of Writer node for performance reasons.

Anon
已回答 6 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则