ActiveMQ三机器高可用-负载均衡集群
来源:互联网 发布:当今社会热门网络话题 编辑:程序博客网 时间:2024/06/01 21:04
描述
参考自:慕课网http://www.imooc.com/learn/856
同时达到高可用、高负载
需满足:负载均衡+冷热备
分别有三个ActiveMQ-A、ActiveMQ-B、ActiveMQ-C
A:staticB和C
B:staticA并与C共享同一个kahaDB,达到共享目的
分别贴上配置:
ActiveMQ-A
activemq.xml 部分配置
<transportConnectors> <!-- DOS protection, limit concurrent connections to 1000 and frame size to 100MB --> <transportConnector name="openwire" uri="tcp://0.0.0.0:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/> <!-- <transportConnector name="amqp" uri="amqp://0.0.0.0:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/> <transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/> <transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/> <transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/> --> </transportConnectors> <networkConnectors> <networkConnector name="local_network" uri="static://(tcp://127.0.0.1:61617,tcp://127.0.0.1:61618)"/> </networkConnectors>
jetty.xml端口8161
ActiveMQ-B
activemq.xml 部分配置
<persistenceAdapter> <kahaDB directory="E:/WorkSpace/apache-activemq-5.15.0-bin/kahadb"/> </persistenceAdapter>
<transportConnectors> <!-- DOS protection, limit concurrent connections to 1000 and frame size to 100MB --> <transportConnector name="openwire" uri="tcp://0.0.0.0:61617?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/> <!-- <transportConnector name="amqp" uri="amqp://0.0.0.0:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/> <transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/> <transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/> <transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/> --> </transportConnectors> <networkConnectors> <networkConnector name="network_a" uri="static://(tcp://127.0.0.1:61616)"/> </networkConnectors>
jetty.xml端口8162
ActiveMQ-C
activemq.xml 部分配置
<persistenceAdapter> <kahaDB directory="E:/WorkSpace/apache-activemq-5.15.0-bin/kahadb"/> </persistenceAdapter>
<transportConnectors> <!-- DOS protection, limit concurrent connections to 1000 and frame size to 100MB --> <transportConnector name="openwire" uri="tcp://0.0.0.0:61618?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/> <!-- <transportConnector name="amqp" uri="amqp://0.0.0.0:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/> <transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/> <transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/> <transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/> --> </transportConnectors> <networkConnectors> <networkConnector name="network_a" uri="static://(tcp://127.0.0.1:61616)"/> </networkConnectors>
jetty.xml端口8163
分别启动A、B、C即可
阅读全文
0 0
- ActiveMQ三机器高可用-负载均衡集群
- ActiveMQ高可用+负载均衡集群
- JMS之——ActiveMQ高可用+负载均衡集群
- linux上搭建ActiveMQ高可用集群+负载均衡
- ActiveMQ高可用+负载均衡+测试
- 集群主要分成三大类 (高可用集群, 负载均衡集群,科学计算集群)
- 第一次自己搭建activeMQ实现高可用负载均衡集群心得
- 搭建MySQL高可用负载均衡集群
- 搭建MySQL高可用负载均衡集群
- 集群基础----(高可用+负载均衡)
- 搭建MySQL高可用负载均衡集群
- ActiveMQ实现负载均衡+高可用部署方案 ActiveMQ
- ActiveMQ实现负载均衡+高可用部署方案
- ActiveMQ实现负载均衡+高可用部署方案
- ActiveMQ实现负载均衡+高可用部署方案【未完待续】
- ActiveMQ实现负载均衡+高可用部署方案
- ActiveMQ的高可用与负载均衡配置
- ActiveMQ实现负载均衡+高可用部署方案
- ThreadLocal的讲解
- 数组中第K大的数
- 给定整数序列求连续子串最大和
- Java/Android 设计模式系列(8)--桥接模式
- 设计模式_单例模式(5)
- ActiveMQ三机器高可用-负载均衡集群
- offsetByCodePoints()与codePointAt()
- PAT 甲级 1019. General Palindromic Number
- MyBatis动态传入表名,字段名参数的解决办法--用于分表--表名是动态的
- Flask-RESTful接口开发学习笔记一:实现简单的GET请求
- 单一职责原则
- 2017理数全国卷I T21
- C++ 域名转IP地址
- C# winform PictureBox插入图片并设置自适应显示