Update level_sources gh-ost migration #41927
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Refresh gh-ost level_sources migration (#30425) which we never were able to run successfully back in 2019. Modify it to use the primary database and not the replica (which no longer exists).
Links
Testing story
Executed in dry run mode:
Deployment strategy
aurora_enable_repl_bin_log_filtering=0
(this is a dynamic configuration setting).update_census_mapbox
job onproduction-daemon
which runs ~9PM-Midnight PST each day because it carries out all of its work in a single database transaction and impacts_level_sources_gho
created by the last failed execution of this migrationgit checkout origin/update-level-sources-gh-ost-migration -- bin/oneoff/gh-ost_migrations/level_sources.sh
screen
onproduction-daemon
. It will create the empty new table by copying the existing table, and will then apply the schema change to the empty table, and will then delete the new table as a dry-run.--execute
flag and re-run the script for realz in ascreen
screen
and monitor database and system performance and terminate the gh-ost migration if it is negatively impacting system performance./tmp/gh-ost.cutover
aurora_enable_repl_bin_log_filtering=1
production-daemon
so that when this change is merged and released to production it can be deployed.update_census_mapbox
jobFollow-up work
Privacy
Security
Caching
PR Checklist: