记录RabbitMQ双中心基础部署

This commit is contained in:
2026-08-24 20:19:58 +08:00
parent 596c180973
commit 1f0e60d819
2 changed files with 15 additions and 0 deletions
+7
View File
@@ -961,3 +961,10 @@ messagehub:
- 本次中心 1 断电恢复后,`REJECT` 规则排在部分生产放行规则之前,导致 Core、Nacos、MessageHub 和 `mysql03` 连接生产写库失败;已在 `mysql02` 调整运行时规则顺序,并写回 `/etc/sysconfig/iptables`。
- `mysql02` 上 `codex-iptables-restore.service` 为 enabled,后续重启恢复规则时以 `/etc/sysconfig/iptables` 为准;新增放行来源后必须用 `iptables -L INPUT -n --line-numbers` 复核行号顺序。
- 验证方式:从三台 Core、三台 Nacos、三台 MessageHub 和两个 MySQL 从库分别测试到 `192.168.5.110:3306`,结果均为连通;公网 `https://yunail.art/health/check` 和 `https://salon.yunail.art/health/check` 均显示 `jy-core` 为 3/3。
### 2026-08-24 RabbitMQ 双中心基础部署
- 中心1部署 `192.168.10.20/21/22` 三节点 RabbitMQ 4.3.5 集群,主机名分别为 `prod-mq01`、`prod-mq02`、`prod-mq03`;中心2部署独立 RabbitMQ `192.168.20.14`,主机名为 `prod-mq04`。
- 四台节点均为 Rocky Linux 9.8,使用原生 RPM 安装 Erlang、RabbitMQ Server、管理插件和 Federation 插件。
- 中心1使用 Keepalived + HAProxy 提供 `192.168.10.201` 入口,AMQP 与管理端口分别为 `5672`、`15672`;VRRP 使用单播 peer,避免网络不转发多播时多个节点同时持有 VIP。
- 当前业务统一入口规划为 `mq-prod.internal`;中心1 DNS 应解析到 `192.168.10.201`,中心2 DNS 应解析到 `192.168.20.14`。Federation、业务 vhost/账号和软路由 DNS 记录待补充业务参数后配置。