vault backup: 2024-08-20 13:57:07

This commit is contained in:
Struchkov Mark 2024-08-20 13:57:07 +03:00
parent f678db23a0
commit b132f71df9
No known key found for this signature in database
GPG Key ID: A3F0AC3F0FA52F3C
6 changed files with 28 additions and 27 deletions

View File

@ -24,12 +24,12 @@
"unresolvedLinks": false, "unresolvedLinks": false,
"recentFilesStore": [ "recentFilesStore": [
{ {
"filepath": "_inbox/Кластер RabbitMQ.md", "filepath": "_inbox/00 RabbitMQ.md",
"timestamp": 1724151081888 "timestamp": 1724151210046
}, },
{ {
"filepath": "_inbox/00 RabbitMQ.md", "filepath": "_inbox/Кластер RabbitMQ.md",
"timestamp": 1724149308524 "timestamp": 1724151081888
}, },
{ {
"filepath": "_inbox/Флаги очередей в RabbitMQ.md", "filepath": "_inbox/Флаги очередей в RabbitMQ.md",

View File

@ -1,13 +1,13 @@
{ {
"recentFiles": [ "recentFiles": [
{
"basename": "Кластер RabbitMQ",
"path": "_inbox/Кластер RabbitMQ.md"
},
{ {
"basename": "00 RabbitMQ", "basename": "00 RabbitMQ",
"path": "_inbox/00 RabbitMQ.md" "path": "_inbox/00 RabbitMQ.md"
}, },
{
"basename": "Кластер RabbitMQ",
"path": "_inbox/Кластер RabbitMQ.md"
},
{ {
"basename": "Флаги очередей в RabbitMQ", "basename": "Флаги очередей в RabbitMQ",
"path": "_inbox/Флаги очередей в RabbitMQ.md" "path": "_inbox/Флаги очередей в RabbitMQ.md"

View File

@ -53,3 +53,5 @@ rabbitmqctl set_vm_memory_high_watermark 0.5
- Написан на Erlang - Написан на Erlang
- Имеет плагины расширения - Имеет плагины расширения
- Транзакций нет - Транзакций нет
- [rabbit-test.zip](rabbit-test.zip) - Пример работы с Rabbit
- [rabbit-rpc.zip](rabbit-rpc.zip) - Пример реализация rpc на базе Rabbit

View File

@ -2,8 +2,10 @@
aliases: aliases:
tags: tags:
- зрелость/🌱 - зрелость/🌱
date: [[2024-07-03]] date:
- - 2024-07-03
zero-link: zero-link:
- "[[00 RabbitMQ]]"
parents: parents:
linked: linked:
--- ---
@ -27,27 +29,24 @@ docker run -d --hostname node1.rabbit --net cluster-network --name rabbitNode1 -
``` ```
docker run -d --hostname node2.rabbit --net cluster-network --name rabbitNode2 --add-host node1.rabbit:172.24.0.2 -p "15674:15672" -e "RABBITMQ_USE_LONGNAME=true" -e RABBITMQ_ERLANG_COOKIE="cookie" rabbitmq:3-management docker run -d --hostname node2.rabbit --net cluster-network --name rabbitNode2 --add-host node1.rabbit:172.24.0.2 -p "15674:15672" -e "RABBITMQ_USE_LONGNAME=true" -e RABBITMQ_ERLANG_COOKIE="cookie" rabbitmq:3-management
``` ```
6. docker exec -it rabbitNode1 bash
7. rabbitmqctl stop_app ```
docker exec -it rabbitNode1 bash
```
8. rabbitmqctl join_cluster rabbit@node2.rabbit ```
rabbitmqctl stop_app
```
9. rabbitmqctl start_app ```
rabbitmqctl join_cluster rabbit@node2.rabbit
```
10. cd kafka-test ```
rabbitmqctl start_app
```
11. docker-compose up -d ***
12. docker exec -it kafka-test-kafka-1 bash
13. kafka-topics --bootstrap-server localhost:9092 --topic test --create
14. kafka-topics --bootstrap-server localhost:9092 --list
15. kafka-console-consumer --bootstrap-server localhost:9092 --topic test
16. kafka-console-producer --bootstrap-server localhost:9092 --topic test
Синхронизировать через файл `/var/lib/rabbitmq/.erlang.cookie` Синхронизировать через файл `/var/lib/rabbitmq/.erlang.cookie`
``` ```

BIN
meta/files/rabbit-rpc.zip Normal file

Binary file not shown.

BIN
meta/files/rabbit-test.zip Normal file

Binary file not shown.