|
3 | 3 | If you encounter any issues running the steps below, try the [troubleshooting](#troubleshooting) section or ask on [our forum](https://discuss.particular.net/tag/masstransit).
|
4 | 4 |
|
5 | 5 | 1. Open a terminal and run the following command to shut down the showcase containers:
|
6 |
| - |
7 | 6 | ```cmd
|
8 | 7 | docker compose -p particular-platform-showcase -f docker-compose-base.yml -f compose-rabbitmq.yml --env-file rabbit.env down
|
9 | 8 | ```
|
10 |
| - |
11 |
| - - All of the containers should be shown as `Stopped` and there should no longer be any containers running under `particular-platform-showcase` in docker |
| 9 | + All of the containers should be shown as `Removed` and there should no longer be any containers running under `particular-platform-showcase` in docker. |
| 10 | + |
| 11 | +  |
12 | 12 |
|
13 | 13 | 1. Open `src/rabbit.env` file, located in the folder that the showcase is cloned to, in an editor and update the RabbitMQ configuration to point to your own RabbitMQ instance.
|
14 |
| - - `CONNECTION_STRING` A special connection string to connect to RabbitMQ, see https://docs.particular.net/servicecontrol/transports#rabbitmq for syntax format. |
15 |
| - - `RABBITMQ_MANAGEMENT_API_URL` The management API URL. |
| 14 | + - `CONNECTION_STRING` A special connection string to connect to RabbitMQ, see https://docs.particular.net/servicecontrol/transports#rabbitmq for syntax format. NOTE: if your RabbitMQ instance is hosted locally in docker, your connection string will be `host=host.docker.internal;port=<external_docker_port_for_5672>` |
| 15 | + - `RABBITMQ_MANAGEMENT_API_URL` The management API URL. NOTE: as above, if hosted locally in docker this will be `http://host.docker.internal:<external_docker_port_for_15672>` |
16 | 16 | - `RABBITMQ_MANAGEMENT_API_USERNAME` The management API username.
|
17 | 17 | - `RABBITMQ_MANAGEMENT_API_PASSWORD` The management API password.
|
| 18 | +1. To validate that the broker can be reached, run the following command: |
| 19 | + ```cmd |
| 20 | + docker run --env-file rabbit.env --rm particular/servicecontrol-masstransit-connector:latest health-check |
| 21 | + ``` |
18 | 22 | 1. Update the list of queues you want to monitor by editing the `src/queues.txt` file, also located in the folder that the showcase is cloned to. RabbitMQ is case-sensitive so make sure the names are exact. e.g. `myqueue_error`.
|
| 23 | + To automate this task you can run the following CLI command: |
| 24 | + ```cmd |
| 25 | + docker run --env-file rabbit.env --rm particular/servicecontrol-masstransit-connector:latest queues-list |
| 26 | + ``` |
| 27 | + The command above will output a list of queues, that can be copy-paste into the `src/queues.txt`. **Please ensure you review this list**. |
19 | 28 | 1. Run the following command to start the required containers with the updated environment settings:
|
20 |
| - |
21 | 29 | ```cmd
|
22 |
| - docker compose -p particular-platform -f docker-compose-base.yml -f compose-rabbitmq-user.yml --env-file rabbit.env --profile infrastructure up |
| 30 | + docker compose -p particular-platform -f docker-compose-base.yml -f compose-rabbitmq-user.yml --env-file rabbit.env --profile infrastructure up -d |
23 | 31 | ```
|
24 | 32 |
|
25 |
| - - The containers should all show a status of `Healthy` |
| 33 | + ServiceControl should show a status of `Healthy`. |
26 | 34 |
|
27 |
| -1. Verify that the setup was correct by navigating to http://localhost:9090/#/configuration/mass-transit-connector. |
28 |
| - - All of the configured queues for your system should show here |
29 |
| - - For each row in the list of queues: if the queues exist, the status should be green `OK`. If the queues don't exist, i.e. there have never been any errors on that consumer, or if there is an issue connecting to the broker then the status will be red `Not ingesting`. |
30 |
| - - If the status is `Not ingesting`, the reason for this can be found in the log entries shown below the queue list. |
31 |
| - - Any messages that existed in the error queues should now have been ingested, and will be shown in [Failed Messages](http://localhost:9090/#/failed-messages/all-failed-messages) |
| 35 | + . |
32 | 36 |
|
33 |
| -## Troubleshooting |
| 37 | + Docker should now show a `particular-platform` container group. |
34 | 38 |
|
35 |
| -- |
36 |
| -- |
| 39 | +  |
| 40 | + |
| 41 | +1. Verify that the setup was correct by navigating to http://localhost:9090/#/configuration/mass-transit-connector. |
| 42 | + - All of the configured queues for your system should show here. |
| 43 | + - For each row in the list of queues: if the queues exist, the status should be green. If the queues don't exist, i.e. there have never been any errors on that consumer, or if there is an issue connecting to the broker then the status will be red. |
| 44 | + - If the status is red, the reason for this can be found in the log entries shown below the queue list. |
| 45 | + - Any messages that existed in the error queues should now have been ingested, and will be shown in [Failed Messages](http://localhost:9090/#/failed-messages/all-failed-messages). |
0 commit comments