Skip to content

Conversation

@thylong
Copy link

@thylong thylong commented Sep 17, 2017

Thanks a lot for this repository, it really prevented me to get some headaches !

This PR automate the resync of the slave to master if slave is off.
This situation will occur every time the container(s) stop, restart or are killed.

How does it work?

After the slave has started, we grep the status and if it fails to replicate master, we apply the following procedure:

  • Lock master
  • Dump last version of master
  • Unlock master after dump is done
  • Stop slave
  • Import dump in slave
  • Sync slave with master logs

Tested and used in other projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant