Skip to content

docs(ruby): document the warning and immediate failover failure when cluster_instance_host_pattern is missing - #64

Open
aaron-congo wants to merge 1 commit into
ruby/1.1.1from
docs/failover-instance-host-pattern
Open

aaron-congo wants to merge 1 commit into
ruby/1.1.1from
docs/failover-instance-host-pattern

Conversation

@aaron-congo

@aaron-congo aaron-congo commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Description

Documents a behavior change in the AWS Advanced Ruby Driver Wrapper (aws/aws-advanced-ruby-driver-wrapper#235), coming in the next release.

When the connection host isn't a recognized RDS endpoint (an IP address or a custom domain/CNAME) and cluster_instance_host_pattern isn't set, the wrapper can't build resolvable DB instance hosts from the cluster topology. Previously, failover retried those hosts until failover_timeout_sec (300 s by default) and then failed. With this change, on Aurora and RDS Multi-AZ DB clusters:

  • the wrapper logs a warning once per host when the connection opens, naming the host and the fixes;
  • failover raises FailoverFailedError immediately, with the same explanation;
  • an explicitly set cluster_instance_host_pattern: "?" turns off both, for environments where bare instance identifiers resolve (for example through a DNS search domain).

For gdb_failover, the GDB Failover page now spells out which host pattern applies:

  • a Global Database only needs global_cluster_instance_host_patterns;
  • on a database identified as a regional cluster (for example wrapper_dialect: aurora-pg, or a single-region Global Database with wrapper_dialect unset), that setting is ignored and cluster_instance_host_pattern applies, so the same warning and failure occur.

Which docs are affected?

Ruby only:

  • Enhanced Failover:
    • the cluster_instance_host_pattern parameter row;
    • a new note in the Host pattern section;
    • the FailoverFailedError description.
  • GDB Failover: the global_cluster_instance_host_patterns parameter row.
  • Compatibility > Endpoints: the footnote for IP addresses and custom domains with failover.

Source changes are in content/failover.yaml, content/plugins.yaml, content/compatibility.yaml and content/templates/enhanced-failover.md.j2. The pages under site/docs-ruby/ are regenerated with generate.py.

Checklist

  • I read CONTRIBUTING.md.
  • This change is to the docs, not to a wrapper's source (those go in the wrapper's own repo).
  • I built the site locally and the affected pages render correctly.
  • Links I added or changed resolve, including the wrapper-switched variants where relevant.
  • No security-sensitive information is included (see SECURITY.md).

…g and immediate failover failure

When the connection host isn't a recognized RDS endpoint and
cluster_instance_host_pattern isn't set, the wrapper logs a warning at
connect on Aurora and RDS Multi-AZ DB clusters, and failover raises
FailoverFailedError immediately. Document that behavior, the '?' opt-out
for environments where bare instance identifiers resolve, and which host
pattern applies for gdb_failover on Global Databases vs regional dialects.
@aaron-congo
aaron-congo requested a review from a team as a code owner November 30, 2026 22:52

This branch has not been deployed

No deployments
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.

1 participant