Skip to content

Conversation

@shlomi-noach
Copy link
Contributor

Storyline: #346

This PR removes the use of --replication-lag-query and uniformly reads replication lag via changelog table, base on gh-ost's internal heartbeat mechanism -- also on the throttle control replicas.

@shlomi-noach
Copy link
Contributor Author

cc @krzysztof-ksiazek

@shlomi-noach shlomi-noach deployed to production/ghost-mysql001 December 30, 2016 06:08 Active
@shlomi-noach shlomi-noach temporarily deployed to production/github-mysqlutil January 1, 2017 06:42 Inactive
Copy link
Contributor

@jonahberquist jonahberquist left a 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 👍

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.
Copy link
Contributor

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/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed!

@shlomi-noach shlomi-noach temporarily deployed to production/github-mysqlutil January 4, 2017 06:30 Inactive
@shlomi-noach shlomi-noach merged commit e17f41b into master Jan 4, 2017
@shlomi-noach shlomi-noach deleted the heartbeat-control-replicas-unified branch January 4, 2017 06:36
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.

4 participants