Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New parameter value to explicitly list cluster-connections #168

Merged

Conversation

guidograzioli
Copy link
Member

@guidograzioli guidograzioli commented Sep 6, 2024

Add a new choice in activemq_cluster_discovery: provided, which leverages the new activemq_cluster_connections parameter to build the broker cluster-connections reusing the already defined activemq_connectors names.

Variable Description Default
activemq_cluster_discovery Cluster discovery: [jgroups (shared file ping), multicast (UDP), static (node list), provided (use activemq_cluster_connections)] static
activemq_cluster_connections The list of cluster connection names from the connectors list, when activemq_cluster_discovery = provided []

When setting the new provided value, it is possible to define:

activemq_connectors:
  - name: master-AMQ01
    scheme: tcp
    address: amq01-primary.domain.tld
    port: 61321
  - name: slave-AMQ01
    scheme: tcp
    address: amq01-backup.domain.tld
    port: 61321
  - name: master-AMQ02
    scheme: tcp
    address: amq02-primary.domain.tld
    port: 61322
  - name: slave-AMQ02
    scheme: tcp
    address: amq02-backup.domain.tld
    port: 61322
  - name: master-AMQ03
    scheme: tcp
    address: amq03-primary.domain.tld
    port: 61323
  - name: slave-AMQ03
    scheme: tcp
    address: amq03-backup.domain.tld
    port: 61323

and then decoratively list the connector-refs as:

activemq_cluster_discovery: provided
activemq_cluster_connections:
  - name: master-AMQ01
  - name: slave-AMQ01
  - name: master-AMQ02
  - name: slave-AMQ02
  - name: master-AMQ03
  - name: slave-AMQ03

Note: the first defined cluster connection is important when replicating with more that one connector, and check-for-active-server is enabled. See "cluster-name" documentation under: https://activemq.apache.org/components/artemis/documentation/latest/ha.html#additional-parameters-4

@guidograzioli guidograzioli added the minor_changes New parameters added to modules, or non-breaking behavior changes to existing parameters; no bugfix label Sep 6, 2024
@guidograzioli guidograzioli merged commit aa8f426 into ansible-middleware:main Sep 6, 2024
20 checks passed
@guidograzioli guidograzioli changed the title Allow to explicitly list cluster-connections New parameter value to explicitly list cluster-connections Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor_changes New parameters added to modules, or non-breaking behavior changes to existing parameters; no bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant