-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Reading replication lag via _changelog_ table, also on control replicas #347
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
Conversation
jonahberquist
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! I like that this will allow folks to use subsecond replication delay throttling without having to have a third-party subsecond heartbeat mechanism.
I noticed a missing is in one of the docs file changes, but I'm hitting approve here anyway 👍
doc/subsecond-lag.md
Outdated
| You can explicitly define how frequently will `gh-ost` inject heartbeat events, via `heartbeat-interval-millis`. You should set `heartbeat-interval-millis <= max-lag-millis`. It still works if not, but loses granularity and effect. | ||
|
|
||
| On the `throttle-control-replicas`, `gh-ost` only issues SQL queries, and does not attempt to read the binary log stream. Perhaps those other replicas don't have binary logs in the first place. | ||
| In earlier versions, the `--throttle-control-replicas` list was subjected to `1` second resolution or to 3rd party heartbeat injections such as `pt-heartbeat`. This is no longer the case. The argument `--replication-lag-query` has been deprecated and no longer needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/and no longer needed/and is no longer needed/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed!
Storyline: #346
This PR removes the use of
--replication-lag-queryand uniformly reads replication lag via changelog table, base ongh-ost's internal heartbeat mechanism -- also on the throttle control replicas.