In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you the example analysis of load balancing, installation and configuration of ActiveMQ cluster. I hope you will get something after reading this article. Let's discuss it together.
one。 MQ introduction
MQ is an application-to-application communication method, which can be used as a program intermediary to decouple rpc through messages (various types of data files of users, processing requests sent by one application to other applications, etc.).
two。 MQ applicable scenario
In order to complete a time-consuming business without immediate return, the operation is extracted and processed asynchronously, which saves the request response time of the server, thus improving the throughput of the system, such as the business scenario in the urban parking lot, the order logistics and warehousing service in e-commerce, and the docking between different platforms can not be separated from MQ.
three。 Take ActiveMQ as an example, cluster installation, configuration and load balancing
In the selection of MQ, many people will wonder which one to choose. RabbitMq, ActiveMq, ZeroMq, kafka, I think this is inseparable from business, such as ordinary system docking or non-critical business data processing, there is no need to struggle, just use ActiveMq directly. If you have high requirements for data processing performance, throughput, and fault tolerance, you still need to test the advantages and disadvantages of each MQ. The following is network data, and I have not tested it. Give you a reference: [comparison between RabbitMq, ActiveMq, ZeroMq and kafka Summary] (http://blog.csdn.net/linsongbin1/article/details/47781187) starts cluster installation and configuration of host cluster port message port management console port node installation directory 192.168.1.81 62621 51511 8161 ${MQ_HOME} / node-01192.168.1.82 62622 51512 8162 ${MQ_HOME} / node-02192.168.1.83 62623515138163 ${MQ_HOME} / node-031. We use ZooKeeper and LevelDB to build ActiveMQ clusters and use ZooKeeper (clusters) to register all ActiveMQ Broker. Only one of the Broker can provide services and is regarded as Master, while the other Broker is in standby state and is regarded as Slave. If the Master fails to provide service due to a failure, ZooKeeper elects a Broker from the Slave to act as the Master. [installation and configuration of ZooKeeper cluster] (http://my.oschina.net/lbnan/blog/615153)2. Download the ActiveMq,tar-zxvf decompression, named node-0x3. Open port 4 in iptables. Modify the management port in ${MQ_HOME} / conf/jetty.xml as follows: 5. Configure the persistence adapter in conf/activemq.xml. Modify bind, zkAddress,
For hostname and zkPath, the BrokerName of each ActiveMQ must be the same, otherwise you cannot join the cluster, as follows:
6. Configure the message ports for each node, as follows:
7. Next, there are other ways to use static Broker-Cluster for load balancing. Find a good blog [Apache ActiveMQ load balancing] (http://www.tuicool.com/articles/r6FfY3) uses the same method above to deploy a cluster, the cluster name is myBroker2, and configure it in conf/activemq.xml: 8. Start 3 MQ and listen: ${MQ_HOME} / bin/activemq starttail-f ${MQ_HOME} / data/activemq.log after reading this article, I believe you have some understanding of "sample Analysis of load balancing, installation and configuration of ActiveMQ Cluster". If you want to know more about it, welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.