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

Temporarily Enable binary logging on production Aurora database cluster #44104

Merged
merged 1 commit into from Dec 17, 2021

Conversation

sureshc
Copy link
Contributor

@sureshc sureshc commented Dec 16, 2021

Reverts #43743

Temporarily re-enable MySQL binary logging on the production Aurora database cluster to support modifying the datatype of the level_sources.id column from int to bigint using gh-ost (#41927 )

Test

$ bundle exec rake stack:data:validate RAILS_ENV=production

Pending update for stack `DATA-production`:
Modify AuroraClusterDBParameters [AWS::RDS::DBClusterParameterGroup] Properties (Parameters)
Modify AuroraReportingClusterDBParameters [AWS::RDS::DBClusterParameterGroup] Properties (Parameters)

Deployment Steps

  1. Apply the update the cluster ParameterGroup bundle exec rake stack:data:start RAILS_ENV=production
    Completed 12/16/2021 16:30 PST:
Pending update for stack `DATA-production`:
Modify AuroraClusterDBParameters [AWS::RDS::DBClusterParameterGroup] Properties (Parameters)
Modify AuroraReportingClusterDBParameters [AWS::RDS::DBClusterParameterGroup] Properties (Parameters)
Proceed? [y/n]
y
 Stack update requested, waiting for provisioning to complete...
2021-12-17 00:35:10 UTC- DATA-production [UPDATE_IN_PROGRESS]: User Initiated
..2021-12-17 00:35:20 UTC- AuroraReportingClusterDBParameters [UPDATE_IN_PROGRESS]
2021-12-17 00:35:21 UTC- AuroraClusterDBParameters [UPDATE_IN_PROGRESS]
.........2021-12-17 00:36:22 UTC- AuroraReportingClusterDBParameters [UPDATE_COMPLETE]
2021-12-17 00:36:25 UTC- AuroraClusterDBParameters [UPDATE_COMPLETE]
.2021-12-17 00:36:28 UTC- DATA-production [UPDATE_COMPLETE_CLEANUP_IN_PROGRESS]

Stack update complete.
Outputs:
  1. Restart the writer database instance (90 seconds of downtime) for the change to take effect
  2. Verify that ProxySQL correctly identifies which database instance is the writer and which database instances are the readers

@sureshc sureshc requested a review from a team December 16, 2021 19:14
@sureshc sureshc merged commit 3b5d2dc into staging Dec 17, 2021
@sureshc sureshc deleted the revert-43743-revert-41037-enable-binary-logging branch December 17, 2021 01:05
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.

None yet

2 participants