Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Health check should verify replication #102

Open
dfredell opened this issue Dec 26, 2017 · 0 comments
Open

Health check should verify replication #102

dfredell opened this issue Dec 26, 2017 · 0 comments

Comments

@dfredell
Copy link
Contributor

As stated in

# TODO: we should make this check actual replication health

lets actually check the health of the replication.

I have ended up in this state https://blog.tinned-software.net/fix-mysql-replication-error/ where SHOW SLAVE STATUS \G; returns
Last_Error: Error 'Can't create database 'my_db'; database exists' on query. Default database: 'my_db'. Query: 'CREATE SCHEMA my_db'

As Gerhard from the link above recommends, we should be checking Slave_IO_Running == Yes && Slave_SQL_Running == Yes && Seconds_Behind_Master != NULL

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

No branches or pull requests

1 participant