The Wayback Machine - https://web.archive.org/web/20201121003713/https://github.com/github/gh-ost/pull/424
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

hibernate on critical-load #424

Merged
merged 4 commits into from Jun 5, 2017
Merged

hibernate on critical-load #424

merged 4 commits into from Jun 5, 2017

Conversation

@shlomi-noach
Copy link
Contributor

@shlomi-noach shlomi-noach commented May 24, 2017

Fixes #418

This PR introduces --critical-load-hibernate-seconds. This flag defaults 0 (in which case the new feature introduced in this PR is disabled)

when critical-load-hibernate-seconds > 0, then the behavior of critical-load changes. Instead of panicking and bailing out with error, gh-ost enters hibernation.

As opposed to throttling, hibernation implies absolutely no queries on neither master not migrated server. No heartbeats; no throttle checks; no replication lag checks; nothing.

When gh-ost awakes from hibernation, it's all back to normal, and throttling checks take place as usual, and of course it may potentially re-enter hibernation if critical-load is still met.

cc @ggunson @github/database-infrastructure

Shlomi Noach
@shlomi-noach
Copy link
Contributor Author

@shlomi-noach shlomi-noach commented May 24, 2017

TODO: on leaving hibernation, gh-ost has no up-to-date metrics. It shouldn't just resume work; it must first run a collection of throttle-metrics, inject heartbeat etc. Only then should it resume work.

This is somewhat complicated to achieve and supervise, since most of these processes are independent.

@shlomi-noach shlomi-noach deployed to production/ghost-mysql001 May 24, 2017 Active
Shlomi Noach added 2 commits May 24, 2017
@shlomi-noach shlomi-noach deployed to production/ghost-mysql001 May 24, 2017 Active
@shlomi-noach shlomi-noach merged commit 8335f13 into master Jun 5, 2017
2 of 3 checks passed
2 of 3 checks passed
continuous-integration/travis-ci/pr The Travis CI build is in progress
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
gh-ost-build-deploy-tarball Build #6858262 succeeded in 6s
Details
@shlomi-noach shlomi-noach deleted the critical-load-hibernate branch Jun 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.