Replicating the Message Broker
The message broker is responsible for communicating events across Sisense components. The message broker should be replicated as part of a high availability environment.
To replicate the message broker:
- On your application server:
- In Windows Services, stop the Sisense.Broker service.
- In C:\Windows\System32\config\systemprofile\ , copy the .erlang.cookie to C:\Users\Administrator .
- On your build server:
- Copy the .erlang.cookie from the application server to C:\Users\Administrator and C:\Windows\System32\config\systemprofile\
- In Windows Services, restart the Sisense.Broker service.
- Open the Command Prompt as an Administrator and in C:\Program Files\Sisense\infra\Rabbitmq\sbin , run rabbitmqctl.bat status
- Save the nodename for Step 3.4.
- In the application server:
- In Windows Services, start the Sisense.Broker service.
- Open the Command Prompt as an Administrator and in C:\Program Files\Sisense\infra\Rabbitmq\sbin :
- Run rabbitmqctl.bat stop_app.
- Run rabbitmqctl.bat join_cluster nodename.
- Run rabbitmqctl.bat start_app.
- Run rabbitmqctl.bat set_policy ha-all "." "{""ha-mode"":""all""}".
- In Windows Services, restart the Sisense.Broker service.
- In your browser, open localhost:3030. In General, edit the ‘RabbitMQ Connection String’ and enter the IP of the application server and build server delimited by a comma:
For example:
(amqp://applicationServerIP:5672,amqp://buildServerIP:5672)
- For each server, in the Configuration Manager, click at the top of the Configuration Manager and then confirm that you want to restart the relevant services by clicking Yes.
.r.