vault backup: 2024-08-20 13:57:07
This commit is contained in:
parent
f678db23a0
commit
b132f71df9
8
.obsidian/plugins/home-tab/data.json
vendored
8
.obsidian/plugins/home-tab/data.json
vendored
@ -24,12 +24,12 @@
|
||||
"unresolvedLinks": false,
|
||||
"recentFilesStore": [
|
||||
{
|
||||
"filepath": "_inbox/Кластер RabbitMQ.md",
|
||||
"timestamp": 1724151081888
|
||||
"filepath": "_inbox/00 RabbitMQ.md",
|
||||
"timestamp": 1724151210046
|
||||
},
|
||||
{
|
||||
"filepath": "_inbox/00 RabbitMQ.md",
|
||||
"timestamp": 1724149308524
|
||||
"filepath": "_inbox/Кластер RabbitMQ.md",
|
||||
"timestamp": 1724151081888
|
||||
},
|
||||
{
|
||||
"filepath": "_inbox/Флаги очередей в RabbitMQ.md",
|
||||
|
@ -1,13 +1,13 @@
|
||||
{
|
||||
"recentFiles": [
|
||||
{
|
||||
"basename": "Кластер RabbitMQ",
|
||||
"path": "_inbox/Кластер RabbitMQ.md"
|
||||
},
|
||||
{
|
||||
"basename": "00 RabbitMQ",
|
||||
"path": "_inbox/00 RabbitMQ.md"
|
||||
},
|
||||
{
|
||||
"basename": "Кластер RabbitMQ",
|
||||
"path": "_inbox/Кластер RabbitMQ.md"
|
||||
},
|
||||
{
|
||||
"basename": "Флаги очередей в RabbitMQ",
|
||||
"path": "_inbox/Флаги очередей в RabbitMQ.md"
|
||||
|
@ -53,3 +53,5 @@ rabbitmqctl set_vm_memory_high_watermark 0.5
|
||||
- Написан на Erlang
|
||||
- Имеет плагины расширения
|
||||
- Транзакций нет
|
||||
- [rabbit-test.zip](rabbit-test.zip) - Пример работы с Rabbit
|
||||
- [rabbit-rpc.zip](rabbit-rpc.zip) - Пример реализация rpc на базе Rabbit
|
@ -2,8 +2,10 @@
|
||||
aliases:
|
||||
tags:
|
||||
- зрелость/🌱
|
||||
date: [[2024-07-03]]
|
||||
date:
|
||||
- - 2024-07-03
|
||||
zero-link:
|
||||
- "[[00 RabbitMQ]]"
|
||||
parents:
|
||||
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
|
||||
```
|
||||
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`
|
||||
```
|
||||
|
BIN
meta/files/rabbit-rpc.zip
Normal file
BIN
meta/files/rabbit-rpc.zip
Normal file
Binary file not shown.
BIN
meta/files/rabbit-test.zip
Normal file
BIN
meta/files/rabbit-test.zip
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user