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

Arbitrary acceptors configuration via activemq_acceptors variable #30

Merged

Conversation

guidograzioli
Copy link
Member

@guidograzioli guidograzioli commented Sep 9, 2022

  • Acceptors
Variable Description Default
activemq_acceptors Acceptors configuration; list of { name(str), bind_address(str), bind_port(int), parameters(dict) } Generate same configuration as artemis create

Sample acceptor:

  - name: amqp
    bind_address: {{ activemq_host }}
    bind_port: {{ activemq_port_amqp }}
    parameters:
      tcpSendBufferSize: 1048576
      tcpReceiveBufferSize: 1048576
      protocols: AMQP
      useEpoll: true
      amqpMinLargeMessageSize: 102400
      amqpCredits: 1000
      amqpLowCredits: 300
      amqpDuplicateDetection: true

The acceptor definition above will generate:

<acceptor name="amqp">tcp://localhost:5672?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;protocols=AMQP;useEpoll=true;amqpCredits=1000;amqpLowCredits=300;amqpMinLargeMessageSize=102400;amqpDuplicateDetection=true</acceptor>

For a full listing of parameters, check netty class TransportConstants

@guidograzioli guidograzioli added the minor_changes New parameters added to modules, or non-breaking behavior changes to existing parameters; no bugfix label Sep 9, 2022
@guidograzioli guidograzioli force-pushed the configure_acceptors branch 3 times, most recently from e3fd010 to 3bb9733 Compare September 9, 2022 13:14
@guidograzioli guidograzioli merged commit 96cd323 into ansible-middleware:main Sep 9, 2022
@guidograzioli guidograzioli changed the title Template arbitrary acceptors configuration Arbitrary acceptors configuration via activemq_acceptors variable Sep 12, 2022
@guidograzioli guidograzioli changed the title Arbitrary acceptors configuration via activemq_acceptors variable Arbitrary acceptors configuration via activemq_acceptors variable Sep 12, 2022
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.

None yet

1 participant