-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
amq_broker: configuration of static cluster (#3)
- Loading branch information
1 parent
dc2fce5
commit 5ce006b
Showing
8 changed files
with
131 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
- name: Playbook for Red Hat AMQ Broker | ||
hosts: all | ||
vars: | ||
amq_broker_ha_enabled: true | ||
amq_broker_disable_hornetq_protocol: true | ||
amq_broker_disable_mqtt_protocol: true | ||
amq_broker_shared_storage: true | ||
amq_broker_configure_firewalld: true | ||
collections: | ||
- middleware_automation.redhat_csp_download | ||
- middleware_automation.amq | ||
roles: | ||
- amq_broker | ||
pre_tasks: | ||
- name: Create nfs shared directory | ||
ansible.builtin.file: | ||
state: directory | ||
path: /opt/amq/amq-broker/data/shared | ||
owner: root | ||
group: root | ||
mode: 0775 | ||
- name: Create mount NFS volume | ||
ansible.posix.mount: | ||
src: 10.0.153.34:/nfs | ||
path: /opt/amq/amq-broker/data/shared | ||
opts: rw,sync,hard,intr | ||
state: mounted | ||
fstype: nfs |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
- name: configure - clustering - remove discovery groups | ||
xml: | ||
path: "{{ amq_broker.home }}/etc/broker.xml" | ||
xpath: /conf:configuration/core:core/core:discovery-groups | ||
state: absent | ||
namespaces: | ||
conf: urn:activemq | ||
core: urn:activemq:core |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<!-- (( ansible_managed )) --> | ||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="urn:org:jgroups" | ||
xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/jgroups.xsd"> | ||
|
||
<TCP loopback="false" | ||
bind_addr="{{ broker_private_ip }}" | ||
bind_port="7800" | ||
use_send_queues="true" | ||
recv_buf_size="${tcp.recv_buf_size:5M}" | ||
send_buf_size="${tcp.send_buf_size:5M}" | ||
max_bundle_size="64K" | ||
max_bundle_timeout="30" | ||
sock_conn_timeout="300" | ||
|
||
timer_type="new3" | ||
timer.min_threads="4" | ||
timer.max_threads="10" | ||
timer.keep_alive_time="3000" | ||
timer.queue_max_size="500" | ||
|
||
thread_pool.enabled="true" | ||
thread_pool.min_threads="2" | ||
thread_pool.max_threads="8" | ||
thread_pool.keep_alive_time="5000" | ||
thread_pool.queue_enabled="true" | ||
thread_pool.queue_max_size="10000" | ||
thread_pool.rejection_policy="discard" | ||
|
||
oob_thread_pool.enabled="true" | ||
oob_thread_pool.min_threads="1" | ||
oob_thread_pool.max_threads="8" | ||
oob_thread_pool.keep_alive_time="5000" | ||
oob_thread_pool.queue_enabled="false" | ||
oob_thread_pool.queue_max_size="100" | ||
oob_thread_pool.rejection_policy="discard" /> | ||
|
||
<FILE_PING location="{{ amq_broker.home }}/{{ amq_broker_shared_storage_path }}/file-ping" /> | ||
<MERGE3 min_interval="10000" | ||
max_interval="30000"/> | ||
<FD_SOCK/> | ||
<FD timeout="3000" max_tries="3"/> | ||
<VERIFY_SUSPECT timeout="1500"/> | ||
<BARRIER/> | ||
<pbcast.NAKACK2 use_mcast_xmit="false" | ||
discard_delivered_msgs="true"/> | ||
<UNICAST3/> | ||
<pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000" | ||
max_bytes="4M"/> | ||
<pbcast.GMS print_local_addr="true" join_timeout="2000" | ||
view_bundling="true"/> | ||
<MFC max_credits="2M" | ||
min_threshold="0.4"/> | ||
<FRAG2 frag_size="60K"/> | ||
<pbcast.STATE_TRANSFER/> | ||
</config> |