Update Treeherder RDS instances from MySQL 5.7.17 to 5.7.23
Categories
(Tree Management :: Treeherder: Infrastructure, enhancement, P2)
Tracking
(Not tracked)
People
(Reporter: emorley, Assigned: emorley)
Details
Attachments
(5 files)
63 bytes,
text/x-github-pull-request
|
fubar
:
review+
|
Details | Review |
63 bytes,
patch
|
fubar
:
review+
fubar
:
checkin+
|
Details | Diff | Splinter Review |
63 bytes,
text/x-github-pull-request
|
emorley
:
checkin+
|
Details | Review |
63 bytes,
text/x-github-pull-request
|
dividehex
:
review+
|
Details | Review |
63 bytes,
text/x-github-pull-request
|
dividehex
:
review+
dividehex
:
checkin+
|
Details | Review |
Not urgent; we should do it some time after the change freeze. Release notes: https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-18.html https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-19.html
Assignee | ||
Comment 1•6 years ago
|
||
Comment 2•6 years ago
|
||
Comment on attachment 8952087 [details] [review] devservices-aws PR #79: Upgrade treeherder-dev MySQL I'm going to 302 to :fubar since I'm swamped with datacenter move deadlines
Comment 3•6 years ago
|
||
Comment on attachment 8952087 [details] [review] devservices-aws PR #79: Upgrade treeherder-dev MySQL Currently applying update; will update when it's finished.
Assignee | ||
Comment 5•6 years ago
|
||
Many thanks - will leave this bug open to track verifying no issues with 5.7.19 and then updating stage/prod to use it too.
Assignee | ||
Comment 6•6 years ago
|
||
Upgrade log looks fine: https://emorley.pastebin.mozilla.org/9079148
Assignee | ||
Comment 7•6 years ago
|
||
5.7.21 is now available, so lets target that instead: https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-20.html https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-21.html
Assignee | ||
Comment 8•6 years ago
|
||
Hi! This can be applied at any time - no need for coordination. Later I'll open another PR for stage/prod (so the bug should stay open). Many thanks :-)
Assignee | ||
Updated•6 years ago
|
Comment 9•6 years ago
|
||
Comment on attachment 8967358 [details] [diff] [review] devservices-aws PR #83: Upgrade treeherder-dev MySQL again Review of attachment 8967358 [details] [diff] [review]: ----------------------------------------------------------------- approved, merged, about to deploy...
Comment 10•6 years ago
|
||
aws_db_instance.treeherder-dev-rds: Modifying... (ID: treeherder-dev) engine_version: "5.7.19" => "5.7.21" aws_db_instance.treeherder-dev-rds: Still modifying... (ID: treeherder-dev, 10s elapsed) aws_db_instance.treeherder-dev-rds: Still modifying... (ID: treeherder-dev, 20s elapsed) aws_db_instance.treeherder-dev-rds: Still modifying... (ID: treeherder-dev, 30s elapsed) aws_db_instance.treeherder-dev-rds: Modifications complete after 32s (ID: treeherder-dev) and I always forget apply_immediately, so manually forced the upgrade via console. and done an hour later, due to making two db backups/snapshots.
Assignee | ||
Comment 11•5 years ago
|
||
Oops meant to come back to this sooner. Now 5.7.23 is available: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-22.html https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-23.html I'll open a PR to update dev to 5.7.23 and follow up with the others soon after.
Assignee | ||
Comment 12•5 years ago
|
||
Assignee | ||
Comment 13•5 years ago
|
||
When you apply, could you use apply_immediately? :-)
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 14•5 years ago
|
||
Please could you apply this when you get a chance (using apply immediately again).
I believe stage should take less time than the previous one, since it's multi-AZ so the upgrade fails over instead of taking it offline.
Updated•5 years ago
|
Comment 15•5 years ago
|
||
(In reply to Ed Morley [:emorley] from comment #14)
Created attachment 9035280 [details] [review]
devservices-aws PR #95: Upgrade treeherder-{stage,prod-ro} MySQL to 5.7.23Please could you apply this when you get a chance (using apply immediately again).
I believe stage should take less time than the previous one, since it's multi-AZ so the upgrade fails over instead of taking it offline.
Merged, applied and upgrades completed.
aws_db_instance.treeherder-prod-ro-rds: Modifications complete after 16m18s (ID: treeherder-prod-ro)
aws_db_instance.treeherder-stage-rds: Modifications complete after 56m49s (ID: treeherder-stage)
Assignee | ||
Comment 16•5 years ago
|
||
Thank you :-)
Assignee | ||
Comment 17•5 years ago
|
||
Hi Jake!
This applies the same change to prod as was applied to dev/stage/prod-ro.
When it was applied for stage it caused 2-5 mins of errors as reported by New Relic which are for tasks that retry, so it shouldn't cause significant impact. However it may be best to apply this at at lower load time of day (eg early pacific) to reduce that further.
Many thanks :-)
Comment 18•5 years ago
|
||
Comment on attachment 9040971 [details] [review] devservices-aws PR #96: Upgrade treeherder-prod MySQL to 5.7.23 I'll apply this on Monday 2019/02/11 @ 0900 PST
Assignee | ||
Comment 19•5 years ago
|
||
That sounds great - thank you :-)
Comment 20•5 years ago
|
||
Comment on attachment 9040971 [details] [review] devservices-aws PR #96: Upgrade treeherder-prod MySQL to 5.7.23 aws_db_instance.treeherder-prod-rds: Modifications complete after 1h3m21s (ID: treeherder-prod)
Assignee | ||
Comment 21•5 years ago
|
||
Many thanks!
Terraform change landed in:
https://github.com/mozilla-platform-ops/devservices-aws/commit/6db0b6441529dba4a38c023813a6f003b5cf779f
Looking at the AWS RDS event logs, the DB started its restart at 17:38:17 and was back at 17:41:43, so much quicker than stage.
Description
•