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
EXPERT
demandé il y a 5 ans2516 vues
2 réponses
0
Réponse acceptée

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
répondu il y a 5 ans
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
répondu il y a 6 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions