Switch ActiveMQ from classic to artemis #196
Merged
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.
Description of the changes
This changes the activemq used in the test docker-compose from the classic to artemis. I copied the configuration from https://code.ornl.gov/sns-hfir-scse/deployments/amqbroker_artemis_deploy but I had to make a small change. I added
connectionTtl=300000
to the STOMP Acceptor, so 5 minutes, it could probably be shorter. The default was 1 minute which was causing dasmon to timeout because it was only sending a heartbeat every 2 minutes as set here. Alternatively we can increase the frequency of heartbeats sent from dasmon.I also needed to change the dasmon
amq_consumer.py
to subscribe to queues using an unique ID per connection because artemis was rejecting the subscriptions if the ID was the same.Check all that apply:
References:
Manual test for the reviewer
(Instructions for testing here)
Check list for the reviewer