Skip to content

Commit

Permalink
Toggled default for relay_log_recovery
Browse files Browse the repository at this point in the history
In a replication failover scenario, we need to wait for the relay logs to
be applied on the follower, BEFORE promoting it to read-writable. This
involves a restart of the node, and relay_log_recovery was set to 1,
which meant we were blowing away relay_logs, which could be potential
loss of data.

So toggling the value, so that we have the relay logs, to try to
minimize data loss when failing over.

[#164675958]

Signed-off-by: Jamie Monserrate <jmonserrate@pivotal.io>
  • Loading branch information
abg authored and jamiemonserrate committed Nov 18, 2019
1 parent 7e94391 commit f55c498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jobs/pxc-mysql/templates/my.cnf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ event_scheduler = <%= bool_to_on_off(p('engine_config.event_sche
master_info_repository = TABLE
relay_log_info_repository = TABLE
relay_log = mysql-relay
relay_log_recovery = 1
relay_log_recovery = OFF
master_verify_checksum = 1

<% if p('engine_config.audit_logs.enabled') %>
Expand Down

0 comments on commit f55c498

Please sign in to comment.