AWS peer discovery: add multi-hostname path support#14705
Merged
michaelklishin merged 2 commits intorabbitmq:mainfrom Feb 4, 2026
Merged
AWS peer discovery: add multi-hostname path support#14705michaelklishin merged 2 commits intorabbitmq:mainfrom
michaelklishin merged 2 commits intorabbitmq:mainfrom
Conversation
SimonUnge
reviewed
Oct 8, 2025
deps/rabbitmq_peer_discovery_aws/src/rabbit_peer_discovery_aws.erl
Outdated
Show resolved
Hide resolved
SimonUnge
reviewed
Oct 8, 2025
deps/rabbitmq_peer_discovery_aws/src/rabbit_peer_discovery_aws.erl
Outdated
Show resolved
Hide resolved
SimonUnge
reviewed
Oct 8, 2025
deps/rabbitmq_peer_discovery_aws/src/rabbit_peer_discovery_aws.erl
Outdated
Show resolved
Hide resolved
lukebakken
requested changes
Oct 8, 2025
Collaborator
lukebakken
left a comment
There was a problem hiding this comment.
Please be aware that the genie is extremely lazy with whitespace and will gladly add space characters on blank lines, at the end of lines, etc.
deps/rabbitmq_peer_discovery_aws/src/rabbit_peer_discovery_aws.erl
Outdated
Show resolved
Hide resolved
deps/rabbitmq_peer_discovery_aws/src/rabbit_peer_discovery_aws.erl
Outdated
Show resolved
Hide resolved
deps/rabbitmq_peer_discovery_aws/src/rabbit_peer_discovery_aws.erl
Outdated
Show resolved
Hide resolved
ca6b404 to
175a956
Compare
SimonUnge
reviewed
Oct 10, 2025
deps/rabbitmq_peer_discovery_aws/priv/schema/rabbitmq_peer_discovery_aws.schema
Outdated
Show resolved
Hide resolved
SimonUnge
suggested changes
Oct 10, 2025
deps/rabbitmq_peer_discovery_aws/src/rabbit_peer_discovery_aws.erl
Outdated
Show resolved
Hide resolved
lukebakken
reviewed
Oct 10, 2025
deps/rabbitmq_peer_discovery_aws/src/rabbit_peer_discovery_aws.erl
Outdated
Show resolved
Hide resolved
deps/rabbitmq_peer_discovery_aws/src/rabbit_peer_discovery_aws.erl
Outdated
Show resolved
Hide resolved
b75758a to
7cdb505
Compare
BenAtAmazon
commented
Oct 15, 2025
b67ffb1 to
c0c79bf
Compare
the-mikedavis
approved these changes
Oct 22, 2025
Collaborator
the-mikedavis
left a comment
There was a problem hiding this comment.
This looks good to me, I just have a minor suggestion about being more assertive in the schema for this config
deps/rabbitmq_peer_discovery_aws/priv/schema/rabbitmq_peer_discovery_aws.schema
Outdated
Show resolved
Hide resolved
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.
…covery_aws.schema Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2a3274a to
51981e2
Compare
12 tasks
michaelklishin
added a commit
that referenced
this pull request
Feb 4, 2026
AWS peer discovery: add multi-hostname path support (backport #14705)
lukebakken
pushed a commit
to lukebakken/rmq-rabbitmq-server
that referenced
this pull request
Mar 17, 2026
…very-multi-hostname-path AWS peer discovery: add multi-hostname path support (cherry picked from commit 3cf800e)
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.mddocument