AWS peer discovery: add multi-hostname path support (backport #14705)#15395
Merged
michaelklishin merged 2 commits intov4.2.xfrom Feb 4, 2026
Merged
AWS peer discovery: add multi-hostname path support (backport #14705)#15395michaelklishin merged 2 commits intov4.2.xfrom
michaelklishin merged 2 commits intov4.2.xfrom
Conversation
Adds support for multiple hostname paths in the AWS peer discovery plugin to enable zero-downtime rolling upgrades during hostname migration scenarios. The implementation allows RabbitMQ nodes to discover peers using multiple hostname paths, ensuring cluster formation succeeds even when nodes are configured with different hostname paths during rolling upgrades. Example usage: cluster_formation.aws.hostname_path.1 = privateDnsName cluster_formation.aws.hostname_path.2 = privateIpAddress Move tests that need per-test init and end to dedicated file. (cherry picked from commit 8809b6e)
…covery_aws.schema Co-authored-by: Michael Davis <mcarsondavis@gmail.com> (cherry picked from commit 51981e2)
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.
Proposed Changes
This PR adds support for multiple hostname paths in the AWS peer discovery plugin to enable zero-downtime rolling upgrades during hostname migration scenarios. The implementation allows RabbitMQ nodes to discover peers using multiple hostname paths, ensuring cluster formation succeeds even when nodes are configured with different hostname paths during rolling upgrades.
Backward Compatibility
Existing single
hostname_pathconfiguration continues to work (unchanged).We fallback to single path behavior when no numbered paths are configured.
Configuration Examples
Multiple paths for zero-downtime migration
Note: This follows the existing pattern we have for
classic_config:Single path (backward compatible)
Types of Changes
What types of changes does your code introduce to this project?
Put an
xin the boxes that applyChecklist
Put an
xin the boxes that apply.You can also fill these out after creating the PR.
This is simply a reminder of what we are going to look for before merging your code.
CONTRIBUTING.mddocumentThis is an automatic backport of pull request #14705 done by [Mergify](https://mergify.com).