Windows & RabbitMQ: Clustering (clustering) & High Availability (HA)

Source: Internet
Author: User
Tags rabbitmq

Description: We need to configure three servers: ServerA, ServerB, ServerC

Precautions:

    1. All of the server's Erlang versions, the RABBITMQ version must be the same
    2. Server name is case sensitive
    • Step 1: Install RABBITMQ

1. Servera:windows & RabbitMQ: Installation, Step 1, 2, 3, 4, 5

2.ServerB, Serverc:windows & RabbitMQ: Installation, Step 1, 2

    • Step 2: Modify the host file for ServerA, ServerB, ServerC, for example ServerA:
ServerB  192.168.  1.120serverc  192.168.  1.130

Note: All server host files are added to all other servers in the cluster

    • Step 3: Replace the ". Erlang.cookie" File:

1. Copy ServerA "C:\Windows\ Erlang.cookie" to ServerB, ServerC "C:\Windows\"

2. Copy ServerA "C:\Windows\. Erlang.cookie" to ServerB, ServerC "C:\Users\currentuser\", for example "C:\Users\VictorBu\"

    • Step 4: Restart ServerA, ServerB, ServerC's RABBITMQ service
    • Step 5: Join the cluster

1. Login ServerB:

" C:\Program FILES\RABBITMQ Server\rabbitmq_server-3.6.1\sbin\rabbitmqctl.bat "  Stop_app
" C:\Program FILES\RABBITMQ Server\rabbitmq_server-3.6.1\sbin\rabbitmqctl.bat "  Join_cluster--ram [email protected]
" C:\Program FILES\RABBITMQ Server\rabbitmq_server-3.6.1\sbin\rabbitmqctl.bat "  Start_app

2. Log in ServerC, repeat the above steps

The cluster settings are completed when the previous settings are complete, and if you need to use the HA feature of RABBITMQ, continue with the settings below.

    • Step 6:ha configuration, available via command or interface, shown below

Ha Mode reference: http://www.rabbitmq.com/ha.html

Windows & RabbitMQ: Clustering (clustering) & High Availability (HA)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.