Skip to content

Instantly share code, notes, and snippets.

@jturel
Last active March 22, 2020 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jturel/28cb4f21501f92848b9762ce82e0e326 to your computer and use it in GitHub Desktop.
Save jturel/28cb4f21501f92848b9762ce82e0e326 to your computer and use it in GitHub Desktop.
katello candlepin broker.xml
<?xml version='1.0' encoding="UTF-8"?>
<configuration xmlns="urn:activemq"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:activemq /schema/artemis-configuration.xsd">
<core xmlns="urn:activemq:core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:activemq:core ">
<acceptors>
<acceptor name="in-vm">vm://0</acceptor>
<acceptor name="stomp">tcp://localhost:61613?protocols=STOMP;sslEnabled=true;keyStorePath=/etc/candlepin/certs/amqp/candlepin.jks;keyStorePassword=REPLACEME</acceptor>
</acceptors>
<security-enabled>false</security-enabled>
<!-- Silence warnings on server startup -->
<cluster-user></cluster-user>
<cluster-password></cluster-password>
<persistence-enabled>true</persistence-enabled>
<journal-type>NIO</journal-type>
<journal-pool-files>1</journal-pool-files>
<create-bindings-dir>true</create-bindings-dir>
<create-journal-dir>true</create-journal-dir>
<bindings-directory>/var/lib/candlepin/activemq-artemis/bindings</bindings-directory>
<journal-directory>/var/lib/candlepin/activemq-artemis/journal</journal-directory>
<large-messages-directory>/var/lib/candlepin/activemq-artemis/largemsgs</large-messages-directory>
<paging-directory>/var/lib/candlepin/activemq-artemis/paging</paging-directory>
<!-- Use default thread pool max sizes as defined by Artemis. -->
<!-- Uncomment to customize. -->
<!-- <thread-pool-max-sie>30</thread-pool-max-size> -->
<!-- <scheduled-thread-pool-max-size>5</scheduled-thread-pool-max-size> -->
<addresses>
<address name="event.default">
<multicast>
<queue name="event.org.candlepin.audit.LoggingListener" />
<queue name="event.org.candlepin.audit.ActivationListener" />
</multicast>
</address>
<address name ="job">
<multicast>
<queue name="jobs" />
</multicast>
</address>
<address name="katello.candlepin">
<multicast>
<queue name="katello_candlepin_event_monitor.candlepin_events" max-consumers="1" />
</multicast>
</address>
</addresses>
<address-settings>
<address-setting match="event.default">
<auto-create-queues>true</auto-create-queues>
<max-size-bytes>10485760</max-size-bytes>
<!-- By default, Artemis will page messages when the queue address is full. -->
<page-size-bytes>1048576</page-size-bytes>
<!--
Configure message redelivery. We set the maximum number of times that a message should
be redelivered to 0 so that messages will remain in the queue and will never get sent
to the dead letter queue. Since candlepin does not currently set up, or use, a dead
letter queue, any messages sent there will be lost. We need to prevent this.
-->
<redelivery-delay>30000</redelivery-delay>
<max-redelivery-delay>3600000</max-redelivery-delay>
<redelivery-delay-multiplier>2</redelivery-delay-multiplier>
<max-delivery-attempts>0</max-delivery-attempts>
</address-setting>
<address-setting match="job">
<auto-create-queues>true</auto-create-queues>
<max-size-bytes>10485760</max-size-bytes>
<!-- By default, Artemis will page messages when the queue address is full. -->
<page-size-bytes>1048576</page-size-bytes>
<redelivery-delay>30000</redelivery-delay>
<max-redelivery-delay>3600000</max-redelivery-delay>
<redelivery-delay-multiplier>2</redelivery-delay-multiplier>
<max-delivery-attempts>0</max-delivery-attempts>
</address-setting>
<address-setting match="katello.candlepin">
<auto-create-queues>false</auto-create-queues>
<max-size-bytes>10485760</max-size-bytes>
<!-- By default, Artemis will page messages when the queue address is full. -->
<page-size-bytes>1048576</page-size-bytes>
<redelivery-delay>0</redelivery-delay>
<max-delivery-attempts>1</max-delivery-attempts>
</address-setting>
</address-settings>
<diverts>
<divert name="katello_divert">
<exclusive>false</exclusive>
<address>event.default</address>
<filter string="
(EVENT_TARGET='COMPLIANCE' and EVENT_TYPE='CREATED') OR
(EVENT_TARGET='SYSTEM_PURPOSE_COMPLIANCE' and EVENT_TYPE='CREATED') OR
(EVENT_TARGET='POOL' and EVENT_TYPE='CREATED') OR
(EVENT_TARGET='POOL' and EVENT_TYPE='DELETED') OR
(EVENT_TARGET='ENTITLEMENT' and EVENT_TYPE='CREATED') OR
(EVENT_TARGET='ENTITLEMENT' and EVENT_TYPE='DELETED')
"/>
<forwarding-address>katello.candlepin</forwarding-address>
</divert>
</diverts>
</core>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment