Repository navigation
docs-v1.1.0 (ruby): document Blue/Green blue-connection invalidation and MySQL timeout failover - #59
Merged
Conversation
…and MySQL timeout failover - Blue/Green: add bg_drop_blue_connections to the parameters, the phase list, and the planned-maintenance scenario note. - Enhanced failover: document that mysql2 and trilogy fail over on read_timeout, wait_timeout disconnects (4031), and lost connections, with guidance on read_timeout and idle pooled connections. - Development guide: storage service reads publish a DataAccessEvent only with register_access: true.
- Correct how error 2055 surfaced under aws_mysql2 before 1.1.0 (StatementInvalid, not ConnectionFailed). - Say the failover plugin must be listed alongside bg rather than calling it on by default, and note the cost of opting out. - Move blue-connection invalidation into the After the switchover phase, add it to the phase diagram, and cover the ActiveRecord retry and switchover-timeout cases in bg_drop_blue_connections. - Add aws_trilogy to the ActiveRecord adapter lists on the failover page, and qualify the idle-connection and MySQL version wording. - Note that ActiveRecord's query retries skip FailoverSuccessError. - Update the remaining dev-guide references to register_access.
sophia-bq
approved these changes
Nov 5, 2026
…aise With the failover plugin, reusing an invalidated blue connection can still fail to reconnect and raise FailoverFailedError, so name all three failover errors and link to them instead of implying the reconnect always succeeds.
sophia-bq
approved these changes
Nov 5, 2026
sophia-bq
added a commit
that referenced
this pull request
Nov 5, 2026
* docs-v1.1.0 (ruby): document custom endpoint credentials and host selection strategy validation (#40) * docs: federated auth (#44) * Merge main into ruby/1.1.0 (#58) * docs-v1.1.0 (ruby): document Blue/Green blue-connection invalidation and MySQL timeout failover (#59) * docs-v1.1.0 (ruby): document trilogy support (#60) * docs: trilogy support * fix: include recommended driver properties when iam is selected * docs: telemetry (#61) * fix: include trilogy in notes * fix: swap tables for fiddle warning --------- Co-authored-by: Aaron <69273634+aaron-congo@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Documents three Ruby wrapper changes shipping in 1.1.0.
Blue/Green: invalidating blue connections after a switchover (aws/aws-advanced-ruby-driver-wrapper#223)
bg_drop_blue_connectionsparameter (Boolean, defaulttrue) to the Blue/Green plugin page. Its description covers:bg_switchover_timeout_secruns out before Post.FailoverSuccessError(orTransactionStateUnknownError) on their next use whenfailoveris listed alongsidebg, so applications should handle that the way they handle a failover.Enhanced failover: MySQL timeouts and idle connections (aws/aws-advanced-ruby-driver-wrapper#234)
mysql2andtrilogy:read_timeout;wait_timeout(error 4031 on MySQL 8.0.24 and later);read_timeout,wait_timeout, ActiveRecord'sidle_timeout);aws_trilogyto the ActiveRecord adapter lists on the failover page.FailoverSuccessErrorandTransactionStateUnknownErrorare not retried.Development guide: storage service (aws/aws-advanced-ruby-driver-wrapper#226)
DataAccessEventonly when called withregister_access: true. The Storage Service and Event Publisher entries are updated to match.Which docs are affected?
Ruby Blue/Green Deployment plugin page, Enhanced Failover page, Set up by Scenario builder (Blue/Green and ActiveRecord retry notes), and the Development Guide's Service Container page.
Checklist