Skip to content

For help, click the link below to get free database assistance or contact our experts for personalized support.

MySQL relay log on the replica node is not automatically purged

Description

Disabling the automatic purging of relay logs can have the following results:

  • Relay logs can take up an unnecessary disk space

  • Also enabling the –relay-log-recovery option risks data consistency and is therefore not crash-safe

Change this global variable dynamically with SET GLOBAL relay_log_purge = N.

Resolution

Set relay_log_purge to 1 to enable automatic purging.

Need more support from Percona?

Percona experts bring years of experience in tackling tough database performance issues and design challenges.